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

Disassembly:
sub esp, 0x58
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
push ebx
push ebp
mov ebp, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x6c]
push edi
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x94]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov edi, esi
lea ebx, [esp + 0x68]
mov eax, ebp
call fcn.004c0470
cmp dword [esi + 0x5c], 0
mov ecx, dword [eax]
lea edi, [esi + 0x24]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x40], edi
mov dword [edi + 0xc], edx
mov dword [esi + 0x14], 0
je 0x4c0e28
mov ecx, dword [ebp + 0xe0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x48]
push edx
call eax
mov ecx, dword [ebp + 0xe0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push esi
call eax
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [edx + 0x48]
mov ecx, esi
call eax
cmp eax, 2
je 0x4c0941
mov edx, dword [esi]
mov eax, dword [edx + 0x48]
mov ecx, esi
call eax
test eax, eax
jne 0x4c0b8f
mov ecx, edi
call fcn.00415ef0
mov ecx, dword [esp + 0x74]
mov edi, eax
sub edi, dword [esp + 0x50]
sub edi, dword [esp + 0x48]
push edi
push ecx
push esi
push ebp
mov dword [esp + 0x40], edi
call fcn.004c0730
mov edx, dword [esi + 0x88]
mov eax, dword [edx + 4]
mov edx, dword [esi]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x48]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x14]
cmp eax, 2
jne 0x4c09a5
mov edx, dword [ebp + 0xe0]
lea eax, [ecx - 1]
imul ecx, ebx
imul eax, dword [edx + 0x14]
mov edx, eax
mov eax, dword [esp + 0x84]
sub eax, edx
sub eax, ecx
sub eax, dword [esp + 0x4c]
jmp 0x4c09bc
mov eax, dword [ebp + 0xe0]
mov eax, dword [eax + 0x14]
add eax, ebx
dec ecx
imul eax, ecx
add eax, dword [esp + 0x7c]
add eax, dword [esp + 0x4c]
mov edx, dword [esi]
mov dword [esp + 0x74], eax
add eax, ebx
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x48]
mov ecx, esi
call eax
cmp eax, 2
jne 0x4c09e1
mov ecx, dword [ebp + 0xe0]
mov eax, dword [ecx + 0x14]
add eax, ebx
jmp 0x4c09ee
mov edx, dword [ebp + 0xe0]
mov eax, dword [edx + 0x14]
add eax, ebx
neg eax
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x88]
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
cmp eax, 1
mov dword [esp + 0x44], edx
jle 0x4c0a18
cmp dword [ebp + 0xa8], 0
mov dword [esp + 0x18], 1
jne 0x4c0a20
mov dword [esp + 0x18], 0
xor ecx, ecx
mov dword [esp + 0x2c], ecx
test eax, eax
jle 0x4c0ddb
jmp 0x4c0a38
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
mov eax, dword [edx + ecx*8]
mov ebp, dword [edx + ecx*8 + 4]
sub ebp, eax
xor ebx, ebx
inc ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], eax
cmp dword [esp + 0x18], ebx
je 0x4c0a8a
xor edx, edx
test ebp, ebp
jle 0x4c0a8a
lea edi, [eax*4]
test eax, eax
jl 0x4c0a70
cmp eax, dword [esi + 0x5c]
jge 0x4c0a70
mov ecx, dword [esi + 0x58]
mov ecx, dword [edi + ecx]
jmp 0x4c0a72
xor ecx, ecx
add ebx, dword [ecx + 0x20]
inc edx
add edi, 4
inc eax
cmp edx, ebp
mov dword [esp + 0x10], ebx
jl 0x4c0a5f
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x1c], edi
mov edi, dword [edx]
add edi, dword [esp + 0x48]
mov dword [esp + 0x34], 0
test ebp, ebp
jle 0x4c0b6b
lea ecx, [eax*4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ecx
test eax, eax
jl 0x4c0b4c
cmp eax, dword [esi + 0x5c]
jge 0x4c0b4c
mov edx, dword [esi + 0x58]
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx + edx]
test esi, esi
je 0x4c0b48
cmp dword [esp + 0x18], 0
mov ecx, dword [esi + 0x20]
je 0x4c0afe
mov eax, dword [esp + 0x1c]
sub eax, ebx
cdq
idiv dword [esp + 0x24]
add eax, ecx
sub dword [esp + 0x1c], eax
sub dword [esp + 0x10], ecx
mov ecx, eax
mov dword [esi + 0x20], eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x74]
push edx
lea ebx, [ecx + edi]
push ebx
push eax
push edi
lea ecx, [esp + 0x68]
call fcn.00410170
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
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
push esi
mov dword [ecx + 0xc], eax
call fcn.004c41f0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov edi, ebx
mov ebx, dword [esp + 0x10]
mov dword [esi + 0x64], ecx
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x34]
add dword [esp + 0x20], 4
dec dword [esp + 0x24]
inc ecx
inc eax
cmp ecx, ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
jl 0x4c0abb
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
add dword [esp + 0x74], eax
add dword [esp + 0x28], eax
inc ecx
cmp ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
jl 0x4c0a30
jmp 0x4c0dd7
mov ecx, edi
call fcn.0040fe70
mov edx, dword [esp + 0x74]
mov edi, eax
sub edi, dword [esp + 0x50]
sub edi, dword [esp + 0x48]
push edi
push edx
push esi
push ebp
mov dword [esp + 0x4c], edi
call fcn.004c0730
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 4]
mov edx, dword [esi]
mov eax, dword [edx + 0x48]
mov dword [esp + 0x10], ecx
mov ecx, esi
call eax
mov ecx, dword [esp + 0x10]
cmp eax, 3
jne 0x4c0bf3
mov edx, dword [ebp + 0xe0]
lea eax, [ecx - 1]
imul ecx, ebx
imul eax, dword [edx + 0x14]
mov edx, eax
mov eax, dword [esp + 0x80]
sub eax, edx
sub eax, ecx
sub eax, dword [esp + 0x4c]
jmp 0x4c0c0a
mov eax, dword [ebp + 0xe0]
mov eax, dword [eax + 0x14]
add eax, ebx
dec ecx
imul eax, ecx
add eax, dword [esp + 0x78]
add eax, dword [esp + 0x4c]
mov edx, dword [esi]
mov dword [esp + 0x74], eax
add eax, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x48]
mov ecx, esi
call eax
cmp eax, 3
jne 0x4c0c2f
mov ecx, dword [ebp + 0xe0]
mov eax, dword [ecx + 0x14]
add eax, ebx
jmp 0x4c0c3c
mov edx, dword [ebp + 0xe0]
mov eax, dword [edx + 0x14]
add eax, ebx
neg eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x88]
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
cmp eax, 1
mov dword [esp + 0x44], edx
jle 0x4c0c66
cmp dword [ebp + 0xa8], 0
mov dword [esp + 0x2c], 1
jne 0x4c0c6e
mov dword [esp + 0x2c], 0
xor ecx, ecx
mov dword [esp + 0x18], ecx
test eax, eax
jle 0x4c0ddb
jmp 0x4c0c88
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov eax, dword [edx + ecx*8]
mov ebp, dword [edx + ecx*8 + 4]
sub ebp, eax
xor ebx, ebx
inc ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], eax
cmp dword [esp + 0x2c], ebx
je 0x4c0cda
xor edx, edx
test ebp, ebp
jle 0x4c0cda
lea edi, [eax*4]
test eax, eax
jl 0x4c0cc0
cmp eax, dword [esi + 0x5c]
jge 0x4c0cc0
mov ecx, dword [esi + 0x58]
mov ecx, dword [edi + ecx]
jmp 0x4c0cc2
xor ecx, ecx
add ebx, dword [ecx + 0x20]
inc edx
add edi, 4
inc eax
cmp edx, ebp
mov dword [esp + 0x14], ebx
jl 0x4c0caf
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x28], edi
mov edi, dword [esi + 0x28]
add edi, dword [esp + 0x48]
mov dword [esp + 0x38], 0
test ebp, ebp
jle 0x4c0db8
lea edx, [eax*4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edx
test eax, eax
jl 0x4c0d99
cmp eax, dword [esi + 0x5c]
jge 0x4c0d99
mov ecx, dword [esi + 0x58]
mov edx, dword [esp + 0x24]
mov esi, dword [edx + ecx]
test esi, esi
je 0x4c0d95
cmp dword [esp + 0x2c], 0
mov ecx, dword [esi + 0x20]
je 0x4c0d4b
mov eax, dword [esp + 0x28]
sub eax, ebx
cdq
idiv dword [esp + 0x20]
add eax, ecx
sub dword [esp + 0x28], eax
sub dword [esp + 0x14], ecx
mov ecx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x1c]
lea ebx, [ecx + edi]
mov ecx, dword [esp + 0x74]
push ebx
push eax
push edi
push ecx
lea ecx, [esp + 0x68]
call fcn.00410170
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
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
push esi
mov dword [ecx + 0xc], eax
call fcn.004c41f0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov edi, ebx
mov ebx, dword [esp + 0x14]
mov dword [esi + 0x64], ecx
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
add dword [esp + 0x24], 4
dec dword [esp + 0x20]
inc ecx
inc eax
cmp ecx, ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
jl 0x4c0d08
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
add dword [esp + 0x74], eax
add dword [esp + 0x1c], eax
inc ecx
cmp ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
jl 0x4c0c80
mov ebp, dword [esp + 0x6c]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x90]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x94]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov edi, esi
lea ebx, [esp + 0x68]
mov eax, ebp
call fcn.004c0470
mov edx, dword [eax]
mov ecx, dword [esp + 0x40]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x1c