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

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
mov ecx, dword [0xa6a1a8]
cmp eax, ecx
mov dword [esp + 0x1c], eax
jge 0x4c308f
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
shl eax, 4
mov dword [esp + 0x30], eax
mov ecx, dword [0xa6a1ac]
mov esi, dword [eax + ecx + 0xc]
cmp dword [esi], 2
jne 0x4c3069
cmp dword [esi + 0x68], 2
je 0x4c3069
fld dword [edi + 0x64]
fcomp dword [esi + 0x64]
fnstsw ax
test ah, 0x44
jp 0x4c3069
fld dword [edi + 0x58]
fcomp dword [esi + 0x58]
fnstsw ax
test ah, 0x44
jp 0x4c3069
fld dword [edi + 0x5c]
fcomp dword [esi + 0x5c]
fnstsw ax
test ah, 0x44
jp 0x4c3069
fld dword [edi + 0x60]
fcomp dword [esi + 0x60]
fnstsw ax
test ah, 0x44
jp 0x4c3069
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c2b75
mov ebp, dword [edi + 0x74]
dec ebp
imul ebp, dword [edi + 0x70]
jmp 0x4c2b77
xor ebp, ebp
push ebp
push edi
call fcn.004c28e0
add esp, 8
test eax, eax
jne 0x4c2dd5
mov edx, dword [edi + 0x70]
mov dword [esp + 0x10], 1
dec edx
cmp edx, 1
jle 0x4c2dd5
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 0x4c2bcc
mov ebx, dword [esi + 0x74]
dec ebx
imul ebx, dword [esi + 0x70]
jmp 0x4c2bce
xor ebx, ebx
push ebx
push esi
mov dword [esp + 0x1c], ebx
call fcn.004c28e0
add esp, 8
test eax, eax
jne 0x4c2ca6
mov eax, dword [esi + 0x70]
mov ecx, 1
dec eax
cmp eax, ecx
jle 0x4c2ca6
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c2c8e
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c2c8a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
fld dword [edx + 0x88]
fsub dword [eax]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c2c8a
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 0x4c2c06
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x4c2bba
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4c2cce
mov eax, dword [esi + 0x70]
dec eax
jmp 0x4c2cd0
xor eax, eax
push eax
push esi
mov dword [esp + 0x1c], eax
call fcn.004c29e0
add esp, 8
test eax, eax
jne 0x4c2d9e
mov ecx, dword [esi + 0x74]
mov edx, 1
dec ecx
cmp ecx, edx
jle 0x4c2d9e
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c2d91
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c2d91
mov eax, dword [esp + 0x1c]
fld dword [eax + 0x88]
fsub dword [ebx + 0x88]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c2d91
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 0x4c2cf7
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x4c2cc0
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 0x4c2bb2
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 2
mov dword [esp + 0x18], eax
jl 0x4c2b63
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c2dfd
mov eax, dword [edi + 0x70]
dec eax
jmp 0x4c2dff
xor eax, eax
push eax
push edi
mov dword [esp + 0x30], eax
call fcn.004c29e0
add esp, 8
test eax, eax
jne 0x4c303a
mov edx, dword [edi + 0x74]
mov dword [esp + 0x10], 1
dec edx
cmp edx, 1
jle 0x4c303a
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4c2e44
mov ebx, dword [esi + 0x74]
dec ebx
imul ebx, dword [esi + 0x70]
jmp 0x4c2e46
xor ebx, ebx
push ebx
push esi
call fcn.004c28e0
add esp, 8
test eax, eax
jne 0x4c2f06
mov eax, dword [esi + 0x70]
mov ebp, 1
dec eax
cmp eax, ebp
jle 0x4c2f06
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c2ef6
lea eax, [ecx + ecx*4 + 0xf]
lea ecx, [ecx + eax*2 + 3]
fld dword [edi + ecx*4]
fsub dword [edx]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c2ef6
fld dword [ebx + 0x88]
fsub dword [edx + 4]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c2ef6
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 0x4c2e74
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x4c2e32
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4c2f2e
mov eax, dword [esi + 0x70]
dec eax
jmp 0x4c2f30
xor eax, eax
push eax
push esi
mov dword [esp + 0x1c], eax
call fcn.004c29e0
add esp, 8
test eax, eax
jne 0x4c3013
mov edx, dword [esi + 0x74]
mov ebx, 1
dec edx
cmp edx, ebx
jle 0x4c3013
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3006
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 [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3006
mov eax, dword [esp + 0x24]
fld dword [ebp + 0x88]
fsub dword [eax + 0x88]
fabs
fcomp qword [0x535990]
fnstsw ax
and eax, 0x4100
je 0x4c3006
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 0x4c2f57
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x4c2f20
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x74]
inc eax
dec ecx
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4c2e2a
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 2
mov dword [esp + 0x18], eax
jl 0x4c2def
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4c3069
mov edx, dword [esp + 0x38]
push esi
push edx
mov dword [esi + 0x68], 2
call fcn.004c2ad0
add esp, 8
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov edx, dword [0xa6a1a8]
inc ecx
add eax, 0x10
cmp ecx, edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
jl 0x4c2af8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret