Function at 0x10047740
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.1003d440
mov ebp, dword [esp + 0x78]
add esp, 8
cmp dword [esp + 0x74], 1
jne 0x100478fc
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 0x100478fc
fldz
cmp esi, 0xffffffff
jne 0x100477ce
mov edi, ecx
jmp 0x100477da
mov edi, dword [esp + esi*4 + 0x48]
cmp edi, ecx
je 0x100478ee
cmp edi, 3
fst dword [esp + 0x14]
fst dword [esp + 0x10]
jne 0x10047803
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 0x1004786d
cmp edi, 1
jne 0x10047827
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 0x1004786d
test edi, edi
jne 0x10047849
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 0x1004786d
cmp edi, 2
jne 0x10047871
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 0x100478ec
fld dword [edx + 4]
fcompp
fnstsw ax
test ah, 0x41
jp 0x100478ee
fld dword [esp + 0x38]
fld dword [edx + 8]
fcompp
fnstsw ax
test ah, 1
jne 0x100478ee
fld dword [esp + 0x3c]
fld dword [edx + 0xc]
fcompp
fnstsw ax
test ah, 1
jne 0x100478ee
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 0x100477c5
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 0x100479b4
cmp esi, 0xffffffff
jne 0x1004793d
mov edi, ecx
jmp 0x10047945
mov edi, dword [esp + esi*4 + 0x48]
cmp edi, ecx
je 0x100479ac
test edi, edi
jne 0x100479fc
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 0x10047a14
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 0x100479ac
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 0x10047a2c
add esi, 1
cmp esi, 4
jl 0x10047934
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 0x10047a97
fstp st(0)
jmp 0x10047a99
cmp edi, 1
fld dword [edx + 8]
fstp dword [esp + 0x6c]
jne 0x10047954
fld dword [ebp + 8]
jmp 0x10047956
cmp edi, 3
fld dword [edx + 0xc]
fstp dword [esp + 0x6c]
jne 0x10047976
fld dword [ebp + 0xc]
jmp 0x10047979
test edi, edi
jne 0x10047a37
fld dword [ebp]
fsub dword [ebx]
jmp 0x10047a4d
cmp edi, 1
jne 0x10047a41
fld dword [ebp + 8]
jmp 0x10047a45
fld dword [esp + 0x40]
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
cmp edi, 2
fstp dword [esp + 0x38]
jne 0x10047a5e
fld dword [ebp + 4]
fsub dword [ebx + 4]
jmp 0x10047a74
cmp edi, 3
jne 0x10047a68
fld dword [ebp + 0xc]
jmp 0x10047a6c
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 0x10047ac2
fstp st(0)
jmp 0x10047ac4
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 0x10047aef
fstp st(0)
jmp 0x10047af1
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 0x10047b1c
fstp st(0)
jmp 0x10047b1e
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