Function at 0x14001a3f0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x778]
sub rsp, 0x878
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rbp + 0x760], rax
mov r13, qword [rbp + 0x7e0]
mov r12, rdx
mov r14, rcx
mov qword [rbp - 0x80], rcx
mov qword [rbp + 0x70], rdx
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x70]
mov word [rbp + 0x80], 0x105
mov r15, r9
mov rdi, r8
call fcn.140017d20
xor esi, esi
lea rbx, str..exe
cmp dword [rax], esi
je 0x14001a59d
movzx ecx, byte [rbp + 0x80]
mov word [rbp + 0x20], 0x103
mov qword [rbp + 0x10], rbx
test cl, cl
je 0x14001a4b4
cmp cl, 1
jne 0x14001a48d
movups xmm0, xmmword [rbp + 0x10]
movsd xmm1, qword [rbp + 0x20]
movups xmmword [rbp + 0x50], xmm0
movsd qword [rbp + 0x60], xmm1
jmp 0x14001a4ba
cmp byte [rbp + 0x81], 1
lea rax, [rbp + 0x70]
mov dl, 2
jne 0x14001a4a3
mov rax, qword [rbp + 0x70]
movzx edx, cl
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rbx
mov byte [rbp + 0x60], dl
mov byte [rbp + 0x61], 3
jmp 0x14001a4ba
mov word [rbp + 0x60], 0x100
lea rax, [rbp + 0x110]
mov dword [rbp + 0x108], esi
lea r8, [rbp + 0x100]
mov qword [rbp + 0x100], rax
lea rdx, [rbp + 0x50]
mov dword [rbp + 0x10c], 0x80
lea rcx, [rsp + 0x70]
call fcn.140016a70
mov ebx, dword [rsp + 0x70]
mov rcx, qword [rbp + 0x100]
test ebx, ebx
je 0x14001a510
lea rax, [rbp + 0x110]
cmp rcx, rax
je 0x14001a552
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14001a552
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001a57d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x14001a55d
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14001c470
mov rcx, qword [rbp + 0x100]
lea rdx, [rbp + 0x110]
cmp rcx, rdx
je 0x14001a54e
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, dword [rsp + 0x70]
test ebx, ebx
je 0x14001a596
xor al, al
jmp 0x14001aee9
mov rcx, qword [rbp + 0x100]
lea rax, [rbp + 0x110]
cmp rcx, rax
je 0x14001a576
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor al, al
jmp 0x14001aee9
mov rcx, qword [rbp + 0x100]
lea rax, [rbp + 0x110]
cmp rcx, rax
je 0x14001a596
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rbx, str..exe
lea rax, [rbp + 0xc0]
mov dword [rbp + 0xb8], esi
lea rdx, [rbp + 0x10]
mov qword [rbp + 0xb0], rax
lea rcx, [rbp + 0x30]
mov dword [rbp + 0xbc], 0x40
mov word [rbp + 0x20], 0x105
mov qword [rbp + 0x10], r12
call fcn.140017d20
cmp dword [rax], esi
je 0x14001a600
lea r8, [rbp + 0xb0]
mov word [rbp + 0x20], 0x305
lea rdx, [rbp + 0x30]
mov qword [rbp + 0x10], r12
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x18], rbx
call fcn.140013d20
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
movups xmm0, xmmword [rdi]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x90]
movaps xmmword [rsp + 0x70], xmm0
call fcn.14001b190
xorps xmm0, xmm0
mov rax, rsi
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
cmp byte [r15 + 0x10], sil
je 0x14001a888
mov rbx, qword [r15]
mov r15, qword [r15 + 8]
shl r15, 4
add r15, rbx
cmp rbx, r15
je 0x14001a7f4
nop dword [rax + rax]
movups xmm0, xmmword [rbx]
lea rax, [rbp + 0x110]
mov dword [rbp + 0x10c], 0x104
mov qword [rbp + 0x100], rax
mov eax, esi
movaps xmmword [rbp + 0x30], xmm0
psrldq xmm0, 8
movq rsi, xmm0
mov dword [rbp + 0x108], eax
test rsi, rsi
je 0x14001a767
mov r14, qword [rbp + 0x30]
xor eax, eax
mov dword [rsp + 0x28], eax
mov r9d, esi
lea rax, [rbp + 0x110]
mov r8, r14
mov edx, 8
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test eax, eax
je 0x14001a715
inc eax
movsxd r8, eax
mov eax, dword [rbp + 0x10c]
cmp rax, r8
jae 0x14001a6e5
mov r9d, 2
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x100]
call fcn.14001d070
mov rax, qword [rbp + 0x100]
mov r9d, esi
mov dword [rsp + 0x28], edi
mov r8, r14
mov edx, 8
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
mov dword [rbp + 0x108], edi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14001a737
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14001c470
mov ecx, dword [rsp + 0x70]
test ecx, ecx
jne 0x14001a80e
xor esi, esi
jmp 0x14001a77a
mov eax, dword [rbp + 0x108]
cmp eax, dword [rbp + 0x10c]
jb 0x14001a767
mov r9d, 2
lea rdx, [rbp + 0x110]
xor r8d, r8d
lea rcx, [rbp + 0x100]
call fcn.14001d070
mov eax, dword [rbp + 0x108]
mov ecx, eax
xor esi, esi
mov rax, qword [rbp + 0x100]
mov dword [rsp + 0x70], esi
mov word [rax + rcx*2], si
mov eax, dword [rbp + 0x108]
lea rcx, [rsp + 0x58]
mov r8, qword [rbp + 0x100]
mov rdx, qword [rsp + 0x60]
lea r9, [r8 + rax*2]
call fcn.14001bd30
mov rdx, qword [rsp + 0x60]
mov word [rsp + 0x50], si
cmp rdx, qword [rsp + 0x68]
je 0x14001a7b6
mov word [rdx], si
add qword [rsp + 0x60], 2
jmp 0x14001a7c5
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.14001b350
mov rcx, qword [rbp + 0x100]
lea rax, [rbp + 0x110]
cmp rcx, rax
je 0x14001a7de
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rbx, 0x10
cmp rbx, r15
jne 0x14001a650
mov rax, qword [rsp + 0x68]
mov r14, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x60]
mov word [rsp + 0x50], si
cmp rcx, rax
je 0x14001a874
mov word [rcx], si
add qword [rsp + 0x60], 2
jmp 0x14001a888
call qword [sym.imp.KERNEL32.dll_SetLastError]
movdqa xmm0, xmmword [0x140158380]
lea rdx, str.Unable_to_convert_environment_variable_to_UTF_16
xor esi, esi
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x10], rsi
movdqu xmmword [rbp + 0x20], xmm0
lea r8d, [rsi + 0x30]
call fcn.140008270
lea rdx, [rbp + 0x10]
xor ecx, ecx
call fcn.140012d30
lea rcx, [rbp + 0x10]
call fcn.140005ef0
mov rcx, qword [rbp + 0x100]
lea rax, [rbp + 0x110]
cmp rcx, rax
je 0x14001aa7b
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor dil, dil
jmp 0x14001ae6d
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.14001b350
xorps xmm0, xmm0
mov dword [rbp - 0x60], 0x68
xor eax, eax
mov qword [rbp], 0xffffffffffffffff
movups xmmword [rbp - 0x5c], xmm0
mov qword [rbp - 0x1c], rax
movups xmmword [rbp - 0x4c], xmm0
mov dword [rbp - 0x14], eax
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movdqa xmm0, xmmword [0x140158460]
movdqa xmmword [rbp - 0x10], xmm0
cmp qword [r13 + 8], rax
je 0x14001aa83
mov rbx, qword [r13]
lea rcx, [rbp + 0x10]
mov dword [rbp - 0x24], 0x100
xor edx, edx
movups xmm0, xmmword [rbx]
movsd xmm1, qword [rbx + 0x10]
movaps xmmword [rbp + 0x10], xmm0
movsd qword [rbp + 0x20], xmm1
call fcn.140019ff0
mov qword [rbp - 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x14001a90b
lea r8d, [rax + 0x15]
lea rdx, str.cant_redirect_stdin
jmp 0x14001aa4d
movups xmm0, xmmword [rbx + 0x18]
lea rcx, [rbp + 0x10]
mov edx, 1
movsd xmm1, qword [rbx + 0x28]
movaps xmmword [rbp + 0x10], xmm0
movsd qword [rbp + 0x20], xmm1
call fcn.140019ff0
mov qword [rbp - 8], rax
cmp rax, 0xffffffffffffffff
jne 0x14001a94b
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.cant_redirect_stdout
jmp 0x14001aa47
cmp byte [rbx + 0x28], 0
je 0x14001aa02
cmp byte [rbx + 0x40], 0
je 0x14001aa02
movups xmm1, xmmword [rbx + 0x18]
movups xmm0, xmmword [rbx + 0x30]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rbp + 0x30], xmm0
psrldq xmm1, 8
psrldq xmm0, 8
movq rax, xmm1
movq r8, xmm0
cmp rax, r8
jne 0x14001aa02
test r8, r8
je 0x14001a9a0
mov rdx, qword [rbp + 0x30]
mov rcx, qword [rsp + 0x70]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14001aa02
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rbp - 8]
lea r9, [rbp]
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 1
mov r8, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x14001aa83
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0x1a
lea rdx, str.cant_dup_stderr_to_stdout
jmp 0x14001aa4d
movups xmm0, xmmword [rbx + 0x30]
lea rcx, [rbp + 0x10]
mov edx, 2
movsd xmm1, qword [rbx + 0x40]
movaps xmmword [rbp + 0x10], xmm0
movsd qword [rbp + 0x20], xmm1
call fcn.140019ff0
mov qword [rbp], rax
cmp rax, 0xffffffffffffffff
jne 0x14001aa83
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.cant_redirect_stderr
mov r8d, 0x15
movdqa xmm0, xmmword [0x140158380]
lea rcx, [rbp + 0x10]
movdqu xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x10], rsi
call fcn.140008270
lea rdx, [rbp + 0x10]
xor ecx, ecx
call fcn.140012d30
lea rcx, [rbp + 0x10]
call fcn.140005ef0
xor dil, dil
jmp 0x14001ae6d
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea rax, [rbp + 0x550]
mov dword [rbp + 0x548], esi
lea r8, [rbp + 0x540]
mov qword [rbp + 0x540], rax
lea rdx, [rbp + 0x10]
mov dword [rbp + 0x54c], 0x104
lea rcx, [rbp + 0x30]
mov word [rbp + 0x20], 0x105
mov qword [rbp + 0x10], r12
call fcn.140016a70
mov ecx, dword [rbp + 0x30]
test ecx, ecx
je 0x14001ab42
call qword [sym.imp.KERNEL32.dll_SetLastError]
movdqa xmm0, xmmword [0x140158380]
lea rdx, str.Unable_to_convert_application_name_to_UTF_16
mov r8d, 0x2c
mov qword [rbp + 0x10], rsi
lea rcx, [rbp + 0x10]
movdqu xmmword [rbp + 0x20], xmm0
call fcn.140008270
lea rdx, [rbp + 0x10]
xor ecx, ecx
call fcn.140012d30
lea rcx, [rbp + 0x10]
call fcn.140005ef0
xor dil, dil
jmp 0x14001ae54
cmp qword [rbp + 0xa8], 0x10
lea rax, [rbp + 0x330]
mov qword [rbp + 0x320], rax
lea rdi, [rbp + 0x90]
cmovae rdi, qword [rbp + 0x90]
mov eax, esi
mov rsi, qword [rbp + 0xa0]
mov dword [rbp + 0x328], eax
mov dword [rbp + 0x32c], 0x104
test rsi, rsi
je 0x14001aca5
xor eax, eax
mov r9d, esi
mov dword [rsp + 0x28], eax
mov r8, rdi
lea rax, [rbp + 0x330]
mov edx, 8
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test eax, eax
je 0x14001ac10
inc eax
movsxd r8, eax
mov eax, dword [rbp + 0x32c]
cmp rax, r8
jae 0x14001abe0
mov r9d, 2
lea rdx, [rbp + 0x330]
lea rcx, [rbp + 0x320]
call fcn.14001d070
mov rax, qword [rbp + 0x320]
mov r9d, esi
mov dword [rsp + 0x28], ebx
mov r8, rdi
mov edx, 8
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
mov dword [rbp + 0x328], ebx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14001ac75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x30]
call fcn.14001c470
mov ecx, dword [rbp + 0x30]
test ecx, ecx
je 0x14001acb6
call qword [sym.imp.KERNEL32.dll_SetLastError]
movdqa xmm0, xmmword [0x140158380]
lea rdx, str.Unable_to_convert_command_line_to_UTF_16
xor esi, esi
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x10], rsi
movdqu xmmword [rbp + 0x20], xmm0
lea r8d, [rsi + 0x28]
call fcn.140008270
lea rdx, [rbp + 0x10]
xor ecx, ecx
call fcn.140012d30
lea rcx, [rbp + 0x10]
call fcn.140005ef0
xor dil, dil
jmp 0x14001ae3b
mov eax, dword [rbp + 0x328]
cmp eax, dword [rbp + 0x32c]
jb 0x14001aca5
mov r9d, 2
lea rdx, [rbp + 0x330]
xor r8d, r8d
lea rcx, [rbp + 0x320]
call fcn.14001d070
mov eax, dword [rbp + 0x328]
mov ecx, eax
xor esi, esi
mov rax, qword [rbp + 0x320]
mov word [rax + rcx*2], si
jmp 0x14001acb8
xor esi, esi
mov rax, qword [rsp + 0x58]
lea rcx, [rbp - 0x78]
cmp rax, qword [rsp + 0x60]
mov rdx, qword [rbp + 0x320]
mov qword [rsp + 0x48], rcx
cmove rax, rsi
lea rcx, [rbp - 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov rcx, qword [rbp + 0x540]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x10]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x14001ae0f
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, qword [r12]
movdqa xmm0, xmmword [0x140158380]
mov qword [rbp + 0x10], rsi
movdqu xmmword [rbp + 0x20], xmm0
test rdx, rdx
je 0x14001ad6c
mov r8, qword [r12 + 8]
lea rcx, [rbp + 0x10]
call fcn.140008270
movdqa xmm0, xmmword [0x140158380]
lea rdx, str.Couldnt_execute_program_
mov r8d, 0x1a
mov qword [rbp + 0x70], rsi
lea rcx, [rbp + 0x70]
movdqu xmmword [rbp + 0x80], xmm0
call fcn.140008270
lea r9, [rbp + 0x10]
lea r8, [rbp + 0x70]
lea rcx, [rbp + 0x30]
call fcn.14001bb30
mov r8d, 1
lea rdx, [0x14014317c]
lea rcx, [rbp + 0x30]
call fcn.1400081b0
lea rdx, [rbp + 0x50]
xor ecx, ecx
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov qword [rax + 0x10], rsi
movups xmmword [rbp + 0x50], xmm0
mov qword [rax + 0x18], 0xf
movups xmmword [rbp + 0x60], xmm1
mov byte [rax], 0
call fcn.140012d30
lea rcx, [rbp + 0x50]
call fcn.140005ef0
lea rcx, [rbp + 0x30]
call fcn.140005ef0
lea rcx, [rbp + 0x70]
call fcn.140005ef0
lea rcx, [rbp + 0x10]
call fcn.140005ef0
xor dil, dil
jmp 0x14001ae3b
mov eax, dword [rbp - 0x68]
xor ecx, ecx
mov rbx, qword [rbp - 0x70]
mov dil, 1
mov dword [r14], eax
mov rax, qword [rbp - 0x78]
mov qword [r14 + 8], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rbx, 0xffffffffffffffff
je 0x14001ae3b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x320]
lea rax, [rbp + 0x330]
cmp rcx, rax
je 0x14001ae54
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x540]
lea rax, [rbp + 0x550]
cmp rcx, rax
je 0x14001ae6d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001aec0
mov rdx, qword [rsp + 0x68]
mov rax, rcx
sub rdx, rcx
sar rdx, 1
add rdx, rdx
cmp rdx, 0x1000
jb 0x14001aead
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001aead
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14013e7e8
xorps xmm0, xmm0
mov qword [rsp + 0x68], rsi
movdqu xmmword [rsp + 0x58], xmm0
lea rcx, [rbp + 0x90]
call fcn.140005ef0
mov rcx, qword [rbp + 0xb0]
lea rax, [rbp + 0xc0]
cmp rcx, rax
je 0x14001aee5
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movzx eax, dil
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.14013e7c0
add rsp, 0x878
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret