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

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
mov ecx, dword [0xa6a1e8]
cmp eax, ecx
mov dword [esp + 0x1c], eax
jge 0x4c2fff
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
shl eax, 4
mov dword [esp + 0x30], eax
mov ecx, dword [0xa6a1ec]
mov esi, dword [eax + ecx + 0xc]
cmp dword [esi], 2
jne 0x4c2fd9
cmp dword [esi + 0x68], 2
je 0x4c2fd9
fld dword [edi + 0x64]
fcomp dword [esi + 0x64]
fnstsw ax
test ah, 0x44
jp 0x4c2fd9
fld dword [edi + 0x58]
fcomp dword [esi + 0x58]
fnstsw ax
test ah, 0x44
jp 0x4c2fd9
fld dword [edi + 0x5c]
fcomp dword [esi + 0x5c]
fnstsw ax
test ah, 0x44
jp 0x4c2fd9
fld dword [edi + 0x60]
fcomp dword [esi + 0x60]
fnstsw ax
test ah, 0x44
jp 0x4c2fd9
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c2ae5
mov ebp, dword [edi + 0x74]
dec ebp
imul ebp, dword [edi + 0x70]
jmp 0x4c2ae7
xor ebp, ebp
push ebp
push edi
call fcn.004c2850
add esp, 8
test eax, eax
jne 0x4c2d45
mov edx, dword [edi + 0x70]
mov dword [esp + 0x10], 1
dec edx
cmp edx, 1
jle 0x4c2d45
inc ebp
mov dword [esp + 0x28], ebp
lea eax, [ebp + ebp*4]
lea ecx, [ebp + eax*2]
lea edx, [edi + ecx*4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4c2b3c
mov ebx, dword [esi + 0x74]
dec ebx
imul ebx, dword [esi + 0x70]
jmp 0x4c2b3e
xor ebx, ebx
push ebx
push esi
mov dword [esp + 0x1c], ebx
call fcn.004c2850
add esp, 8
test eax, eax
jne 0x4c2c16
mov eax, dword [esi + 0x70]
mov ecx, 1
dec eax
cmp eax, ecx
jle 0x4c2c16
lea edx, [ebx + ebx*4]
lea eax, [ebx + edx*2]
lea edx, [esi + eax*4 + 0xb4]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
fld dword [eax + 0x80]
fsub dword [edx - 8]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c2bfe
lea eax, [ebp + ebp*4 + 0xf]
lea edx, [ebp + eax*2 + 3]
lea eax, [ecx + ebx + 3]
fld dword [edi + edx*4]
lea ebx, [eax + eax*4]
lea eax, [eax + ebx*2]
fsub dword [esi + eax*4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c2bfa
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
fld dword [edx + 0x88]
fsub dword [eax]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c2bfa
mov edx, dword [edi + 0x78]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x78]
mov dword [esp + 0x20], 1
mov edx, dword [edx + ebx*4]
mov dword [eax + ecx*4], edx
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc ecx
add eax, 0x2c
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x70]
dec eax
cmp ecx, eax
jl 0x4c2b76
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x4c2b2a
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4c2c3e
mov eax, dword [esi + 0x70]
dec eax
jmp 0x4c2c40
xor eax, eax
push eax
push esi
mov dword [esp + 0x1c], eax
call fcn.004c2950
add esp, 8
test eax, eax
jne 0x4c2d0e
mov ecx, dword [esi + 0x74]
mov edx, 1
dec ecx
cmp ecx, edx
jle 0x4c2d0e
mov eax, dword [esi + 0x70]
mov ecx, dword [esp + 0x14]
imul eax, edx
add ecx, eax
lea eax, [ecx + ecx*4]
lea eax, [ecx + eax*2]
lea ebx, [esi + eax*4]
mov eax, dword [esp + 0x1c]
fld dword [eax + 0x80]
fsub dword [ebx + 0x80]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c2d01
lea eax, [ebp + ebp*4 + 0xf]
lea eax, [ebp + eax*2 + 3]
lea ebp, [ecx + ecx*4 + 0xf]
fld dword [edi + eax*4]
lea ecx, [ecx + ebp*2 + 3]
mov ebp, dword [esp + 0x28]
fsub dword [esi + ecx*4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c2d01
mov eax, dword [esp + 0x1c]
fld dword [eax + 0x88]
fsub dword [ebx + 0x88]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c2d01
mov ecx, dword [edi + 0x78]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x7c]
mov dword [esp + 0x20], 1
mov ecx, dword [ecx + ebx*4]
mov dword [eax + edx*4], ecx
mov eax, dword [esi + 0x74]
inc edx
dec eax
cmp edx, eax
jl 0x4c2c67
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x4c2c30
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
add ecx, 0x2c
inc eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x70]
inc ebp
dec ecx
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ebp
jl 0x4c2b22
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 2
mov dword [esp + 0x18], eax
jl 0x4c2ad3
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c2d6d
mov eax, dword [edi + 0x70]
dec eax
jmp 0x4c2d6f
xor eax, eax
push eax
push edi
mov dword [esp + 0x30], eax
call fcn.004c2950
add esp, 8
test eax, eax
jne 0x4c2faa
mov edx, dword [edi + 0x74]
mov dword [esp + 0x10], 1
dec edx
cmp edx, 1
jle 0x4c2faa
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4c2db4
mov ebx, dword [esi + 0x74]
dec ebx
imul ebx, dword [esi + 0x70]
jmp 0x4c2db6
xor ebx, ebx
push ebx
push esi
call fcn.004c2850
add esp, 8
test eax, eax
jne 0x4c2e76
mov eax, dword [esi + 0x70]
mov ebp, 1
dec eax
cmp eax, ebp
jle 0x4c2e76
lea ecx, [ebx + ebx*4 + 0x14]
lea edx, [ebx + ecx*2 + 4]
lea edx, [esi + edx*4]
mov eax, dword [edi + 0x70]
mov ecx, dword [esp + 0x28]
imul eax, dword [esp + 0x10]
add ecx, eax
lea eax, [ecx + ecx*4]
lea eax, [ecx + eax*2]
fld dword [edi + eax*4 + 0x80]
fsub dword [edx - 4]
lea ebx, [edi + eax*4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c2e66
lea eax, [ecx + ecx*4 + 0xf]
lea ecx, [ecx + eax*2 + 3]
fld dword [edi + ecx*4]
fsub dword [edx]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c2e66
fld dword [ebx + 0x88]
fsub dword [edx + 4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c2e66
mov eax, dword [edi + 0x7c]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x20], 1
mov eax, dword [eax + ebx*4]
mov dword [ecx + ebp*4], eax
mov ecx, dword [esi + 0x70]
inc ebp
add edx, 0x2c
dec ecx
cmp ebp, ecx
jl 0x4c2de4
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x4c2da2
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4c2e9e
mov eax, dword [esi + 0x70]
dec eax
jmp 0x4c2ea0
xor eax, eax
push eax
push esi
mov dword [esp + 0x1c], eax
call fcn.004c2950
add esp, 8
test eax, eax
jne 0x4c2f83
mov edx, dword [esi + 0x74]
mov ebx, 1
dec edx
cmp edx, ebx
jle 0x4c2f83
mov eax, dword [edi + 0x70]
mov ecx, dword [esp + 0x28]
imul eax, dword [esp + 0x10]
add ecx, eax
lea edx, [ecx + ecx*4]
lea eax, [ecx + edx*2]
mov edx, dword [esi + 0x70]
imul edx, ebx
fld dword [edi + eax*4 + 0x80]
lea ebp, [edi + eax*4]
mov eax, dword [esp + 0x14]
add edx, eax
lea eax, [edx + edx*4]
lea eax, [edx + eax*2]
fsub dword [esi + eax*4 + 0x80]
lea eax, [esi + eax*4]
mov dword [esp + 0x24], eax
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c2f76
lea eax, [ecx + ecx*4 + 0xf]
lea ecx, [ecx + eax*2 + 3]
lea eax, [edx + edx*4 + 0xf]
fld dword [edi + ecx*4]
lea edx, [edx + eax*2 + 3]
fsub dword [esi + edx*4]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c2f76
mov eax, dword [esp + 0x24]
fld dword [ebp + 0x88]
fsub dword [eax + 0x88]
fabs
fcomp qword [0x535980]
fnstsw ax
and eax, 0x4100
je 0x4c2f76
mov ecx, dword [edi + 0x7c]
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x7c]
mov dword [esp + 0x20], 1
mov ecx, dword [ecx + eax*4]
mov dword [edx + ebx*4], ecx
mov edx, dword [esi + 0x74]
inc ebx
dec edx
cmp ebx, edx
jl 0x4c2ec7
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x4c2e90
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x74]
inc eax
dec ecx
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4c2d9a
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 2
mov dword [esp + 0x18], eax
jl 0x4c2d5f
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4c2fd9
mov edx, dword [esp + 0x38]
push esi
push edx
mov dword [esi + 0x68], 2
call fcn.004c2a40
add esp, 8
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov edx, dword [0xa6a1e8]
inc ecx
add eax, 0x10
cmp ecx, edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
jl 0x4c2a68
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret