Function at 0x10048670
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.1003e370
mov ebp, dword [esp + 0x78]
add esp, 8
cmp dword [esp + 0x74], 1
jne 0x1004882c
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 0x1004882c
fldz
cmp esi, 0xffffffff
jne 0x100486fe
mov edi, ecx
jmp 0x1004870a
mov edi, dword [esp + esi*4 + 0x48]
cmp edi, ecx
je 0x1004881e
cmp edi, 3
fst dword [esp + 0x14]
fst dword [esp + 0x10]
jne 0x10048733
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 0x1004879d
cmp edi, 1
jne 0x10048757
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 0x1004879d
test edi, edi
jne 0x10048779
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 0x1004879d
cmp edi, 2
jne 0x100487a1
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 0x1004881c
fld dword [edx + 4]
fcompp
fnstsw ax
test ah, 0x41
jp 0x1004881e
fld dword [esp + 0x38]
fld dword [edx + 8]
fcompp
fnstsw ax
test ah, 1
jne 0x1004881e
fld dword [esp + 0x3c]
fld dword [edx + 0xc]
fcompp
fnstsw ax
test ah, 1
jne 0x1004881e
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 0x100486f5
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 0x100488e4
cmp esi, 0xffffffff
jne 0x1004886d
mov edi, ecx
jmp 0x10048875
mov edi, dword [esp + esi*4 + 0x48]
cmp edi, ecx
je 0x100488dc
test edi, edi
jne 0x1004892c
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 0x10048944
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 0x100488dc
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 0x1004895c
add esi, 1
cmp esi, 4
jl 0x10048864
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 0x100489c7
fstp st(0)
jmp 0x100489c9
cmp edi, 1
fld dword [edx + 8]
fstp dword [esp + 0x6c]
jne 0x10048884
fld dword [ebp + 8]
jmp 0x10048886
cmp edi, 3
fld dword [edx + 0xc]
fstp dword [esp + 0x6c]
jne 0x100488a6
fld dword [ebp + 0xc]
jmp 0x100488a9
test edi, edi
jne 0x10048967
fld dword [ebp]
fsub dword [ebx]
jmp 0x1004897d
cmp edi, 1
jne 0x10048971
fld dword [ebp + 8]
jmp 0x10048975
fld dword [esp + 0x40]
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
cmp edi, 2
fstp dword [esp + 0x38]
jne 0x1004898e
fld dword [ebp + 4]
fsub dword [ebx + 4]
jmp 0x100489a4
cmp edi, 3
jne 0x10048998
fld dword [ebp + 0xc]
jmp 0x1004899c
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 0x100489f2
fstp st(0)
jmp 0x100489f4
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 0x10048a1f
fstp st(0)
jmp 0x10048a21
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 0x10048a4c
fstp st(0)
jmp 0x10048a4e
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