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

Disassembly:
mov rax, rsp
push rbp
push rbx
push rdi
push r12
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0xb8], xmm13
mov rax, qword [0x1400e5028]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp byte [rcx + 0xf6], 0
movzx r15d, r9b
movss xmm9, dword [rbp + 0x70]
mov r10, rdx
mov rbx, qword [0x1400e6410]
mov rdi, rcx
mov r12d, dword [rcx + 0x14]
movss xmm13, dword [rcx + 0x90]
movss xmm8, dword [rcx + 0x94]
mov byte [rsp + 0x31], r9b
mov byte [rsp + 0x30], r8b
mov qword [rsp + 0x68], rdx
mov byte [rcx + 0xf8], 0
je 0x140040354
movss xmm6, dword [rbx + 0x3a48]
movss dword [rbx + 0x3a48], xmm8
test r8b, r8b
je 0x1400402ee
cmp byte [rbx + 0x4d02], 0
mov eax, 0xb0
je 0x1400402f3
mov eax, 0xc0
movups xmm0, xmmword [rbx + rax + 0x3ae8]
lea rcx, [rsp + 0x68]
movups xmmword [rsp + 0x68], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rbx + 0x3a00]
movss dword [rsp + 0x74], xmm0
call fcn.140035350
mov rdx, qword [r10 + 8]
mov r8d, eax
mov rcx, qword [r10]
or r8d, 0xff000000
cmp byte [rdi + 0xf2], 0
mov r9b, 1
movss dword [rsp + 0x20], xmm13
cmove r8d, eax
call fcn.140037340
movss dword [rbx + 0x3a48], xmm6
jmp 0x140040cea
mov qword [rsp + 0x150], rsi
mov qword [rsp + 0x108], r13
mov r13d, 1
mov qword [rsp + 0x100], r14
movaps xmmword [rsp + 0x90], xmm12
xorps xmm12, xmm12
test r12b, r12b
js 0x140040631
xor sil, sil
cmp byte [rbx + 0x4ed0], sil
je 0x1400403dd
mov eax, dword [rbx + 0x40a0]
sub eax, dword [rbx + 0x4f54]
cmp eax, r13d
jg 0x1400403dd
cmp byte [rbx + 0x5b], sil
je 0x1400403dd
cmp dword [rbx + 0x4ef4], 0xffffffff
je 0x1400403dd
lea rdx, [rbx + 0x4ef8]
lea rcx, str._IMWINDOW
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400403dd
mov rax, qword [rbx + 0x4ee0]
movzx esi, sil
cmp qword [rax], rdi
cmove esi, r13d
test r12d, 0x6000000
je 0x1400403ed
mov ecx, 0x128
jmp 0x140040407
bt r12d, 0x18
jae 0x140040402
mov ecx, 0x118
test byte [rdi + 0x435], r13b
je 0x140040407
mov ecx, pe_nt_image_headers64
mov rax, qword [0x1400e6410]
movups xmm0, xmmword [rax + rcx + 0x3a00]
lea rcx, [rsp + 0x38]
movups xmmword [rsp + 0x38], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x3a00]
movss dword [rsp + 0x44], xmm0
call fcn.140035350
cmp byte [rdi + 0xf2], 0
mov r15d, eax
je 0x140040471
or r15d, 0xff000000
test sil, sil
je 0x1400404d6
mov rcx, qword [rdi + 0x40]
movss xmm0, dword [rcx + 0x80]
mulss xmm0, dword [0x1400d204c]
movss dword [rcx + 0x80], xmm0
jmp 0x1400404d6
mov eax, dword [rbx + 0x4b08]
movss xmm0, dword [0x1400d2094]
movaps xmm1, xmm0
and eax, 0x40
je 0x14004048f
movss xmm1, dword [rbx + 0x4b70]
movss xmm2, dword [0x1400d204c]
test sil, sil
je 0x1400404a2
mulss xmm1, xmm2
jmp 0x1400404a6
test eax, eax
je 0x1400404d6
comiss xmm12, xmm1
jbe 0x1400404b1
xorps xmm0, xmm0
jmp 0x1400404b5
minss xmm0, xmm1
mulss xmm0, dword [0x1400d2148]
mov eax, r15d
and eax, 0xffffff
addss xmm0, xmm2
cvttss2si ecx, xmm0
shl ecx, 0x18
mov r15d, ecx
or r15d, eax
test byte [rdi + 0x435], r13b
je 0x140040516
mov rax, qword [rdi + 0x450]
mov dword [rax + 0x80], r15d
test byte [rdi + 0x435], r13b
je 0x140040516
mov rax, qword [rdi + 0x450]
mov esi, r12d
and esi, 0x20000000
mov rcx, qword [rax + 0x88]
mov r14, qword [rcx + 0x2e0]
jmp 0x140040528
mov r14, qword [rdi + 0x2e0]
mov esi, r12d
and esi, 0x20000000
je 0x14004053f
lea r13, [r14 + 0xa8]
xor r8d, r8d
mov rcx, r13
mov rdx, r14
call fcn.140069070
jmp 0x140040546
lea r13, [r14 + 0xa8]
test byte [rdi + 0x14], 1
movss xmm2, dword [rdi + 0x58]
movss xmm3, dword [rdi + 0x5c]
movaps xmm0, xmm2
addss xmm0, dword [rdi + 0x60]
mov rcx, qword [rdi]
movaps xmm1, xmm3
addss xmm1, dword [rdi + 0x64]
movss dword [rsp + 0x48], xmm0
movss dword [rsp + 0x4c], xmm1
je 0x14004057a
xorps xmm1, xmm1
jmp 0x1400405b6
movss xmm0, dword [rdi + 0x2d0]
mulss xmm0, dword [rcx + 0x3e84]
mov rax, qword [rdi + 0x3b0]
mulss xmm0, dword [rdi + 0x2d4]
test rax, rax
je 0x1400405a6
mulss xmm0, dword [rax + 0x2d0]
movss xmm1, dword [rcx + 0x3a40]
addss xmm1, xmm1
addss xmm1, xmm0
addss xmm2, xmm12
mov eax, 0xc0
addss xmm3, xmm1
mov ecx, 0
test r12b, 1
lea r8, [rsp + 0x48]
mov r9d, r15d
lea rdx, [rsp + 0x38]
cmovne eax, ecx
mov rcx, r14
mov dword [rsp + 0x28], eax
movss dword [rsp + 0x38], xmm2
movss dword [rsp + 0x3c], xmm3
movss dword [rsp + 0x20], xmm13
call fcn.140068230
test byte [rdi + 0x435], 1
jne 0x140040609
test esi, esi
je 0x14004061a
mov r8d, 1
mov rdx, r14
mov rcx, r13
call fcn.140069070
movzx r15d, byte [rsp + 0x31]
mov r13d, 1
movzx r8d, byte [rsp + 0x30]
mov r10, qword [rsp + 0x68]
movzx eax, byte [rdi + 0x435]
test al, 1
je 0x140040651
mov rax, qword [rdi + 0x450]
or byte [rax + 0xcc], 4
movzx eax, byte [rdi + 0x435]
mov esi, r12d
and esi, 1
jne 0x1400406b9
test al, 1
jne 0x1400406b9
mov rcx, qword [0x1400e6410]
movzx eax, r8b
add rax, rax
movups xmm0, xmmword [rcx + rax*8 + 0x3b88]
movups xmmword [rsp + 0x68], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rcx + 0x3a00]
lea rcx, [rsp + 0x68]
movss dword [rsp + 0x74], xmm0
call fcn.140035350
mov rcx, qword [rdi + 0x2e0]
lea r8, [r10 + 8]
mov r9d, eax
mov dword [rsp + 0x28], 0x30
mov rdx, r10
movss dword [rsp + 0x20], xmm13
call fcn.140068230
movaps xmmword [rsp + 0xe0], xmm7
movaps xmmword [rsp + 0xb0], xmm10
bt r12d, 0xa
jae 0x140040853
lea rdx, [rsp + 0x68]
movaps xmmword [rsp + 0xa0], xmm11
mov rcx, rdi
call fcn.140033cf0
movss xmm4, dword [rdi + 0x58]
movss xmm0, dword [rdi + 0x5c]
movss xmm2, dword [rsp + 0x6c]
movss xmm10, dword [rsp + 0x68]
maxss xmm2, xmm0
movss xmm6, dword [rsp + 0x74]
maxss xmm10, xmm4
movss xmm11, dword [rsp + 0x70]
addss xmm0, dword [rdi + 0x64]
addss xmm4, dword [rdi + 0x60]
minss xmm6, xmm0
minss xmm11, xmm4
test esi, esi
je 0x140040735
movaps xmm7, xmm13
jmp 0x140040738
xorps xmm7, xmm7
mov rax, qword [0x1400e6410]
addss xmm2, xmm12
movaps xmm1, xmm6
lea rcx, [rsp + 0x48]
subss xmm1, xmm12
movups xmm0, xmmword [rax + 0x3bb8]
movss dword [rsp + 0x3c], xmm2
movups xmmword [rsp + 0x48], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x3a00]
movss dword [rsp + 0x6c], xmm1
movss dword [rsp + 0x54], xmm0
movaps xmm0, xmm11
subss xmm0, xmm8
movss dword [rsp + 0x68], xmm0
movaps xmm0, xmm10
addss xmm0, xmm8
movss dword [rsp + 0x38], xmm0
call fcn.140035350
mov rcx, qword [rdi + 0x2e0]
lea rdx, [rsp + 0x38]
mov r9d, eax
mov dword [rsp + 0x28], 0x30
lea r8, [rsp + 0x68]
movss dword [rsp + 0x20], xmm7
call fcn.140068230
movss xmm7, dword [rbx + 0x3a48]
comiss xmm7, xmm12
jbe 0x14004084a
movss xmm0, dword [rdi + 0x64]
addss xmm0, dword [rdi + 0x5c]
comiss xmm0, xmm6
jbe 0x14004084a
mov rax, qword [0x1400e6410]
lea rcx, [rsp + 0x48]
movss dword [rsp + 0x68], xmm10
movss dword [rsp + 0x6c], xmm6
movups xmm0, xmmword [rax + 0x3b38]
movups xmmword [rsp + 0x48], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x3a00]
movss dword [rsp + 0x54], xmm0
movaps xmm0, xmm11
unpcklps xmm0, xmm6
movsd qword [rsp + 0x38], xmm0
call fcn.140035350
mov rcx, qword [rdi + 0x2e0]
lea rdx, [rsp + 0x68]
mov r9d, eax
movss dword [rsp + 0x20], xmm7
lea r8, [rsp + 0x38]
call fcn.140067fc0
movaps xmm11, xmmword [rsp + 0xa0]
test byte [rdi + 0x435], 1
mov rsi, qword [rdi + 0x450]
je 0x140040a70
mov ecx, dword [rsi + 0x10]
mov eax, ecx
shr eax, 0xd
test al, 1
je 0x140040a70
shr ecx, 0xc
test cl, 1
jne 0x140040a70
movss xmm1, dword [rbx + 0x3e80]
lea rcx, str.UNHIDE
movss xmm6, dword [rsi + 0x48]
movaps xmm0, xmm1
mulss xmm1, dword [0x1400d2050]
xor edx, edx
mov r8, qword [rdi + 0x138]
mulss xmm0, dword [0x1400d2060]
movss xmm7, dword [rsi + 0x4c]
cvttss2si eax, xmm0
movd xmm10, eax
cvttss2si eax, xmm1
movaps xmm1, xmm6
unpcklps xmm1, xmm7
cvtdq2ps xmm10, xmm10
movd xmm3, eax
movsxd rax, dword [rdi + 0x130]
cvtdq2ps xmm3, xmm3
mov r8d, dword [r8 + rax*4 - 4]
movsd qword [rsp + 0x48], xmm1
movaps xmm2, xmm3
movsd qword [rsp + 0x68], xmm1
addss xmm2, xmm6
addss xmm3, xmm7
movss dword [rsp + 0x70], xmm2
movss dword [rsp + 0x74], xmm3
call fcn.140034da0
mov rcx, qword [rdi]
mov ebx, eax
cmp dword [rcx + 0x4194], eax
jne 0x14004092a
lea r8, str.UNHIDE
mov edx, 0xb
mov ecx, eax
call fcn.14005b6f0
mov rax, qword [0x1400e6410]
cmp dword [rax + 0x41ac], ebx
jne 0x14004093f
mov dword [rax + 0x41b0], ebx
cmp dword [rax + 0x41d8], ebx
jne 0x14004094e
mov byte [rax + 0x41dc], 1
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 0x800
lea r8, [rsp + 0x31]
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.14007a690
movzx ebx, byte [rsp + 0x31]
movzx r14d, byte [rsp + 0x30]
test al, al
je 0x140040984
or byte [rsi + 0xcd], 4
jmp 0x1400409c2
test r14b, r14b
je 0x1400409cb
mov rax, qword [0x1400e6410]
cmp byte [rax + 0xe58], 0
je 0x1400409c2
movss xmm1, dword [rax + 0x74]
movss xmm0, dword [rax + 0x38f8]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae al
test al, al
je 0x1400409c2
mov r8b, 1
mov rdx, rsi
mov rcx, rdi
call fcn.14003a150
test r14b, r14b
je 0x1400409cb
test bl, bl
jne 0x1400409d8
test byte [rsi + 0xcc], 2
je 0x1400409df
test bl, bl
jne 0x1400409df
mov ecx, 0x17
jmp 0x1400409ec
xor eax, eax
test bl, bl
mov ecx, eax
setne cl
add rcx, 0x15
mov rax, qword [0x1400e6410]
add rcx, rcx
movups xmm0, xmmword [rax + rcx*8 + 0x3ae8]
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x58], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x3a00]
movss dword [rsp + 0x64], xmm0
movaps xmm0, xmm6
addss xmm0, xmm12
addss xmm6, xmm10
movss dword [rsp + 0x68], xmm0
movaps xmm0, xmm7
addss xmm0, xmm10
movss dword [rsp + 0x38], xmm6
addss xmm7, xmm12
movss dword [rsp + 0x6c], xmm0
movss dword [rsp + 0x3c], xmm7
call fcn.140035350
mov rcx, qword [rdi + 0x2e0]
lea rdx, [rsp + 0x48]
lea r9, [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea r8, [rsp + 0x38]
call fcn.140068720
cmp byte [rdi + 0xf0], 0
movaps xmm12, xmmword [rsp + 0x90]
movaps xmm10, xmmword [rsp + 0xb0]
je 0x140040a92
xor ecx, ecx
call fcn.14007bdd0
cmp byte [rdi + 0xf1], 0
je 0x140040aa3
mov ecx, r13d
call fcn.14007bdd0
test r15b, r15b
je 0x140040cca
test r12b, 2
jne 0x140040cb8
xor eax, eax
mov r14d, eax
mov eax, dword [rbp + 0x60]
test eax, eax
jle 0x140040cb8
mov r15, qword [rbp + 0x68]
lea rsi, [0x1400cc2f8]
nop dword [rax]
nop word [rax + rax]
mov r13d, dword [r15]
test r13d, 0xff000000
je 0x140040ca4
movss xmm0, dword [rdi + 0x58]
mov r12d, r14d
movss xmm1, dword [rdi + 0x5c]
movaps xmm6, xmm0
mov rbx, qword [rdi + 0x2e0]
movaps xmm7, xmm1
addss xmm6, dword [rdi + 0x60]
addss xmm7, dword [rdi + 0x64]
subss xmm6, xmm0
subss xmm7, xmm1
mulss xmm6, dword [rsi - 8]
mulss xmm7, dword [rsi - 4]
addss xmm6, xmm0
addss xmm7, xmm1
and r12d, 1
je 0x140040b3e
movaps xmm0, xmm8
movaps xmm1, xmm9
jmp 0x140040b46
movaps xmm0, xmm9
movaps xmm1, xmm8
mulss xmm0, dword [rsi]
mov ecx, dword [rbx + 0x78]
mulss xmm1, dword [rsi + 4]
mov r8d, dword [rbx + 0x7c]
addss xmm0, xmm6
addss xmm1, xmm7
movss dword [rsp + 0x68], xmm0
movss dword [rsp + 0x6c], xmm1
cmp ecx, r8d
jne 0x140040b98
inc ecx
test r8d, r8d
je 0x140040b83
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x140040b88
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
lea rcx, [rbx + 0x78]
call fcn.14005c750
movsxd rdx, dword [rbx + 0x78]
mov rcx, qword [rbx + 0x80]
mov rax, qword [rsp + 0x68]
mov qword [rcx + rdx*8], rax
inc dword [rbx + 0x78]
mov rbx, qword [rdi + 0x2e0]
test r12d, r12d
je 0x140040bc5
movaps xmm0, xmm9
movaps xmm1, xmm8
jmp 0x140040bcd
movaps xmm0, xmm8
movaps xmm1, xmm9
mulss xmm0, dword [rsi]
mov ecx, dword [rbx + 0x78]
mulss xmm1, dword [rsi + 4]
mov r8d, dword [rbx + 0x7c]
addss xmm0, xmm6
addss xmm1, xmm7
movss dword [rsp + 0x38], xmm0
movss dword [rsp + 0x3c], xmm1
cmp ecx, r8d
jne 0x140040c1f
inc ecx
test r8d, r8d
je 0x140040c0a
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x140040c0f
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
lea rcx, [rbx + 0x78]
call fcn.14005c750
movsxd rdx, dword [rbx + 0x78]
movaps xmm1, xmm8
mov rcx, qword [rbx + 0x80]
addss xmm1, xmm13
mov rax, qword [rsp + 0x38]
movaps xmm2, xmm13
mov qword [rcx + rdx*8], rax
lea rdx, [rsp + 0x48]
inc dword [rbx + 0x78]
movaps xmm0, xmm1
mulss xmm0, dword [rsi]
mov eax, dword [rsi + 0xc]
mulss xmm1, dword [rsi + 4]
mov r9d, dword [rsi + 8]
mov rcx, qword [rdi + 0x2e0]
addss xmm0, xmm6
mov dword [rsp + 0x20], eax
addss xmm1, xmm7
movss dword [rsp + 0x48], xmm0
movss dword [rsp + 0x4c], xmm1
call fcn.1400675d0
mov rbx, qword [rdi + 0x2e0]
mov r9d, r13d
mov rcx, rbx
mov r8d, dword [rbx + 0x78]
mov rdx, qword [rbx + 0x80]
call fcn.140066bd0
xor eax, eax
mov dword [rbx + 0x78], eax
mov eax, dword [rbp + 0x60]
inc r14d
add r15, 4
add rsi, 0x18
cmp r14d, eax
jl 0x140040ae0
cmp qword [rdi + 0x458], 0
jne 0x140040cca
mov rcx, rdi
call fcn.14003fe10
movaps xmm7, xmmword [rsp + 0xe0]
mov r13, qword [rsp + 0x108]
mov rsi, qword [rsp + 0x150]
mov r14, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14009e240
lea r11, [rsp + 0x110]
movaps xmm6, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x40]
movaps xmm9, xmmword [r11 - 0x50]
movaps xmm13, xmmword [r11 - 0x90]
mov rsp, r11
pop r15
pop r12
pop rdi
pop rbx
pop rbp
ret