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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x74
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
push ebx
push esi
mov esi, dword [eax + 8]
cmp esi, 3
push edi
mov dword [esp + 0x34], edx
jge 0x416855
mov ecx, dword [ebp + 0x14]
mov edi, dword [ecx + 8]
cmp edi, 3
jge 0x416855
cmp esi, 2
mov eax, dword [eax + 4]
mov dword [esp + 0x20], 0
mov dword [esp + 0x38], 3
jne 0x416416
movzx esi, word [eax + 2]
movzx esi, word [eax + esi*8]
movzx ebx, word [eax]
cmp esi, ebx
mov dword [esp + 0x18], esi
jge 0x4163e3
mov eax, ebx
mov ebx, esi
mov dword [esp + 0x18], eax
cmp edi, 2
mov eax, dword [ecx + 4]
movzx esi, word [eax]
mov dword [esp + 0x1c], esi
jne 0x416444
mov ecx, eax
movzx eax, word [ecx + 2]
movzx eax, word [ecx + eax*8]
cmp eax, esi
mov dword [esp + 0x20], eax
jge 0x41640c
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], 4
jmp 0x416444
cmp edi, 2
jne 0x416862
movzx ebx, word [eax]
mov eax, dword [ecx + 4]
movzx ecx, word [eax + 2]
movzx ecx, word [eax + ecx*8]
cmp ecx, ebx
movzx eax, word [eax]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jge 0x416444
mov eax, ebx
mov ebx, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
shl eax, 4
fld dword [eax + edx]
lea esi, [eax + edx]
mov ecx, ebx
shl ecx, 4
fsub dword [ecx + edx]
lea edi, [ecx + edx]
mov ecx, dword [esp + 0x1c]
shl ecx, 4
fstp dword [esp + 0x50]
lea eax, [ecx + edx]
fld dword [esi + 4]
fsub dword [edi + 4]
fstp dword [esp + 0x54]
fld dword [esi + 8]
fsub dword [edi + 8]
fstp dword [esp + 0x58]
fld dword [esp + 0x54]
fld dword [esp + 0x50]
fld dword [esp + 0x58]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fst dword [esp + 0x3c]
fld dword [eax]
fsub dword [esi]
fstp dword [esp + 0x40]
fld dword [eax + 4]
fsub dword [esi + 4]
fstp dword [esp + 0x44]
fld dword [eax + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x48]
fld dword [esp + 0x44]
fld dword [esp + 0x40]
fld dword [esp + 0x48]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 0x24]
fld dword [edi]
fsub dword [eax]
fstp dword [esp + 0x60]
fld dword [edi + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x64]
fld dword [edi + 8]
fsub dword [eax + 8]
fstp dword [esp + 0x68]
fld dword [esp + 0x60]
fld dword [esp + 0x64]
fld dword [esp + 0x68]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x28]
fstp dword [esp + 0x2c]
fldz
fld st(0)
fld dword [esp + 0x2c]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x41655c
fstp st(1)
call fcn.0042eb10
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
fld1
fdivrp st(1)
fstp dword [esp + 0x2c]
fldz
jmp 0x416562
fstp st(0)
fst dword [esp + 0x2c]
fld dword [esp + 0x2c]
fld st(0)
fmul dword [esp + 0x50]
fstp dword [esp + 0x50]
fld st(0)
fmul dword [esp + 0x54]
fstp dword [esp + 0x54]
fmul dword [esp + 0x58]
fstp dword [esp + 0x58]
fld dword [esp + 0x30]
fstp dword [esp + 0x30]
fld st(0)
fld dword [esp + 0x30]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x4165ba
fstp st(1)
call fcn.0042eb10
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
mov edx, dword [esp + 0x34]
fld1
fdivrp st(1)
fstp dword [esp + 0x30]
fldz
jmp 0x4165c0
fstp st(0)
fst dword [esp + 0x30]
fld dword [esp + 0x30]
fld st(0)
fmul dword [esp + 0x40]
fstp dword [esp + 0x40]
fld st(0)
fmul dword [esp + 0x44]
fstp dword [esp + 0x44]
fmul dword [esp + 0x48]
fstp dword [esp + 0x48]
fld dword [esp + 0x40]
fsub dword [esp + 0x50]
fstp dword [esp + 0x70]
fld dword [esp + 0x44]
fsub dword [esp + 0x54]
fstp dword [esp + 0x74]
fld dword [esp + 0x48]
fsub dword [esp + 0x58]
fstp dword [esp + 0x78]
fld dword [esp + 0x70]
fld dword [esp + 0x74]
fld dword [esp + 0x78]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld dword [ebp + 0xc]
fcompp
fnstsw ax
test ah, 0x41
jne 0x416853
cmp dword [esp + 0x38], 4
jne 0x416799
mov eax, dword [esp + 0x20]
shl eax, 4
fld dword [eax + edx]
lea ecx, [eax + edx]
fsub dword [esi]
mov dword [esp + 0x34], ecx
fstp dword [esp + 0x50]
fld dword [ecx + 4]
fsub dword [esi + 4]
fstp dword [esp + 0x54]
fld dword [ecx + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x58]
fld dword [esp + 0x50]
fld dword [esp + 0x54]
fld dword [esp + 0x58]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fst dword [esp + 0x30]
fstp dword [esp + 0x38]
fld st(0)
fld dword [esp + 0x38]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x4166c4
fstp st(1)
call fcn.0042eb10
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
fld1
fdivrp st(1)
jmp 0x4166c6
fstp st(0)
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fld st(0)
fmul dword [esp + 0x50]
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fmul st(1)
fstp dword [esp + 0x54]
fmul dword [esp + 0x58]
fstp dword [esp + 0x58]
fld dword [esp + 0x40]
fsub dword [esp + 0x50]
fstp dword [esp + 0x70]
fld dword [esp + 0x44]
fsub dword [esp + 0x54]
fstp dword [esp + 0x74]
fld dword [esp + 0x48]
fsub dword [esp + 0x58]
fstp dword [esp + 0x78]
fld dword [esp + 0x70]
fld dword [esp + 0x74]
fld dword [esp + 0x78]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fld dword [ebp + 0xc]
fcompp
fnstsw ax
test ah, 0x41
jne 0x416855
fld dword [esp + 0x30]
fld dword [esp + 0x24]
fcompp
fnstsw ax
test ah, 5
jp 0x41679b
fld dword [edi]
mov edx, dword [esp + 0x20]
fsub dword [ecx]
mov dword [esp + 0x1c], edx
fstp dword [esp + 0x60]
fld dword [edi + 4]
fsub dword [ecx + 4]
fstp dword [esp + 0x64]
fld dword [edi + 8]
fsub dword [ecx + 8]
fstp dword [esp + 0x68]
fld dword [esp + 0x60]
fld dword [esp + 0x64]
fld dword [esp + 0x68]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x28]
jmp 0x41679b
fstp st(0)
fld dword [esp + 0x28]
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x2c]
fstp dword [esp]
call fcn.00406d90
fstp dword [esp + 4]
fld dword [esp + 0x44]
fstp dword [esp]
call fcn.00406d90
fstp dword [esp + 0x40]
add esp, 8
fld dword [esp + 0x3c]
fld dword [esp + 0x38]
fld st(0)
fucomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x4167fb
mov eax, dword [esp + 0x18]
fstp st(0)
mov ecx, dword [ebp + 0x18]
push eax
push ebx
call fcn.0041d630
mov eax, dword [ebp + 8]
mov byte [eax], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [esp + 0x24]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x41682b
mov ecx, dword [esp + 0x1c]
fstp st(0)
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
call fcn.0041d630
mov eax, dword [ebp + 8]
mov byte [eax], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [esp + 0x28]
fucompp
fnstsw ax
test ah, 0x44
jp 0x416846
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x18]
push ebx
push eax
call fcn.0041d630
mov eax, dword [ebp + 8]
mov byte [eax], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
mov eax, dword [ebp + 8]
mov byte [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 4]
movzx edx, word [ecx]
movzx ecx, word [eax]
push edx
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.0041d630
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 1
pop ebx
mov esp, ebp
pop ebp
ret