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

Disassembly:
push 0xffffffffffffffff
push 0x4d2638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
mov ebx, ecx
push ebp
push esi
lea eax, [ebx + 8]
push edi
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x1c], 1
lea eax, [ebx + 0x34]
mov dword [esp + 0x78], 0
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x40], edx
lea edx, [ebx + 0x24]
mov eax, dword [ecx + 4]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x48], eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edx]
mov dword [esp + 0x50], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x54], ecx
mov esi, dword [edx + 8]
cmp esi, eax
mov ebp, dword [edx + 0xc]
je 0x4c264b
mov edi, dword [esi]
test edi, edi
je 0x4c262c
mov eax, dword [edi + 0x210]
test eax, eax
je 0x4c261f
push eax
call fcn.0049bb1b
add esp, 4
push edi
call fcn.0049bb1b
mov eax, dword [esp + 0x4c]
add esp, 4
mov ecx, dword [esp + 0x54]
add esi, 4
cmp esi, ecx
jne 0x4c2647
mov esi, dword [ebp + 4]
add ebp, 4
lea edx, [esi + 0x1000]
mov dword [esp + 0x54], edx
cmp esi, eax
jne 0x4c2606
lea edi, [ebx + 0x20]
lea esi, [edi + 0x14]
lea ebx, [edi + 4]
mov eax, esi
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 0xc]
mov eax, ebx
mov dword [esp + 0x3c], edx
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x30]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x30], edx
call fcn.004c2c90
mov ecx, ebx
mov dword [esp + 0x10], eax
mov edx, dword [ecx]
mov dword [esp + 0x40], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x44], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x48], edx
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], eax
call fcn.004c2c90
mov edx, esi
mov ebp, eax
mov dword [esp + 0x14], ebp
mov eax, dword [edx]
mov dword [esp + 0x40], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x44], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x48], eax
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x30]
mov dword [esp + 0x4c], ecx
push edx
lea ecx, [esp + 0x44]
call fcn.004c2c90
cmp ebp, eax
jae 0x4c27e7
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x44], edx
mov edx, ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [edx]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x48], eax
mov dword [esp + 0x64], ecx
mov ebp, dword [edx + 8]
cmp ebp, eax
mov edx, dword [edx + 0xc]
mov dword [esp + 0x6c], edx
je 0x4c2785
lea ecx, [esp + 0x40]
call fcn.004c2d70
mov esi, dword [eax + 8]
lea ecx, [esp + 0x50]
call fcn.004c2d70
mov eax, dword [eax + 8]
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esp + 0x48]
cmp ebp, eax
jne 0x4c2761
mov esi, dword [esp + 0x10]
test esi, esi
jbe 0x4c2797
mov ecx, edi
call fcn.004c2880
dec esi
jne 0x4c278d
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x4c27c9
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0xc]
push ebp
push ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
call fcn.004c2c30
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [esp + 0x48]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [edx + 8], eax
mov eax, dword [esi]
mov dword [edx + 0xc], ecx
mov ecx, dword [esi + 4]
mov edx, esp
sub esp, 0x10
mov dword [edx], eax
mov eax, dword [esi + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x60]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x64]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x68]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x90]
push edx
call fcn.004c2ce0
mov esi, dword [esp + 0x44]
add esp, 0x34
test esi, esi
jbe 0x4c279b
mov ecx, edi
call fcn.004c2af0
dec esi
jne 0x4c285e
jmp 0x4c279b