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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4ee1a8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x6341d4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 8]
xor esi, esi
cmp ecx, esi
jbe 0x47a4fb
cmp ecx, 1
jne 0x47a4b5
fldz
mov ecx, dword [edi]
fcom qword [ecx]
fnstsw ax
test ah, 0x44
jnp 0x47a4f9
cmp dword [ecx + 8], esi
je 0x47a4f9
mov ecx, dword [ebp + 0x14]
fstp qword [esp + 0x1c]
lea eax, [esp + 0x1c]
push eax
call fcn.004770c0
jmp 0x47a863
cmp ecx, 2
jne 0x47a534
mov edx, dword [edi]
cmp dword [edx + 0x18], esi
jne 0x47a534
fld qword [edx + 0x10]
fdiv qword [edx]
fchs
fldz
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x47a510
fld qword [ebp + 0xc]
fchs
fcomp st(2)
fnstsw ax
test ah, 5
jp 0x47a4e5
fstp st(1)
jmp 0x47a512
mov ecx, dword [edx + 8]
fstp st(0)
and ecx, 0x80000001
jns 0x47a4f7
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x47a512
fstp st(0)
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
fild dword [edx + 8]
fld1
fdivrp st(1)
call fcn.004b2760
fstp qword [esp + 0x1c]
mov ecx, dword [ebp + 0x14]
lea edx, [esp + 0x1c]
push edx
call fcn.004770c0
jmp 0x47a863
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
xor ebx, ebx
mov dword [esp + 0x80], esi
cmp ecx, esi
jbe 0x47a5fa
mov eax, dword [edi]
mov ecx, dword [eax + esi + 8]
fld qword [eax + esi]
add eax, esi
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
test eax, eax
je 0x47a570
inc dword [eax + 4]
mov byte [esp + 0x80], 1
test ecx, ecx
je 0x47a5cb
fimul dword [esp + 0x24]
dec ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x3c]
fstp qword [esp + 0x20]
call fcn.0047a030
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x80], 0
test ecx, ecx
je 0x47a5c0
dec dword [ecx + 4]
cmp dword [ecx + 4], 0
jg 0x47a5b8
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esp + 0x28], 0
inc ebx
add esi, 0x10
cmp ebx, dword [edi + 8]
jb 0x47a553
jmp 0x47a5ec
fstp st(0)
mov byte [esp + 0x80], 0
test eax, eax
je 0x47a5ec
dec dword [eax + 4]
cmp dword [eax + 4], 0
jg 0x47a5ec
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
xor eax, eax
cmp dword [esp + 0x40], eax
ja 0x47a63b
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x80], 0xffffffff
je 0x47a626
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004778c0
push ecx
push 0x10
push eax
call fcn.004af6af
push esi
call fcn.0049072e
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
fld qword [ebp + 0xc]
lea edx, [esp + 0x2c]
push edx
sub esp, 8
lea eax, [esp + 0x44]
fstp qword [esp]
push eax
mov byte [esp + 0x90], 2
call fcn.0047a450
add esp, 0x10
test eax, eax
jne 0x47a74a
mov ecx, dword [esp + 0x34]
inc ecx
push ecx
lea ecx, [esp + 0x30]
call fcn.0046d730
fldz
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
fstp qword [eax + edx*8]
inc dword [esp + 0x34]
fld qword [ebp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
sub esp, 8
fstp qword [esp]
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x4c]
push eax
xor eax, eax
call fcn.00477300
add esp, 0x18
test eax, eax
je 0x47a711
mov esi, dword [ebp + 0x14]
mov ecx, dword [esi + 8]
inc ecx
push ecx
mov ecx, esi
call fcn.0046d730
fld qword [esp + 0x1c]
mov edx, dword [esi + 8]
mov eax, dword [esi]
fstp qword [eax + edx*8]
mov eax, dword [esp + 0x2c]
inc dword [esi + 8]
test eax, eax
je 0x47a6e9
push eax
call fcn.0049072e
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x80], 0xffffffff
test eax, eax
je 0x47a863
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004778c0
push ecx
jmp 0x47a852
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x47a722
push eax
call fcn.0049072e
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x80], 0xffffffff
test eax, eax
je 0x47a626
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004778c0
push edx
jmp 0x47a615
fld qword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
sub esp, 8
fstp qword [esp]
push 1
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x4c]
push edx
xor eax, eax
call fcn.00477300
mov esi, dword [ebp + 0x14]
add esp, 0x18
test eax, eax
je 0x47a790
mov eax, dword [esi + 8]
inc eax
push eax
mov ecx, esi
call fcn.0046d730
fld qword [esp + 0x1c]
mov ecx, dword [esi + 8]
mov edx, dword [esi]
fstp qword [edx + ecx*8]
inc dword [esi + 8]
xor ebx, ebx
cmp dword [esp + 0x34], ebx
jbe 0x47a804
fld qword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
sub esp, 8
fstp qword [esp]
push 0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x4c]
push edx
mov eax, ebx
call fcn.00477300
add esp, 0x18
test eax, eax
je 0x47a7fd
mov ecx, dword [esi + 8]
test ecx, ecx
jbe 0x47a7e5
mov eax, dword [esi]
fld qword [esp + 0x1c]
fsub qword [eax + ecx*8 - 8]
lea eax, [eax + ecx*8 - 8]
fabs
fld qword [ebp + 0xc]
fadd st(0), st(0)
fcompp
fnstsw ax
test ah, 0x41
je 0x47a7fd
inc ecx
push ecx
mov ecx, esi
call fcn.0046d730
fld qword [esp + 0x1c]
mov ecx, dword [esi + 8]
mov edx, dword [esi]
fstp qword [edx + ecx*8]
inc dword [esi + 8]
inc ebx
cmp ebx, dword [esp + 0x34]
jb 0x47a798
cmp dword [esi + 8], 0
mov eax, dword [esp + 0x2c]
ja 0x47a826
test eax, eax
je 0x47a81b
push eax
call fcn.0049072e
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
jmp 0x47a5fc
test eax, eax
je 0x47a833
push eax
call fcn.0049072e
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x80], 0xffffffff
test eax, eax
je 0x47a863
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004778c0
push edx
push 0x10
push eax
call fcn.004af6af
push esi
call fcn.0049072e
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret