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

Disassembly:
push 0xffffffffffffffff
push 0x5ee5c8
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 0x4c455f
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 0x4c455f
mov ecx, dword [esp + 0xa4]
lea ecx, [ecx + ecx*2]
shl ecx, 2
cmp ecx, edx
jg 0x4c455f
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.005c28de
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x94], 0
test ebx, ebx
jg 0x4c4343
test ebx, ebx
jne 0x4c4281
mov eax, dword [esp + 0x3c]
mov ebx, esi
dec eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x4c42a2
cmp ebx, 0xffffffff
jne 0x4c454b
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.005c28de
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.004c2090
test eax, eax
jne 0x4c42e8
lea ecx, [esp + 0x64]
mov byte [esp + 0x94], al
call fcn.005c2911
jmp 0x4c454b
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 0x4c4330
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.004c2e80
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4c4300
lea ecx, [esp + 0x64]
mov byte [esp + 0x94], 0
call fcn.005c2911
jmp 0x4c43a2
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 0x4c43a6
dec eax
mov dword [esp + 0x18], eax
jmp 0x4c4376
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.004c2e80
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x4c436e
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xa4]
test eax, eax
jg 0x4c4468
jne 0x4c43c1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], ecx
jmp 0x4c43d9
cmp eax, 0xffffffff
jne 0x4c454b
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.005c28de
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.004c2210
test eax, eax
jne 0x4c441b
lea ecx, [esp + 0x78]
mov byte [esp + 0x94], al
call fcn.005c2911
jmp 0x4c454b
mov edx, dword [esp + 0x3c]
lea ebx, [eax - 1]
dec edx
xor esi, esi
test ebx, ebx
mov dword [esp + 0x24], edx
jle 0x4c4455
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.004c2c00
inc esi
cmp esi, ebx
jl 0x4c442d
lea ecx, [esp + 0x78]
mov byte [esp + 0x94], 0
call fcn.005c2911
jmp 0x4c44c2
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 0x4c44c2
dec edx
mov dword [esp + 0x18], edx
jmp 0x4c449e
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.004c2c00
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x4c4496
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.0051fda0
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.004bd7e0
lea ecx, [esp + 0x50]
mov dword [esp + 0x94], 0xffffffff
call fcn.005c2911
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x88
ret 0xc