Function at 0x10042f10
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.10038c10
mov ebp, dword [esp + 0x78]
add esp, 8
cmp dword [esp + 0x74], 1
jne 0x100430cc
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 0x100430cc
fldz
cmp esi, 0xffffffff
jne 0x10042f9e
mov edi, ecx
jmp 0x10042faa
mov edi, dword [esp + esi*4 + 0x48]
cmp edi, ecx
je 0x100430be
cmp edi, 3
fst dword [esp + 0x14]
fst dword [esp + 0x10]
jne 0x10042fd3
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 0x1004303d
cmp edi, 1
jne 0x10042ff7
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 0x1004303d
test edi, edi
jne 0x10043019
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 0x1004303d
cmp edi, 2
jne 0x10043041
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 0x100430bc
fld dword [edx + 4]
fcompp
fnstsw ax
test ah, 0x41
jp 0x100430be
fld dword [esp + 0x38]
fld dword [edx + 8]
fcompp
fnstsw ax
test ah, 1
jne 0x100430be
fld dword [esp + 0x3c]
fld dword [edx + 0xc]
fcompp
fnstsw ax
test ah, 1
jne 0x100430be
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 0x10042f95
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 0x10043184
cmp esi, 0xffffffff
jne 0x1004310d
mov edi, ecx
jmp 0x10043115
mov edi, dword [esp + esi*4 + 0x48]
cmp edi, ecx
je 0x1004317c
test edi, edi
jne 0x100431cc
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 0x100431e4
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 0x1004317c
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 0x100431fc
add esi, 1
cmp esi, 4
jl 0x10043104
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 0x10043267
fstp st(0)
jmp 0x10043269
cmp edi, 1
fld dword [edx + 8]
fstp dword [esp + 0x6c]
jne 0x10043124
fld dword [ebp + 8]
jmp 0x10043126
cmp edi, 3
fld dword [edx + 0xc]
fstp dword [esp + 0x6c]
jne 0x10043146
fld dword [ebp + 0xc]
jmp 0x10043149
test edi, edi
jne 0x10043207
fld dword [ebp]
fsub dword [ebx]
jmp 0x1004321d
cmp edi, 1
jne 0x10043211
fld dword [ebp + 8]
jmp 0x10043215
fld dword [esp + 0x40]
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
cmp edi, 2
fstp dword [esp + 0x38]
jne 0x1004322e
fld dword [ebp + 4]
fsub dword [ebx + 4]
jmp 0x10043244
cmp edi, 3
jne 0x10043238
fld dword [ebp + 0xc]
jmp 0x1004323c
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 0x10043292
fstp st(0)
jmp 0x10043294
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 0x100432bf
fstp st(0)
jmp 0x100432c1
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 0x100432ec
fstp st(0)
jmp 0x100432ee
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