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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x490
mov dword [esp + 0x40], edx
mov dword [esp + 0x5c], ecx
movsd qword [esp + 0x60], xmm0
mov ebx, 0x100000
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
lea esi, [ebx - 1]
mov edi, ecx
mov edx, ecx
and esi, ecx
mov dword [esp + 4], ecx
shr edi, 0x14
shld edx, eax, 1
lea ecx, [esi + 0x100000]
and edi, 0x7ff
and edx, 0x1fffff
test edi, edi
cmove ecx, edx
lea edx, [eax + eax]
cmovne edx, eax
ucomisd xmm0, xmm0
jp 0x418ab7
mov dword [esp + 8], edx
and edx, 1
or esi, eax
je 0x418710
test dword [esp + 4], 0x7ff00000
jne 0x41873a
mov esi, dword [esp + 8]
add edi, 0xfffffbcd
xor dl, 1
xor eax, eax
mov ebx, 1
jmp 0x418779
mov dword [esp + 0x3c], ecx
mov ecx, edi
mov edi, dword [esp + 4]
and edi, 0x7fffffff
mov esi, edi
xor esi, 0x7ff00000
or esi, eax
je 0x418777
or eax, edi
mov edi, ecx
mov ecx, dword [esp + 0x3c]
jne 0x41873a
mov dl, 4
jmp 0x418779
mov esi, dword [esp + 8]
xor ebx, ecx
movzx edi, di
or ebx, esi
jne 0x41875f
add edi, 0xfffffbcb
xor esi, esi
mov ebx, 2
mov ecx, 0x400000
mov dl, 1
xor eax, eax
jmp 0x418779
shld ecx, esi, 1
add esi, esi
add edi, 0xfffffbcc
xor dl, 1
xor eax, eax
mov ebx, 1
jmp 0x418779
mov dl, 3
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 1
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], eax
mov word [esp + 0x80], di
mov byte [esp + 0x82], dl
add dl, 0xfe
je 0x418837
mov dword [esp + 8], esi
movzx esi, dl
cmp dl, 3
mov edx, dword [esp + 4]
mov eax, 3
mov dword [esp + 0x3c], ecx
mov ecx, edi
mov edi, 0x5a24fe
cmovb eax, esi
mov esi, 0x5a24fd
mov ebx, edx
shr ebx, 0x1f
test edx, edx
mov edx, 1
cmovs edx, esi
cmovs edi, esi
cmp byte [esp + 0x40], 0
cmove edi, edx
mov edx, 1
cmovne ebx, edx
cmp al, 1
je 0x41885f
mov edx, dword [ebp + 8]
movzx eax, al
cmp eax, 2
jne 0x41887b
test edx, edx
mov word [esp + 0xc], 2
je 0x4189dc
mov dword [esp + 0x10], str.0.ee__NaNinf00e00123456789abcdef
mov dword [esp + 0x14], 2
mov word [esp + 0x18], 0
mov dword [esp + 0x1c], edx
jmp 0x4189d2
mov word [esp + 0xc], 2
mov dword [esp + 0x10], 0x5a24ff
mov dword [esp + 0x14], 3
mov edi, 1
xor ebx, ebx
mov edx, 1
jmp 0x418a85
mov word [esp + 0xc], 2
mov dword [esp + 0x10], 0x5a2502
mov dword [esp + 0x14], 3
jmp 0x418a85
mov esi, ecx
mov eax, 0xfffffff4
mov ecx, 5
mov dword [esp + 4], edi
test si, si
movsx edi, si
mov dword [esp + 0x40], esi
cmovs ecx, eax
imul edi, ecx
cmp edi, 0x3ec0
jae 0x418abe
shr edi, 4
mov eax, edx
mov dword [esp + 0x44], edx
mov esi, 0x8000
lea ecx, [esp + 0xc]
add edi, 0x15
neg eax
cmp edx, 0x8000
mov edx, dword [esp + 8]
cmovb esi, eax
lea eax, [esp + 0x8c]
push esi
push edi
push eax
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call fcn.00411070
add esp, 0x14
cmp dword [esp + 0xc], 0
je 0x418902
mov eax, dword [esp + 0x14]
movsd xmm0, qword [esp + 0xc]
mov dword [esp + 0x50], eax
movsd qword [esp + 0x48], xmm0
jmp 0x41891c
lea ecx, [esp + 0x48]
lea edx, [esp + 0x68]
push esi
push edi
lea eax, [esp + 0x94]
push eax
call fcn.0040f980
add esp, 0xc
movzx eax, word [esp + 0x50]
mov edi, dword [esp + 4]
mov ecx, dword [ebp + 8]
cmp ax, si
jle 0x4189ac
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x418abe
mov edx, dword [esp + 0x48]
cmp byte [edx], 0x30
jbe 0x418abe
test ax, ax
mov word [esp + 0xc], 2
jle 0x4189f6
mov esi, edi
mov dword [esp + 0x10], edx
sub esi, eax
jbe 0x418a3c
add edx, eax
sub dword [esp + 0x44], esi
mov edi, dword [esp + 4]
mov dword [esp + 0x14], eax
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], 0x5bbc4b
mov dword [esp + 0x20], 1
mov word [esp + 0x24], 2
mov dword [esp + 0x28], edx
mov edx, 3
mov dword [esp + 0x2c], esi
jbe 0x418a85
mov eax, dword [esp + 0x44]
jmp 0x418a6f
test ecx, ecx
mov word [esp + 0xc], 2
je 0x4189dc
mov dword [esp + 0x10], str.0.ee__NaNinf00e00123456789abcdef
mov dword [esp + 0x14], 2
mov word [esp + 0x18], 0
mov dword [esp + 0x1c], ecx
mov edx, 2
jmp 0x418a85
mov dword [esp + 0x10], 0x5a2505
mov dword [esp + 0x14], 1
mov edx, 1
jmp 0x418a85
cwde
mov dword [esp + 0x10], str.0.ee__NaNinf00e00123456789abcdef
mov dword [esp + 0x14], 2
mov word [esp + 0x18], 0
mov esi, eax
neg esi
sub ecx, edi
mov dword [esp + 0x1c], esi
mov word [esp + 0x24], 2
mov dword [esp + 0x28], edx
mov edx, 3
mov dword [esp + 0x2c], edi
jbe 0x418a81
mov edi, dword [esp + 4]
cmp ecx, esi
jbe 0x418a85
add ecx, eax
mov eax, ecx
jmp 0x418a6f
sub eax, edi
mov dword [esp + 0x14], edi
mov word [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x418aae
mov edi, dword [esp + 4]
mov word [esp + 0x24], 2
mov dword [esp + 0x28], 0x5bbc4b
mov dword [esp + 0x2c], 1
mov word [esp + 0x30], 0
mov dword [esp + 0x34], eax
mov edx, 4
jmp 0x418a85
mov edi, dword [esp + 4]
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0xc]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
lea edx, [esp + 0x48]
call fcn.00418290
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 4]
jmp 0x4189d2
mov dl, 2
jmp 0x418779
ud2