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

Disassembly:
sub esp, 0x60
mov eax, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x30], 0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x4cc]
mov dword [esp + 0x2c], edx
test eax, eax
jle 0x4a173b
mov eax, dword [esp + 0x80]
push ebx
push ebp
push edi
mov edi, eax
lea ebp, [esi + 0x8d0]
shl edi, 4
add edi, eax
mov dword [esp + 0x14], ebp
lea ecx, [ecx + edi*8]
mov dword [esp + 0x18], ecx
jmp 0x4a14d3
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x764]
mov ecx, dword [ecx + 0x768]
mov esi, dword [esp + 0x88]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x400]
mov dword [esp + 0x20], eax
shl ecx, 2
cmp dword [ecx + esi], 0
jne 0x4a150a
mov eax, dword [ebp]
cmp dword [esi + eax*4], 0
je 0x4a1716
mov edi, dword [esp + 0x7c]
mov eax, dword [ebp]
shl eax, 2
mov ebx, dword [ecx + edi]
mov dword [esp + 0x44], ebx
mov edi, dword [eax + edi]
lea ebx, [ebx + edx*4]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x80]
mov ebp, dword [ecx + ebx]
mov ebx, dword [eax + ebx]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x48], ebp
mov ebp, dword [ecx + ebx]
mov eax, dword [eax + ebx]
mov dword [esp + 0x50], ebp
mov ebp, dword [esp + 0x14]
mov dword [ecx + esi], 1
mov dword [esp + 0x54], eax
mov ecx, dword [ebp]
xor eax, eax
test edx, edx
mov dword [esi + ecx*4], 1
mov dword [esp + 0x10], eax
jle 0x4a1716
mov ecx, dword [esp + 0x18]
add ecx, 0x76c
mov dword [esp + 0x8c], ecx
mov esi, dword [ecx + 8]
mov dword [esp + 0x34], esi
mov esi, dword [ecx + 4]
mov dword [esp + 0x60], esi
mov esi, dword [ecx]
cmp eax, esi
jge 0x4a1700
lea ecx, [edi + edx*4]
mov edx, dword [esp + 0x40]
sub ecx, edx
sub edx, edi
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x50]
sub edx, edi
sub ebx, edi
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x4c]
sub edx, edi
sub ebp, edi
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x54]
sub edx, edi
lea esi, [edi + eax*4]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x6c], edx
jmp 0x4a15e1
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x74]
cmp eax, dword [edx]
jge 0x4a16f5
fld dword [ebx + esi]
fabs
fld dword [esi]
fabs
fstp qword [esp + 0x2c]
fcom qword [esp + 0x2c]
fnstsw ax
and eax, 0x4100
je 0x4a160d
fstp st(0)
fld qword [esp + 0x2c]
mov eax, dword [esp + 0x8c]
fst dword [esp + 0x2c]
fcomp dword [eax + 0xc]
fnstsw ax
test ah, 5
jp 0x4a165a
mov edx, dword [esp + 0x5c]
lea eax, [edx + esi]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x34]
mov ecx, dword [eax + ecx]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [eax]
mov eax, dword [esi]
push ecx
mov ecx, dword [ebx + esi]
push edx
push eax
push ecx
call fcn.004a1830
add esp, 0x24
jmp 0x4a1682
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esi]
push edx
mov edx, dword [ebx + esi]
push eax
push ecx
push edx
call fcn.004a1740
add esp, 0x1c
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
fld dword [esp + 0x24]
fsub dword [eax + esi]
fstp dword [esi + ebp]
fld dword [esp + 0x28]
fsub dword [ecx + esi]
mov ecx, dword [esp + 0x6c]
fst dword [esp + 0x2c]
fstp dword [ecx + esi]
fld dword [esp + 0x34]
fchs
fcomp dword [esp + 0x2c]
fnstsw ax
and eax, 0x4100
je 0x4a16ca
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
and eax, 0x4100
jne 0x4a16d8
mov dword [esi + ebp], 0
mov dword [ecx + esi], 0
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x10]
inc eax
add esi, 4
mov ecx, dword [edx]
mov dword [esp + 0x10], eax
cmp eax, ecx
jl 0x4a15dd
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x8c]
add ecx, 0x10
cmp eax, edx
mov dword [esp + 0x8c], ecx
jl 0x4a1583
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x3c]
inc eax
add ebp, 4
mov esi, dword [ecx + 0x4cc]
mov dword [esp + 0x3c], eax
cmp eax, esi
mov dword [esp + 0x14], ebp
jl 0x4a14cf
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x60
ret