Function at 0x4cdc90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525810
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x588eb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 4]
cmp eax, 1
jne 0x4ce22b
push 0x58acb8
mov dword [ebp - 0x34], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x30], 0x58acb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0xc]
mov dword [ebp - 4], 0
push dword [esi + 8]
push dword [0x58aca8]
call fcn.004d3050
mov edi, eax
add esp, 0xc
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x4cde63
test byte [edi + 0xa3], 0x20
lea ecx, [edi - 8]
mov dword [ebp - 0x10], ecx
jne 0x4cde63
test byte [esi + 0x10], 1
je 0x4cdd66
push 0x58acb8
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x28], 0x58acb8
call eax
mov ecx, dword [0x58acb0]
lea edx, [edi + 0x58]
push edx
push dword [esi + 0xc]
mov byte [ebp - 4], 1
mov eax, dword [ecx]
push dword [esi + 8]
mov dword [ebp - 0x14], edx
call dword [eax + 0xc]
push 0x58acb8
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x4cdd6c
lea eax, [edi + 0x58]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x10]
shr eax, 0x13
test al, 1
je 0x4cde8c
push 0x58acb8
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x28], 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x58acb0]
lea edx, [edi + 0x58]
push edx
push dword [esi + 0xc]
mov byte [ebp - 4], 2
mov eax, dword [ecx]
push dword [esi + 8]
call dword [eax + 8]
push 0x58acb8
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [edi + 0x58], 0x40
jne 0x4cde5e
push 0
push 0x53
call fcn.004d3170
mov edx, eax
add esp, 8
mov dword [ebp - 0x18], edx
test edx, edx
je 0x4cde5e
mov ecx, dword [esi + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [edx + 8], ecx
mov dword [edx], 0x13
mov dword [edx + 0xc], 0x43
movups xmm0, xmmword [edi + 0x58]
push edx
movups xmmword [edx + 0x10], xmm0
movups xmm0, xmmword [edi + 0x68]
movups xmmword [edx + 0x20], xmm0
movups xmm0, xmmword [edi + 0x78]
movups xmmword [edx + 0x30], xmm0
movups xmm0, xmmword [edi + 0x88]
movups xmmword [edx + 0x40], xmm0
mov ax, word [edi + 0x98]
mov word [edx + 0x50], ax
mov al, byte [edi + 0x9a]
mov byte [edx + 0x52], al
call fcn.004d2080
push 0
push dword [ebp - 0x18]
call fcn.004d3220
mov eax, dword [edi + 0x58]
add esp, 0xc
test al, 1
je 0x4cde7b
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.004d2290
push dword [ebp - 0x10]
call fcn.004d0760
add esp, 0xc
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x58acb8
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test al, 2
jne 0x4cde8c
push dword [ebp - 0x10]
call fcn.004d0760
add esp, 4
jmp 0x4cde5e
mov esi, dword [edi + 0xc]
lea ecx, [edi + 0xc]
mov eax, dword [edi + 0x14]
cmp esi, ecx
je 0x4cdf8f
nop dword [eax]
mov edx, eax
test eax, eax
jne 0x4cdeaf
cmp dword [esi + 0x14], eax
ja 0x4cdf8f
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
jb 0x4cdeca
sub eax, ecx
mov dword [edi + 0x14], eax
jmp 0x4cded1
mov dword [edi + 0x14], 0
mov ecx, edx
mov dword [ebp - 0x18], 0
sub ecx, dword [esi + 0x14]
cmp edx, dword [esi + 0x14]
push 0x58acb8
cmovb ecx, dword [ebp - 0x18]
test byte [edi + 0xa3], 4
mov dword [ebp - 0x18], ecx
je 0x4cdf2d
mov dword [ebp - 0x24], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x20], 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0x14]
lea eax, [esi + 0x18]
mov byte [ebp - 4], 3
push eax
push dword [esi + 0x10]
push dword [esi + 0xc]
push 2
call fcn.004d22e0
add esp, 0x14
mov dword [ebp - 0x24], vtable.nfapi::AutoUnlock.0
jmp 0x4cdf64
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x28], 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0x14]
mov ecx, dword [0x58acb0]
lea eax, [esi + 0x18]
push eax
push dword [esi + 0x10]
mov byte [ebp - 4], 4
mov edx, dword [ecx]
push dword [esi + 0xc]
call dword [edx + 0x14]
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
push 0x58acb8
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push esi
call fcn.004d3220
mov esi, dword [edi + 0xc]
lea ecx, [edi + 0xc]
mov eax, dword [ebp - 0x18]
add esp, 8
cmp esi, ecx
jne 0x4cdea0
mov esi, dword [edi + 0x18]
lea ecx, [edi + 0x18]
mov eax, dword [edi + 0x20]
cmp esi, ecx
je 0x4ce08f
mov edx, eax
test eax, eax
jne 0x4cdfaf
cmp dword [esi + 0x14], eax
ja 0x4ce08f
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x20]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
jb 0x4cdfca
sub eax, ecx
mov dword [edi + 0x20], eax
jmp 0x4cdfd1
mov dword [edi + 0x20], 0
mov ecx, edx
mov dword [ebp - 0x18], 0
sub ecx, dword [esi + 0x14]
cmp edx, dword [esi + 0x14]
push 0x58acb8
cmovb ecx, dword [ebp - 0x18]
test byte [edi + 0xa3], 4
mov dword [ebp - 0x18], ecx
je 0x4ce02d
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x28], 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0x14]
lea eax, [esi + 0x18]
mov byte [ebp - 4], 5
push eax
push dword [esi + 0x10]
push dword [esi + 0xc]
push 3
call fcn.004d22e0
add esp, 0x14
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
jmp 0x4ce064
mov dword [ebp - 0x24], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x20], 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0x14]
mov ecx, dword [0x58acb0]
lea eax, [esi + 0x18]
push eax
push dword [esi + 0x10]
mov byte [ebp - 4], 6
mov edx, dword [ecx]
push dword [esi + 0xc]
call dword [edx + 0x18]
mov dword [ebp - 0x24], vtable.nfapi::AutoUnlock.0
push 0x58acb8
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push esi
call fcn.004d3220
mov esi, dword [edi + 0x18]
lea ecx, [edi + 0x18]
mov eax, dword [ebp - 0x18]
add esp, 8
cmp esi, ecx
jne 0x4cdfa0
mov esi, dword [ebp - 0x1c]
mov edx, dword [esi + 0x10]
mov eax, edx
shr eax, 4
mov ecx, edx
test al, 1
lea eax, [edi - 8]
je 0x4ce105
test byte [eax + 0xab], 2
jne 0x4ce105
cmp dword [edi + 0x2c], 0x40000
jae 0x4ce105
cmp dword [edi + 0x40], 0
jne 0x4ce105
push 0x58acb8
mov dword [edi + 0x40], 1
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x28], 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x58acb0]
push dword [esi + 0xc]
mov byte [ebp - 4], 7
push dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x1c]
push 0x58acb8
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x10]
lea eax, [edi - 8]
shr ecx, 5
test cl, 1
je 0x4ce167
test byte [eax + 0xab], 2
jne 0x4ce167
lea eax, [edi + 0x30]
cmp dword [eax], eax
jne 0x4ce167
cmp dword [edi + 0x3c], 0
jne 0x4ce167
push 0x58acb8
mov dword [edi + 0x3c], 1
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x28], 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x58acb0]
push dword [esi + 0xc]
mov byte [ebp - 4], 8
push dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x20]
push 0x58acb8
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x38], 0x800000
ja 0x4ce19f
cmp dword [edi + 0x2c], 0x800000
ja 0x4ce19f
cmp dword [edi + 0x20], 0x800000
ja 0x4ce19f
cmp dword [edi + 0x14], 0x800000
ja 0x4ce19f
push dword [edi + 0x9f]
mov edi, dword [ebp - 0x10]
push edi
call fcn.004d2640
add esp, 8
jmp 0x4ce1a2
mov edi, dword [ebp - 0x10]
mov eax, dword [esi + 0x10]
shr eax, 1
test al, 1
je 0x4ce20f
mov eax, dword [edi + 0xab]
test al, 0x20
jne 0x4ce20f
or eax, 0x20
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
push 0x58acb8
mov dword [edi + 0xab], eax
mov dword [ebp - 0x28], 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x58acb0]
mov edx, dword [ebp - 0x14]
push edx
push dword [esi + 0xc]
mov eax, dword [ecx]
push dword [esi + 8]
mov byte [ebp - 4], 9
call dword [eax + 0x10]
push 0x58acb8
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.004d2230
add esp, 0xc
push 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x4ce709
push 0x58acb8
mov dword [ebp - 0x34], vtable.nfapi::AutoLock.0
mov dword [ebp - 0x30], 0x58acb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0xc]
mov dword [ebp - 4], 0xa
push dword [esi + 8]
push dword [0x58acac]
call fcn.004d3050
mov ecx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 0xc
test eax, eax
je 0x4ce702
mov edx, dword [esi + 0x10]
lea edi, [eax - 8]
mov eax, edx
shr eax, 8
test al, 1
je 0x4ce2cb
push 0x58acb8
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x28], 0x58acb8
call ecx
mov ecx, dword [0x58acb0]
lea eax, [edi + 0x54]
push eax
push dword [esi + 0xc]
mov byte [ebp - 4], 0xb
mov edx, dword [ecx]
push dword [esi + 8]
call dword [edx + 0x24]
push 0x58acb8
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x10]
mov ecx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
shr edx, 0x14
test dl, 1
je 0x4ce397
push 0x58acb8
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x28], 0x58acb8
call ecx
mov ecx, dword [0x58acb0]
lea edx, [edi + 0x76]
push edx
push dword [esi + 0xc]
mov byte [ebp - 4], 0xc
mov eax, dword [ecx]
push dword [esi + 8]
call dword [eax + 0x28]
push 0x58acb8
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [edi + 0x76], 0x40
jne 0x4ce6fc
push 0
push 0x52
call fcn.004d3170
mov edx, eax
add esp, 8
mov dword [ebp - 0x18], edx
test edx, edx
je 0x4ce6fc
mov ecx, dword [esi + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [edx + 8], ecx
mov dword [edx], 0x14
mov dword [edx + 0xc], 0x42
movups xmm0, xmmword [edi + 0x76]
push edx
movups xmmword [edx + 0x10], xmm0
movups xmm0, xmmword [edi + 0x86]
movups xmmword [edx + 0x20], xmm0
movups xmm0, xmmword [edi + 0x96]
movups xmmword [edx + 0x30], xmm0
movups xmm0, xmmword [edi + 0xa6]
movups xmmword [edx + 0x40], xmm0
mov ax, word [edi + 0xb6]
mov word [edx + 0x50], ax
call fcn.004d2080
push 0
push dword [ebp - 0x18]
call fcn.004d3220
add esp, 0xc
mov esi, dword [edi + 0x14]
lea eax, [edi + 0x14]
mov edx, dword [edi + 0x1c]
cmp esi, eax
je 0x4ce4b4
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x1c]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
jb 0x4ce3c3
sub eax, ecx
mov dword [edi + 0x1c], eax
jmp 0x4ce3ca
mov dword [edi + 0x1c], 0
mov ecx, dword [esi + 0x14]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x18], 0
cmp edx, ecx
mov edx, dword [esi + 0x38]
push 0x58acb8
cmovb eax, dword [ebp - 0x18]
add edx, 0x3c
mov dword [ebp - 0x18], eax
add edx, esi
mov eax, esi
mov dword [ebp - 0x10], edx
sub eax, edx
add eax, 0x18
add eax, ecx
test byte [edi + 0xc0], 1
mov dword [ebp - 0x14], eax
je 0x4ce445
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x28], 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [esi + 0x34]
mov byte [ebp - 4], 0xd
push edx
push dword [ebp - 0x14]
lea edx, [esi + 0x18]
push dword [ebp - 0x10]
push edx
push dword [esi + 0x10]
push dword [esi + 0xc]
push 0xa
call fcn.004d2710
add esp, 0x1c
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
jmp 0x4ce483
mov dword [ebp - 0x24], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x20], 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x58acb0]
lea edx, [esi + 0x34]
push edx
push dword [ebp - 0x14]
lea edx, [esi + 0x18]
mov byte [ebp - 4], 0xe
push dword [ebp - 0x10]
mov eax, dword [ecx]
push edx
push dword [esi + 0x10]
push dword [esi + 0xc]
call dword [eax + 0x30]
mov dword [ebp - 0x24], vtable.nfapi::AutoUnlock.0
push 0x58acb8
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push esi
call fcn.004d3220
add esp, 8
cmp dword [ebp - 0x18], 0
je 0x4ce4b4
mov esi, dword [edi + 0x14]
lea edx, [edi + 0x14]
cmp esi, edx
mov edx, dword [ebp - 0x18]
jne 0x4ce3a8
mov esi, dword [edi + 0x20]
lea eax, [edi + 0x20]
mov edx, dword [edi + 0x28]
cmp esi, eax
je 0x4ce5d1
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x28]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
jb 0x4ce4e0
sub eax, ecx
mov dword [edi + 0x28], eax
jmp 0x4ce4e7
mov dword [edi + 0x28], 0
mov ecx, dword [esi + 0x14]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x18], 0
cmp edx, ecx
mov edx, dword [esi + 0x38]
push 0x58acb8
cmovb eax, dword [ebp - 0x18]
add edx, 0x3c
mov dword [ebp - 0x10], eax
add edx, esi
mov eax, esi
mov dword [ebp - 0x14], edx
sub eax, edx
add eax, 0x18
add eax, ecx
test byte [edi + 0xc0], 1
mov dword [ebp - 0x18], eax
je 0x4ce562
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x28], 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [esi + 0x34]
mov byte [ebp - 4], 0xf
push edx
push dword [ebp - 0x18]
lea edx, [esi + 0x18]
push dword [ebp - 0x14]
push edx
push dword [esi + 0x10]
push dword [esi + 0xc]
push 0xb
call fcn.004d2710
add esp, 0x1c
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
jmp 0x4ce5a0
mov dword [ebp - 0x24], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x20], 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x58acb0]
lea edx, [esi + 0x34]
push edx
push dword [ebp - 0x18]
lea edx, [esi + 0x18]
mov byte [ebp - 4], 0x10
push dword [ebp - 0x14]
mov eax, dword [ecx]
push edx
push dword [esi + 0x10]
push dword [esi + 0xc]
call dword [eax + 0x34]
mov dword [ebp - 0x24], vtable.nfapi::AutoUnlock.0
push 0x58acb8
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push esi
call fcn.004d3220
add esp, 8
cmp dword [ebp - 0x10], 0
je 0x4ce5d1
mov esi, dword [edi + 0x20]
lea edx, [edi + 0x20]
cmp esi, edx
mov edx, dword [ebp - 0x10]
jne 0x4ce4c5
mov esi, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x10]
mov eax, ecx
shr eax, 0xc
test al, 1
je 0x4ce627
lea eax, [edi + 0x2c]
cmp dword [eax], eax
jne 0x4ce627
push 0x58acb8
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x28], 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x58acb0]
push dword [esi + 0xc]
mov byte [ebp - 4], 0x11
push dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x38]
push 0x58acb8
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x10]
shr ecx, 0xd
test cl, 1
je 0x4ce673
lea eax, [edi + 0x38]
cmp dword [eax], eax
jne 0x4ce673
push 0x58acb8
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x28], 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x58acb0]
push dword [esi + 0xc]
mov byte [ebp - 4], 0x12
push dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x3c]
push 0x58acb8
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x40], 0x800000
ja 0x4ce6a6
cmp dword [edi + 0x34], 0x800000
ja 0x4ce6a6
cmp dword [edi + 0x28], 0x800000
ja 0x4ce6a6
cmp dword [edi + 0x1c], 0x800000
ja 0x4ce6a6
push dword [edi + 0xbc]
push edi
call fcn.004d2a40
add esp, 8
mov eax, dword [esi + 0x10]
shr eax, 9
test al, 1
je 0x4ce20f
push 0x58acb8
mov dword [ebp - 0x2c], vtable.nfapi::AutoUnlock.0
mov dword [ebp - 0x28], 0x58acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x58acb0]
lea eax, [edi + 0x54]
push eax
push dword [esi + 0xc]
mov byte [ebp - 4], 0x13
mov edx, dword [ecx]
push dword [esi + 8]
call dword [edx + 0x2c]
push 0x58acb8
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 9
jmp 0x4ce201
mov ecx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x58acb8
call ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret