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

Disassembly:
sub esp, 0x80
push ebx
mov ebx, dword [esp + 0x88]
push ebp
push esi
push edi
push ebx
call fcn.004a0b80
add esp, 4
test eax, eax
je 0x4a1372
mov ebp, dword [esp + 0x98]
push ebp
call fcn.004a0b80
add esp, 4
test eax, eax
je 0x4a1372
mov eax, dword [0xc68e34]
lea ebp, [ebp + ebp*2]
lea ebx, [ebx + ebx*2]
shl ebp, 4
add ebp, eax
shl ebx, 4
add ebx, eax
mov edi, ebp
xor edx, edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebp
lea esi, [ebp + 0xc]
lea ecx, [ebx + 0x18]
sub edi, ebx
fld dword [edi + ecx]
fadd dword [0x4bd1c0]
fcomp dword [ecx - 0xc]
fnstsw ax
test ah, 1
jne 0x4a1372
fld dword [esi]
fsub dword [0x4bd1c0]
fcomp dword [ecx]
fnstsw ax
test ah, 0x41
je 0x4a1372
inc edx
add ecx, 4
add esi, 4
cmp edx, 2
jl 0x4a0ed4
fld dword [ebp + 0x14]
fcomp dword [ebx + 0x20]
fnstsw ax
test ah, 0x41
je 0x4a1372
xor edi, edi
push 0x30
lea eax, [esp + 0x64]
push edi
push eax
mov dword [esp + 0x1c], 0x47c34f80
mov dword [esp + 0x28], 0
mov dword [esp + 0x3c], edi
call fcn.00420650
mov eax, dword [ebx + 4]
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x2c], edi
jle 0x4a1372
mov ecx, dword [ebx + 8]
mov edx, dword [0xc68e2c]
add ecx, edi
mov eax, dword [edx + ecx*4]
mov ecx, dword [0xc68e24]
cdq
xor eax, edx
sub eax, edx
lea eax, [eax + eax*2]
lea esi, [ecx + eax*8]
test byte [esi + 4], 4
mov dword [esp + 0x24], esi
je 0x4a127b
mov eax, dword [ebp + 4]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x28], ecx
jle 0x4a127b
mov edx, dword [ebp + 8]
mov eax, dword [0xc68e2c]
add edx, ecx
mov eax, dword [eax + edx*4]
cdq
xor eax, edx
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [0xc68e24]
lea ebx, [eax + edx*8]
test byte [ebx + 4], 4
je 0x4a1263
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 0x14], 0
jle 0x4a1263
mov eax, dword [ebx + 8]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x20], ecx
jle 0x4a124b
jmp 0x4a0fe1
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
add edx, eax
mov eax, dword [0xc68e1c]
mov edi, dword [eax + edx*4]
mov edx, dword [ebx + 0xc]
add edx, ecx
mov eax, dword [eax + edx*4]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jne 0x4a122f
mov ecx, dword [0xc68e14]
mov esi, dword [0xc68e04]
xor edx, edx
test edi, edi
setl dl
mov eax, edi
mov ebp, edx
cdq
xor eax, edx
sub eax, edx
lea edx, [ecx + eax*8]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
lea eax, [eax + eax*2]
lea eax, [esi + eax*4]
lea ecx, [ecx + ecx*2]
fld dword [eax]
lea ecx, [esi + ecx*4]
fsub dword [ecx]
fld dword [eax + 4]
fsub dword [ecx + 4]
fld dword [eax + 8]
fsub dword [ecx + 8]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp dword [esp + 0x18]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [eax]
fadd dword [ecx]
fld dword [ecx + 4]
fadd dword [eax + 4]
fstp dword [esp + 0x40]
fld dword [eax + 8]
mov eax, dword [edx + ebp*4]
fadd dword [ecx + 8]
xor ecx, ecx
test ebp, ebp
sete cl
fstp dword [esp + 0x44]
lea eax, [eax + eax*2]
lea eax, [esi + eax*4]
fmul qword [0x4bc320]
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
mov edx, dword [edx + ecx*4]
fmul qword [0x4bc320]
lea edx, [edx + edx*2]
lea ecx, [esi + edx*4]
fstp dword [esp + 0x40]
fld dword [esp + 0x44]
fmul qword [0x4bc320]
fst dword [esp + 0x44]
fstp dword [esp + 0x5c]
fld dword [eax]
fsub dword [ecx]
fld dword [eax + 4]
fsub dword [ecx + 4]
fld dword [eax + 8]
mov eax, dword [ebx]
fsub dword [ecx + 8]
mov ecx, dword [0xc68e0c]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
fld st(1)
fmul dword [eax + 8]
fld st(1)
fmul dword [eax + 4]
fsubp st(1)
fstp dword [esp + 0x48]
fmul dword [eax]
fld st(2)
fmul dword [eax + 8]
fsubp st(1)
lea edx, [esp + 0x48]
push edx
fstp dword [esp + 0x50]
fxch st(1)
fmul dword [eax + 4]
fxch st(1)
fmul dword [eax]
fsubp st(1)
fstp dword [esp + 0x54]
call fcn.0042c7d0
fstp st(0)
add esp, 4
fld dword [esp + 0x48]
fmul dword [0x4bc7ec]
fadd dword [esp + 0x3c]
fld dword [esp + 0x4c]
fmul dword [0x4bc7ec]
fadd dword [esp + 0x40]
fstp dword [esp + 0x58]
fld dword [esp + 0x48]
fmul qword [0x4bc330]
fadd dword [esp + 0x3c]
fld dword [esp + 0x4c]
fmul qword [0x4bc330]
fadd dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0x50]
fmul qword [0x4bc330]
fadd dword [esp + 0x44]
fstp dword [esp + 0x44]
fld dword [esp + 0x50]
fmul dword [0x4bc7ec]
fadd dword [esp + 0x5c]
fadd qword [0x4bc3a8]
fstp dword [esp + 0x5c]
fld dword [esp + 0x44]
fcom dword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x4a11bd
fld dword [esp + 0x10]
fadd dword [0x4bc318]
fld st(1)
fcompp
fnstsw ax
test ah, 1
je 0x4a1229
fld dword [esp + 0x18]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x4a1229
mov eax, dword [esp + 0x18]
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x40]
fstp dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
fstp dword [esp + 0x78]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x74], eax
mov eax, 1
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], edi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], 2
mov word [esp + 0x88], ax
mov dword [esp + 0x30], eax
jmp 0x4a122f
fstp st(0)
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 8]
inc ecx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x4a0fdd
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4a0fca
mov ecx, dword [esp + 0x28]
mov eax, dword [ebp + 4]
inc ecx
cmp ecx, eax
mov dword [esp + 0x28], ecx
jl 0x4a0f90
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x2c]
mov eax, dword [ebx + 4]
inc edi
cmp edi, eax
mov dword [esp + 0x2c], edi
jl 0x4a0f52
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a1372
call fcn.004a08e0
mov esi, eax
test esi, esi
je 0x4a1372
mov eax, dword [esp + 0x60]
mov dword [esi], eax
mov ecx, dword [esp + 0x64]
mov dword [esi + 4], ecx
mov edx, dword [esp + 0x68]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x6c]
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x70]
mov dword [esi + 0x10], ecx
mov edx, dword [esp + 0x74]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x78]
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x7c]
mov dword [esi + 0x1c], ecx
mov edx, dword [esp + 0x80]
mov dword [esi + 0x20], edx
mov eax, dword [esp + 0x84]
mov dword [esi + 0x24], eax
mov cx, word [esp + 0x88]
mov eax, dword [esp + 0x94]
mov word [esi + 0x28], cx
mov edx, dword [0xc68810]
mov ecx, dword [edx + eax*4]
mov dword [esi + 0x2c], ecx
mov edx, dword [0xc68810]
push eax
mov dword [edx + eax*4], esi
call fcn.004a0b30
add esp, 4
test eax, eax
jne 0x4a1357
mov eax, dword [esp + 0x98]
push eax
call fcn.004a0b30
add esp, 4
test eax, eax
je 0x4a1357
xor ecx, ecx
mov cx, word [esi + 0x28]
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
fadd dword [0xc688e4]
call fcn.004aeed0
mov word [esi + 0x28], ax
mov eax, dword [0xc68844]
pop edi
pop esi
inc eax
pop ebp
mov dword [0xc68844], eax
mov eax, 1
pop ebx
add esp, 0x80
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret