Function at 0x10046c50
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.1003c950
mov ebp, dword [esp + 0x78]
add esp, 8
cmp dword [esp + 0x74], 1
jne 0x10046e0c
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 0x10046e0c
fldz
cmp esi, 0xffffffff
jne 0x10046cde
mov edi, ecx
jmp 0x10046cea
mov edi, dword [esp + esi*4 + 0x48]
cmp edi, ecx
je 0x10046dfe
cmp edi, 3
fst dword [esp + 0x14]
fst dword [esp + 0x10]
jne 0x10046d13
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 0x10046d7d
cmp edi, 1
jne 0x10046d37
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 0x10046d7d
test edi, edi
jne 0x10046d59
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 0x10046d7d
cmp edi, 2
jne 0x10046d81
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 0x10046dfc
fld dword [edx + 4]
fcompp
fnstsw ax
test ah, 0x41
jp 0x10046dfe
fld dword [esp + 0x38]
fld dword [edx + 8]
fcompp
fnstsw ax
test ah, 1
jne 0x10046dfe
fld dword [esp + 0x3c]
fld dword [edx + 0xc]
fcompp
fnstsw ax
test ah, 1
jne 0x10046dfe
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 0x10046cd5
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 0x10046ec4
cmp esi, 0xffffffff
jne 0x10046e4d
mov edi, ecx
jmp 0x10046e55
mov edi, dword [esp + esi*4 + 0x48]
cmp edi, ecx
je 0x10046ebc
test edi, edi
jne 0x10046f0c
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 0x10046f24
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 0x10046ebc
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 0x10046f3c
add esi, 1
cmp esi, 4
jl 0x10046e44
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 0x10046fa7
fstp st(0)
jmp 0x10046fa9
cmp edi, 1
fld dword [edx + 8]
fstp dword [esp + 0x6c]
jne 0x10046e64
fld dword [ebp + 8]
jmp 0x10046e66
cmp edi, 3
fld dword [edx + 0xc]
fstp dword [esp + 0x6c]
jne 0x10046e86
fld dword [ebp + 0xc]
jmp 0x10046e89
test edi, edi
jne 0x10046f47
fld dword [ebp]
fsub dword [ebx]
jmp 0x10046f5d
cmp edi, 1
jne 0x10046f51
fld dword [ebp + 8]
jmp 0x10046f55
fld dword [esp + 0x40]
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
cmp edi, 2
fstp dword [esp + 0x38]
jne 0x10046f6e
fld dword [ebp + 4]
fsub dword [ebx + 4]
jmp 0x10046f84
cmp edi, 3
jne 0x10046f78
fld dword [ebp + 0xc]
jmp 0x10046f7c
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 0x10046fd2
fstp st(0)
jmp 0x10046fd4
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 0x10046fff
fstp st(0)
jmp 0x10047001
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 0x1004702c
fstp st(0)
jmp 0x1004702e
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