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

Disassembly:
sub esp, 0x48
mov edx, dword [esp + 0x5c]
fld dword [edx + 8]
push ebx
mov ebx, dword [esp + 0x58]
fsub dword [ebx]
push ebp
push esi
push edi
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
fld dword [edx + 0xc]
lea esi, [esp + 0x40]
fsub dword [ebx + 4]
fstp dword [esp + 0x14]
mov eax, dword [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x68]
call fcn.1003dbb0
mov ebp, dword [esp + 0x78]
add esp, 8
cmp dword [esp + 0x74], 1
jne 0x1004806c
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
mov esi, ecx
sub esi, 0xffffffff
neg esi
sbb esi, esi
cmp esi, 4
mov dword [esp + 0x48], 3
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 2
jge 0x1004806c
fldz
cmp esi, 0xffffffff
jne 0x10047f3e
mov edi, ecx
jmp 0x10047f4a
mov edi, dword [esp + esi*4 + 0x48]
cmp edi, ecx
je 0x1004805e
cmp edi, 3
fst dword [esp + 0x14]
fst dword [esp + 0x10]
jne 0x10047f73
fld dword [ebp]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
fld dword [ebp + 0xc]
mov dword [esp + 0x10], eax
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
jmp 0x10047fdd
cmp edi, 1
jne 0x10047f97
fld dword [ebp]
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
fld dword [ebp + 4]
mov dword [esp + 0x10], eax
fsub dword [ebx + 4]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
jmp 0x10047fdd
test edi, edi
jne 0x10047fb9
fld dword [ebp + 8]
fsub dword [ebx]
fstp dword [esp + 0x28]
mov eax, dword [esp + 0x28]
fld dword [ebp + 0xc]
mov dword [esp + 0x10], eax
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
jmp 0x10047fdd
cmp edi, 2
jne 0x10047fe1
fld dword [ebp + 8]
fsub dword [ebx]
fstp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
fld dword [ebp + 4]
mov dword [esp + 0x10], eax
fsub dword [ebx + 4]
fstp dword [esp + 0x34]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
fld dword [ebx]
fld dword [esp + 0x10]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x38]
fld dword [ebx + 4]
fld dword [esp + 0x14]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x3c]
fld dword [edx]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jp 0x1004805c
fld dword [edx + 4]
fcompp
fnstsw ax
test ah, 0x41
jp 0x1004805e
fld dword [esp + 0x38]
fld dword [edx + 8]
fcompp
fnstsw ax
test ah, 1
jne 0x1004805e
fld dword [esp + 0x3c]
fld dword [edx + 0xc]
fcompp
fnstsw ax
test ah, 1
jne 0x1004805e
mov ecx, dword [esp + 0x68]
fstp st(0)
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x10]
mov dword [ecx], edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword [eax], edx
mov dword [eax + 4], ecx
pop ebx
add esp, 0x48
ret
fstp st(0)
add esi, 1
cmp esi, 4
jl 0x10047f35
fstp st(0)
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
mov esi, ecx
sub esi, 0xffffffff
neg esi
sbb esi, esi
cmp esi, 4
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 3
mov dword [esp + 0x50], 2
mov dword [esp + 0x54], 0
jge 0x10048124
cmp esi, 0xffffffff
jne 0x100480ad
mov edi, ecx
jmp 0x100480b5
mov edi, dword [esp + esi*4 + 0x48]
cmp edi, ecx
je 0x1004811c
test edi, edi
jne 0x1004816c
fld dword [ebp]
fstp dword [esp + 0x6c]
fld dword [edx]
cmp edi, 2
fstp dword [esp + 0x64]
fld dword [esp + 0x6c]
fsub dword [esp + 0x64]
fstp dword [esp + 0x74]
jne 0x10048184
fld dword [ebp + 4]
fstp dword [esp + 0x6c]
fld dword [edx + 4]
fstp dword [esp + 0x64]
fld dword [esp + 0x74]
fld dword [ebx]
fcompp
fnstsw ax
test ah, 0x41
je 0x1004811c
fld dword [esp + 0x6c]
fsub dword [esp + 0x64]
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
fld dword [ebx + 4]
fcompp
fnstsw ax
test ah, 0x41
jne 0x1004819c
add esi, 1
cmp esi, 4
jl 0x100480a4
mov eax, dword [esp + 0x68]
mov dword [eax], 0xffffffff
fld dword [ebx]
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], ecx
fadd dword [esp + 0x10]
mov dword [esp + 0x14], eax
fstp dword [esp + 0x6c]
fld dword [edx + 8]
fstp dword [esp + 0x64]
fld dword [esp + 0x6c]
fld dword [esp + 0x64]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x10048207
fstp st(0)
jmp 0x10048209
cmp edi, 1
fld dword [edx + 8]
fstp dword [esp + 0x6c]
jne 0x100480c4
fld dword [ebp + 8]
jmp 0x100480c6
cmp edi, 3
fld dword [edx + 0xc]
fstp dword [esp + 0x6c]
jne 0x100480e6
fld dword [ebp + 0xc]
jmp 0x100480e9
test edi, edi
jne 0x100481a7
fld dword [ebp]
fsub dword [ebx]
jmp 0x100481bd
cmp edi, 1
jne 0x100481b1
fld dword [ebp + 8]
jmp 0x100481b5
fld dword [esp + 0x40]
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
cmp edi, 2
fstp dword [esp + 0x38]
jne 0x100481ce
fld dword [ebp + 4]
fsub dword [ebx + 4]
jmp 0x100481e4
cmp edi, 3
jne 0x100481d8
fld dword [ebp + 0xc]
jmp 0x100481dc
fld dword [esp + 0x44]
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
fstp dword [esp + 0x3c]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x38]
mov dword [ecx], edi
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword [eax], edx
mov dword [eax + 4], ecx
pop ebx
add esp, 0x48
ret
fstp st(1)
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
fsub dword [ebx]
fstp dword [esp + 0x6c]
fld dword [edx]
fstp dword [esp + 0x64]
fld dword [esp + 0x6c]
fld dword [esp + 0x64]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x10048232
fstp st(0)
jmp 0x10048234
fstp st(1)
fstp dword [esp + 0x10]
fld dword [ebx + 4]
fadd dword [esp + 0x14]
fstp dword [esp + 0x6c]
fld dword [edx + 0xc]
fstp dword [esp + 0x64]
fld dword [esp + 0x6c]
fld dword [esp + 0x64]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x1004825f
fstp st(0)
jmp 0x10048261
fstp st(1)
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
fsub dword [ebx + 4]
fstp dword [esp + 0x6c]
fld dword [edx + 4]
fstp dword [esp + 0x64]
fld dword [esp + 0x6c]
fld dword [esp + 0x64]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x1004828c
fstp st(0)
jmp 0x1004828e
fstp st(1)
mov eax, dword [esp + 0x5c]
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
add esp, 0x48
ret