SCritSect::SCritSect
function · storm · boundary
- Address
0x657990· 14 bytes, up to0x65799d- Meaning
- Initializes the critical section at ecx and returns it
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- core/threads#host-calls
Finding: Host calls in core: process entry and threads
The event library reaches the OS through thin wrappers. 0x6579b0, 0x6579c0, 0x6579a0 and
0x657990 call EnterCriticalSection, LeaveCriticalSection, DeleteCriticalSection and
InitializeCriticalSection on ecx. 0x659a70 makes an event at *ecx, CreateEventA(0, [esp+4], [esp+8], 0); 0x659930 zeroes *ecx; 0x659aa0, 0x659ab0 and 0x6599c0(timeout) call
SetEvent, ResetEvent and WaitForSingleObject on *ecx; 0x659960 closes the handle and
zeroes it. 0x65ad30 and 0x65ad40 add and subtract 1 atomically and return the new value;
0x65ad70 exchanges. 0x64bbd0 is GetCurrentThreadId, 0x64bbf0 and 0x64bc00 get and set the
priority of the current thread, 0x429d50 is Sleep, and 0x43f050(ms) runs the network object's
wait when one exists and Sleep otherwise.
The derivation is in the doc.
Callers 33
- 0x41b4a0 base
- InitContextTable core
- InitSlotLock core
- InitScheduler core
- EvtContext::EvtContext core
- InitContextTableAgain core
- InitEventRegPool core
- InitCallbackRegPool core
- InitDispatchRegPool core
- 0x443130 unassigned
- 0x463540 unassigned
- InitGlueCritSect glue
- NetClient::NetClient net
- NETEVENTQUEUE::NETEVENTQUEUE net
- InitCriticalSection1 net
- InitCriticalSection2 net
- InitCriticalSection3 net
- WowConnection::WowConnectionFromSocket net
- WowConnection::WowConnection net
- GruntTimerCreate net
- Grunt::Pending::Pending net
- ServerLink::ServerLink net
- ClientLink::ClientLink net
- WowConnectionNet::WowConnectionNet net
- InitConLockBody console
- 0x647110 storm
- ConstructFileObject storm
- 0x6579e0 storm
- 0x658480 storm
- InitTerrainAreaTable terrain
- InitWardenCritSect1 warden
- ConstructSoundLock sound
- 0x7a8330 os
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.