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

Disassembly:
push 0xffffffffffffffff
push 0x5edb08
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 0x4c63ef
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 0x4c63ef
mov ecx, dword [esp + 0xa4]
lea ecx, [ecx + ecx*2]
shl ecx, 2
cmp ecx, edx
jg 0x4c63ef
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.005c2ef9
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x94], 0
test ebx, ebx
jg 0x4c61d3
test ebx, ebx
jne 0x4c6111
mov eax, dword [esp + 0x3c]
mov ebx, esi
dec eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x4c6132
cmp ebx, 0xffffffff
jne 0x4c63db
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.005c2ef9
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.004c3f20
test eax, eax
jne 0x4c6178
lea ecx, [esp + 0x64]
mov byte [esp + 0x94], al
call fcn.005c2f2c
jmp 0x4c63db
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 0x4c61c0
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.004c4d10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4c6190
lea ecx, [esp + 0x64]
mov byte [esp + 0x94], 0
call fcn.005c2f2c
jmp 0x4c6232
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 0x4c6236
dec eax
mov dword [esp + 0x18], eax
jmp 0x4c6206
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.004c4d10
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x4c61fe
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xa4]
test eax, eax
jg 0x4c62f8
jne 0x4c6251
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], ecx
jmp 0x4c6269
cmp eax, 0xffffffff
jne 0x4c63db
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.005c2ef9
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.004c40a0
test eax, eax
jne 0x4c62ab
lea ecx, [esp + 0x78]
mov byte [esp + 0x94], al
call fcn.005c2f2c
jmp 0x4c63db
mov edx, dword [esp + 0x3c]
lea ebx, [eax - 1]
dec edx
xor esi, esi
test ebx, ebx
mov dword [esp + 0x24], edx
jle 0x4c62e5
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.004c4a90
inc esi
cmp esi, ebx
jl 0x4c62bd
lea ecx, [esp + 0x78]
mov byte [esp + 0x94], 0
call fcn.005c2f2c
jmp 0x4c6352
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 0x4c6352
dec edx
mov dword [esp + 0x18], edx
jmp 0x4c632e
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.004c4a90
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x4c6326
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.00521ab0
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.004bf6c0
lea ecx, [esp + 0x50]
mov dword [esp + 0x94], 0xffffffff
call fcn.005c2f2c
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x88
ret 0xc