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

Disassembly:
push 0xffffffffffffffff
push 0x4b3002
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
mov dword [edi], 0x4d7894
lea eax, [edi + 0xbc]
push eax
mov dword [esp + 0x24], 7
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
xor ebx, ebx
cmp dword [0x4f7b40], ebx
je 0x436925
mov ecx, dword [edi + 0x1c]
sub ecx, dword [edi + 0x18]
lea esi, [edi + 0xc]
sar ecx, 2
xor ebp, ebp
test ecx, ecx
jbe 0x4367c8
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0xc]
sar edx, 2
cmp ebp, edx
jb 0x436796
call fcn.00470dee
mov eax, dword [esi + 0xc]
mov ebx, dword [eax + ebp*4]
lea ecx, [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4367b8
test ebx, ebx
je 0x4367b8
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
inc ebp
sar ecx, 2
cmp ebp, ecx
jb 0x436784
xor ebx, ebx
mov eax, esi
call fcn.00437490
mov edx, dword [edi + 0x4c]
sub edx, dword [edi + 0x48]
lea esi, [edi + 0x3c]
sar edx, 2
test edx, edx
jbe 0x43680d
nop
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp ebx, eax
jb 0x4367f2
call fcn.00470dee
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + ebx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
inc ebx
sar ecx, 2
cmp ebx, ecx
jb 0x4367e0
mov eax, esi
call fcn.00437490
mov edx, dword [edi + 0x64]
sub edx, dword [edi + 0x60]
lea esi, [edi + 0x54]
sar edx, 2
xor ebx, ebx
test edx, edx
jbe 0x436855
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp ebx, eax
jb 0x436838
call fcn.00470dee
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + ebx*4]
push eax
call fcn.0046fda3
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0xc]
inc ebx
sar edx, 2
add esp, 4
cmp ebx, edx
jb 0x436826
mov eax, esi
call fcn.00437490
mov eax, dword [edi + 0x7c]
sub eax, dword [edi + 0x78]
lea esi, [edi + 0x6c]
sar eax, 2
xor ebx, ebx
test eax, eax
jbe 0x43689d
mov edi, edi
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar ecx, 2
cmp ebx, ecx
jb 0x436882
call fcn.00470dee
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + ebx*4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x436870
mov eax, esi
call fcn.00437490
mov ecx, dword [edi + 0x94]
sub ecx, dword [edi + 0x90]
lea esi, [edi + 0x84]
sar ecx, 2
xor ebx, ebx
test ecx, ecx
jbe 0x4368ed
nop
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0xc]
sar edx, 2
cmp ebx, edx
jb 0x4368d2
call fcn.00470dee
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
inc ebx
sar ecx, 2
cmp ebx, ecx
jb 0x4368c0
mov eax, esi
call fcn.00437490
mov edx, dword [edi + 0xb4]
mov eax, dword [edx + 4]
lea esi, [edi + 0x9c]
push eax
mov ecx, esi
call fcn.004375d0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov esi, dword [esi + 0x18]
mov dword [esi + 8], esi
xor ebx, ebx
lea esi, [edi + 0x9c]
mov dword [esp + 0x14], esi
mov byte [esp + 0x20], 8
call fcn.00437630
mov ecx, dword [esi]
push ecx
call fcn.0046fda3
mov eax, dword [edi + 0x90]
add esp, 4
cmp eax, ebx
je 0x436957
push eax
call fcn.0046fda3
add esp, 4
mov edx, dword [edi + 0x84]
push edx
mov dword [edi + 0x90], ebx
mov dword [edi + 0x94], ebx
mov dword [edi + 0x98], ebx
call fcn.0046fda3
mov eax, dword [edi + 0x78]
add esp, 4
cmp eax, ebx
je 0x436988
push eax
call fcn.0046fda3
add esp, 4
mov eax, dword [edi + 0x6c]
push eax
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x80], ebx
call fcn.0046fda3
mov eax, dword [edi + 0x60]
add esp, 4
cmp eax, ebx
je 0x4369b0
push eax
call fcn.0046fda3
add esp, 4
mov ecx, dword [edi + 0x54]
push ecx
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x68], ebx
call fcn.0046fda3
mov eax, dword [edi + 0x48]
add esp, 4
cmp eax, ebx
je 0x4369d5
push eax
call fcn.0046fda3
add esp, 4
mov edx, dword [edi + 0x3c]
push edx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ebx
call fcn.0046fda3
mov eax, dword [edi + 0x30]
add esp, 4
cmp eax, ebx
je 0x4369fa
push eax
call fcn.0046fda3
add esp, 4
mov eax, dword [edi + 0x24]
push eax
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
call fcn.0046fda3
mov eax, dword [edi + 0x18]
add esp, 4
cmp eax, ebx
je 0x436a1f
push eax
call fcn.0046fda3
add esp, 4
mov ecx, dword [edi + 0xc]
push ecx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
call fcn.0046fda3
add esp, 4
mov dword [edi], 0x4d7a58
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4