Function at 0x4c1490
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.004c1070
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 0x4c1a28
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 0x4c1541
mov edx, dword [esi]
mov eax, dword [edx + 0x48]
mov ecx, esi
call eax
test eax, eax
jne 0x4c178f
mov ecx, edi
call fcn.00416af0
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.004c1330
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 0x4c15a5
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 0x4c15bc
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 0x4c15e1
mov ecx, dword [ebp + 0xe0]
mov eax, dword [ecx + 0x14]
add eax, ebx
jmp 0x4c15ee
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 0x4c1618
cmp dword [ebp + 0xa8], 0
mov dword [esp + 0x18], 1
jne 0x4c1620
mov dword [esp + 0x18], 0
xor ecx, ecx
mov dword [esp + 0x2c], ecx
test eax, eax
jle 0x4c19db
jmp 0x4c1638
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 0x4c168a
xor edx, edx
test ebp, ebp
jle 0x4c168a
lea edi, [eax*4]
test eax, eax
jl 0x4c1670
cmp eax, dword [esi + 0x5c]
jge 0x4c1670
mov ecx, dword [esi + 0x58]
mov ecx, dword [edi + ecx]
jmp 0x4c1672
xor ecx, ecx
add ebx, dword [ecx + 0x20]
inc edx
add edi, 4
inc eax
cmp edx, ebp
mov dword [esp + 0x10], ebx
jl 0x4c165f
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 0x4c176b
lea ecx, [eax*4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ecx
test eax, eax
jl 0x4c174c
cmp eax, dword [esi + 0x5c]
jge 0x4c174c
mov edx, dword [esi + 0x58]
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx + edx]
test esi, esi
je 0x4c1748
cmp dword [esp + 0x18], 0
mov ecx, dword [esi + 0x20]
je 0x4c16fe
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.00410d70
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.004c4df0
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 0x4c16bb
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 0x4c1630
jmp 0x4c19d7
mov ecx, edi
call fcn.00410a70
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.004c1330
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 0x4c17f3
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 0x4c180a
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 0x4c182f
mov ecx, dword [ebp + 0xe0]
mov eax, dword [ecx + 0x14]
add eax, ebx
jmp 0x4c183c
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 0x4c1866
cmp dword [ebp + 0xa8], 0
mov dword [esp + 0x2c], 1
jne 0x4c186e
mov dword [esp + 0x2c], 0
xor ecx, ecx
mov dword [esp + 0x18], ecx
test eax, eax
jle 0x4c19db
jmp 0x4c1888
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 0x4c18da
xor edx, edx
test ebp, ebp
jle 0x4c18da
lea edi, [eax*4]
test eax, eax
jl 0x4c18c0
cmp eax, dword [esi + 0x5c]
jge 0x4c18c0
mov ecx, dword [esi + 0x58]
mov ecx, dword [edi + ecx]
jmp 0x4c18c2
xor ecx, ecx
add ebx, dword [ecx + 0x20]
inc edx
add edi, 4
inc eax
cmp edx, ebp
mov dword [esp + 0x14], ebx
jl 0x4c18af
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 0x4c19b8
lea edx, [eax*4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edx
test eax, eax
jl 0x4c1999
cmp eax, dword [esi + 0x5c]
jge 0x4c1999
mov ecx, dword [esi + 0x58]
mov edx, dword [esp + 0x24]
mov esi, dword [edx + ecx]
test esi, esi
je 0x4c1995
cmp dword [esp + 0x2c], 0
mov ecx, dword [esi + 0x20]
je 0x4c194b
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.00410d70
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.004c4df0
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 0x4c1908
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 0x4c1880
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.004c1070
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