Function at 0x140040e50
Capabilities:
Check if file exists
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140090040]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rbx, rdx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rcx
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x140084880]
movdqu xmmword [rbp - 0x30], xmm1
mov byte [rbp - 0x40], dil
xor eax, eax
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rax
lea rdx, str.__.__
lea rcx, [rbp]
call fcn.14001a730
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0x30], rdi
mov byte [rbp + 0x38], dil
movdqa xmmword [rbp + 0x40], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x50], xmm1
mov qword [rbp + 0x60], rdi
mov byte [rbp + 0x68], dil
movdqa xmmword [rbp + 0x70], xmm0
mov byte [rbp + 0x80], dil
mov qword [rbp + 0x88], rdi
mov qword [rbp + 0x90], rdi
mov byte [rbp + 0x98], dil
add rbx, 0x110
cmp qword [rbx + 0x18], 0xf
jbe 0x140040f42
mov r8, qword [rbx]
mov rdx, r8
add rdx, qword [rbx + 0x10]
mov rbx, r8
jmp 0x140040f4c
mov rdx, qword [rbx + 0x10]
add rdx, rbx
mov r8, rbx
mov qword [rsp + 0x28], r8
lea r9, [rbp]
lea r8, [rbp + 0x30]
mov rcx, rbx
call fcn.14001f7c0
test al, al
je 0x140041050
mov rcx, qword [rbp + 0x48]
mov r8, qword [rbp + 0x40]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
ja 0x140040fa5
lea rax, [rbp + 0x88]
lea r8, [rbp + 0x98]
jmp 0x140040fad
lea rax, [r8 + 0x18]
add r8, 0x28
cmp byte [r8], 0
je 0x140040fbd
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
jmp 0x140040fc6
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
cmp rdx, r8
jne 0x140040ff6
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
jmp 0x140041003
sub r8, rdx
lea rcx, [rsp + 0x30]
call fcn.1400055d0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x14004103e
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041039
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041972
call fcn.1400491b0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x30], xmm1
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r8, qword [rbp - 0x40]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rbx, rax
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rcx, qword [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rdi
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400410b0
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1400055d0
nop
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rcx, qword [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14004135b
movabs rdx, 0x7fffffffffffffff
mov rax, rdx
mov r15, qword [rbp - 0x10]
sub rax, r15
cmp rax, 5
jb 0x140041978
lea r13, [rbp - 0x20]
mov rsi, qword [rbp - 0x20]
mov r14, qword [rbp - 8]
cmp r14, 0xf
cmova r13, rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea r12, [r15 + 5]
mov ebx, 0xf
lea rdi, [rsp + 0x58]
cmp r12, rbx
jbe 0x1400411b3
mov rbx, r12
or rbx, 0xf
cmp rbx, rdx
jbe 0x140041175
mov rbx, rdx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400491b8
test rax, rax
je 0x14004197e
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400411ae
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14004119d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14004195a
jmp 0x140041156
test rcx, rcx
je 0x1400411ac
call fcn.1400491b8
mov rdi, rax
jmp 0x1400411ae
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], rbx
mov eax, dword [str.File]
mov dword [rdi], eax
movzx eax, byte [0x1400844cc]
mov byte [rdi + 4], al
lea rcx, [rdi + 5]
mov r8, r15
mov rdx, r13
call fcn.14006eff0
mov byte [rdi + r12], 0
mov r8d, 0xd
lea rdx, str._doesnt_exist
lea rcx, [rsp + 0x58]
call fcn.140004e50
xorps xmm0, xmm0
mov rcx, qword [rsp + 0x50]
movups xmmword [rcx], xmm0
xor edx, edx
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], rdx
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], 0xf
mov byte [rax], dl
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140041268
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041263
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004197e
call fcn.1400491b0
movdqa xmm0, xmmword [0x140084880]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
cmp r14, 0xf
jbe 0x1400412b3
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400412aa
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041984
mov rcx, rsi
call fcn.1400491b0
nop
lea rcx, [rbp + 0x40]
call fcn.14001a610
nop
lea rcx, [rbp]
call fcn.14001ab50
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x1400412e8
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x1400412e8
mov rax, qword [rax]
mov edx, 1
call qword [rax]
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140041323
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004131e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004198a
call fcn.1400491b0
mov rbx, qword [rsp + 0x50]
mov rax, rbx
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140049190
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
cmp rbx, 0x20
jg 0x140041667
lea rcx, [rbp - 0x68]
call fcn.1400136e0
mov qword [rsp + 0x58], rax
movabs rdx, 0x7fffffffffffffff
mov rcx, rdx
mov r15, qword [rbp - 0x10]
sub rcx, r15
cmp rcx, 0xf
jb 0x140041990
lea r13, [rbp - 0x20]
mov rsi, qword [rbp - 0x20]
mov r14, qword [rbp - 8]
cmp r14, 0xf
cmova r13, rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r12, [r15 + 0xf]
mov ebx, 0xf
lea rdi, [rsp + 0x30]
cmp r12, rbx
jbe 0x140041443
mov rbx, r12
or rbx, 0xf
cmp rbx, rdx
jbe 0x140041405
mov rbx, rdx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400491b8
test rax, rax
je 0x14004199c
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14004143e
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14004142d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140041960
jmp 0x1400413e6
test rcx, rcx
je 0x14004143c
call fcn.1400491b8
mov rdi, rax
jmp 0x14004143e
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], rbx
movsd xmm0, qword [str.Failed_to_open]
movsd qword [rdi], xmm0
mov eax, dword [0x1400844c0]
mov dword [rdi + 8], eax
movzx eax, word [0x1400844c4]
mov word [rdi + 0xc], ax
movzx eax, byte [0x1400844c6]
mov byte [rdi + 0xe], al
lea rcx, [rdi + 0xf]
mov r8, r15
mov rdx, r13
call fcn.14006eff0
mov byte [rdi + r12], 0
mov r8d, 4
lea rdx, str._on
lea rcx, [rsp + 0x30]
call fcn.140004e50
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r9, qword [rsp + 0x58]
lea r8, [rsp + 0x78]
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.140035540
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x14004151a
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041514
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041996
call fcn.1400491b0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140041557
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041552
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004199c
call fcn.1400491b0
movdqa xmm0, xmmword [0x140084880]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x1400415a5
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400415a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400419a2
call fcn.1400491b0
movdqa xmm0, xmmword [0x140084880]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
cmp r14, 0xf
jbe 0x1400415ee
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400415e5
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400419a8
mov rcx, rsi
call fcn.1400491b0
nop
lea rcx, [rbp + 0x40]
call fcn.14001a610
nop
lea rcx, [rbp]
call fcn.14001ab50
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x140041623
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x140041623
mov rax, qword [rax]
mov edx, 1
call qword [rax]
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140041328
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004165d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400419ae
call fcn.1400491b0
jmp 0x140041328
lea rcx, [rsp + 0x78]
call fcn.1400136e0
mov qword [rsp + 0x58], rax
movabs rdx, 0x7fffffffffffffff
mov rcx, rdx
mov r15, qword [rbp - 0x10]
sub rcx, r15
cmp rcx, 7
jb 0x1400419b4
lea r13, [rbp - 0x20]
mov rsi, qword [rbp - 0x20]
mov r14, qword [rbp - 8]
cmp r14, 0xf
cmova r13, rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r12, [r15 + 7]
mov ebx, 0xf
lea rdi, [rsp + 0x30]
cmp r12, rbx
jbe 0x140041746
mov rbx, r12
or rbx, 0xf
cmp rbx, rdx
jbe 0x140041708
mov rbx, rdx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400491b8
test rax, rax
je 0x1400419c0
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140041741
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140041730
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140041966
jmp 0x1400416e9
test rcx, rcx
je 0x14004173f
call fcn.1400491b8
mov rdi, rax
jmp 0x140041741
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], rbx
mov rax, qword [str.Opened]
mov dword [rdi], eax
movzx eax, word [0x1400844ec]
mov word [rdi + 4], ax
movzx eax, byte [0x1400844ee]
mov byte [rdi + 6], al
lea rcx, [rdi + 7]
mov r8, r15
mov rdx, r13
call fcn.14006eff0
mov byte [rdi + r12], 0
mov r8d, 4
lea rdx, str._on
lea rcx, [rsp + 0x30]
call fcn.140004e50
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x58], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r9, qword [rsp + 0x58]
lea r8, [rbp - 0x68]
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.140035540
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x14004180e
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041808
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400419ba
call fcn.1400491b0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14004184b
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041846
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400419c0
call fcn.1400491b0
movdqa xmm0, xmmword [0x140084880]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x14004189a
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041895
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400419c6
call fcn.1400491b0
movdqa xmm0, xmmword [0x140084880]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
cmp r14, 0xf
jbe 0x1400418e0
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400418d7
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041954
mov rcx, rsi
call fcn.1400491b0
nop
lea rcx, [rbp + 0x40]
call fcn.14001a610
nop
lea rcx, [rbp]
call fcn.14001ab50
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x140041915
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x140041915
mov rax, qword [rax]
mov edx, 1
call qword [rax]
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140041328
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004165d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004196c
jmp 0x14004165d
call fcn.1400500ac
nop
call fcn.140002390
nop
call fcn.140002390
nop
call fcn.140002390
nop
call fcn.1400500ac
nop
call fcn.1400500ac
nop
call fcn.140002430
int3
call fcn.1400500ac
nop
call fcn.1400500ac
nop
call fcn.1400500ac
nop
call fcn.140002430
nop
call fcn.1400500ac
nop
call fcn.1400500ac
nop
call fcn.1400500ac
nop
call fcn.1400500ac
nop
call fcn.1400500ac
nop
call fcn.140002430
nop
call fcn.1400500ac
nop
call fcn.1400500ac
nop
call fcn.1400500ac
int3