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

Disassembly:
push 0xffffffffffffffff
push 0x5efb48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0xe0]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4c5b1f
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x18]
mov ebx, dword [eax + 0x14]
add eax, 0x14
sub ecx, edx
mov edx, dword [eax + 8]
mov dword [esp + 0x10], ecx
sub edx, ebx
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x14], edx
lea esi, [ebx + ebx*2]
shl esi, 2
cmp esi, ecx
jg 0x4c5b1f
mov ecx, dword [esp + 0xa4]
lea ecx, [ecx + ecx*2]
shl ecx, 2
cmp ecx, edx
jg 0x4c5b1f
mov edx, eax
mov esi, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x34], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x44], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x50]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x4c], edx
call fcn.005c3e9e
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x94], 0
test ebx, ebx
jg 0x4c5903
test ebx, ebx
jne 0x4c5841
mov eax, dword [esp + 0x3c]
mov ebx, esi
dec eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x4c5862
cmp ebx, 0xffffffff
jne 0x4c5b0b
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
lea eax, [ecx + 1]
lea ecx, [edx - 1]
mov ebx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x64]
call fcn.005c3e9e
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x64]
mov byte [esp + 0x94], 1
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
push ebx
mov ecx, ebp
call fcn.004c3650
test eax, eax
jne 0x4c58a8
lea ecx, [esp + 0x64]
mov byte [esp + 0x94], al
call fcn.005c3ed1
jmp 0x4c5b0b
mov ecx, dword [esp + 0x38]
dec eax
test eax, eax
lea ebx, [ecx - 1]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
jle 0x4c58f0
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x50]
mov eax, dword [edx + eax*4]
push ecx
mov ecx, ebp
mov eax, dword [eax + 0x20]
push eax
push ebx
push eax
push esi
push edi
call fcn.004c4440
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4c58c0
lea ecx, [esp + 0x64]
mov byte [esp + 0x94], 0
call fcn.005c3ed1
jmp 0x4c5962
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
cdq
idiv ebx
mov edx, dword [esp + 0x38]
lea ebx, [edx - 1]
mov edx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa0]
cmp eax, 1
jle 0x4c5966
dec eax
mov dword [esp + 0x18], eax
jmp 0x4c5936
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add ecx, eax
add edx, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x2c], ecx
push eax
push edx
push ebx
push ecx
push esi
push edi
mov ecx, ebp
mov dword [esp + 0x3c], edx
call fcn.004c4440
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x4c592e
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xa4]
test eax, eax
jg 0x4c5a28
jne 0x4c5981
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], ecx
jmp 0x4c5999
cmp eax, 0xffffffff
jne 0x4c5b0b
mov ecx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x78]
call fcn.005c3e9e
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x78]
mov byte [esp + 0x94], 2
push edx
push eax
push ebx
push ecx
push esi
mov ecx, ebp
call fcn.004c37d0
test eax, eax
jne 0x4c59db
lea ecx, [esp + 0x78]
mov byte [esp + 0x94], al
call fcn.005c3ed1
jmp 0x4c5b0b
mov edx, dword [esp + 0x3c]
lea ebx, [eax - 1]
dec edx
xor esi, esi
test ebx, ebx
mov dword [esp + 0x24], edx
jle 0x4c5a15
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x50]
mov eax, dword [eax + esi*4]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov eax, dword [eax + 0x1c]
push eax
push ecx
push eax
push edi
mov ecx, ebp
call fcn.004c41c0
inc esi
cmp esi, ebx
jl 0x4c59ed
lea ecx, [esp + 0x78]
mov byte [esp + 0x94], 0
call fcn.005c3ed1
jmp 0x4c5a82
mov eax, dword [esp + 0x14]
mov ebx, esi
cdq
idiv dword [esp + 0xa4]
mov edx, dword [esp + 0x3c]
dec edx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xa4]
cmp edx, 1
mov dword [esp + 0x14], eax
jle 0x4c5a82
dec edx
mov dword [esp + 0x18], edx
jmp 0x4c5a5e
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
add esi, eax
add ebx, eax
lea eax, [esp + 0x50]
push eax
push edx
push ebx
push ecx
push esi
push edi
mov ecx, ebp
call fcn.004c41c0
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x4c5a56
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x48]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], edx
mov edx, dword [esp + 0x6c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x70]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 0xc], eax
lea eax, [edx + 0x14]
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 0xe0]
push ecx
push 1
push 2
lea ecx, [edi + 0xb8]
call fcn.00521360
mov esi, dword [esp + 0x1c]
push 0
push 0
push edi
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2f4]
mov eax, dword [esi]
push 0
push 1
push edi
mov ecx, esi
call dword [eax + 0x2f0]
push 0
push ebp
mov ecx, edi
call fcn.004beda0
lea ecx, [esp + 0x50]
mov dword [esp + 0x94], 0xffffffff
call fcn.005c3ed1
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x88
ret 0xc