Function at 0x140038b10
Capabilities:
Accept command line arguments
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x105d0]
mov eax, 0x106d0
call fcn.1400f7000
sub rsp, rax
xor esi, esi
mov byte [rcx + 0xbe2], r9b
mov r12, r8
mov r15, rcx
test r8, r8
jne 0x140038d4d
mov r8d, 0x106
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x104
ja 0x1400392af
mov edx, 0x5c
lea rcx, [rbp - 0x80]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rbx, rax
test rax, rax
je 0x1400392af
mov edx, 0x2e
mov rcx, rax
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rcx, rax
test rax, rax
je 0x1400392af
cmp qword [0x140132b68], rsi
lea r12, [rbp - 0x80]
movsd xmm0, qword [str..ahk]
movsd qword [rax], xmm0
movzx eax, word [0x1401132e0]
mov word [rcx + 8], ax
jne 0x140038d85
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140038d4d
lea rax, [rbp + 0x1b0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 5
lea r12, [rbp + 0x3c0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x140038c10
mov word [rbp + 0x1b0], si
lea rax, [rbp + 0x1b0]
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp word [rax + rcx*2], si
jne 0x140038c20
test rcx, rcx
jne 0x140038c33
mov rcx, rsi
jmp 0x140038c49
cmp word [rbp + rcx*2 + 0x1ae], 0x5c
jne 0x140038c49
mov word [rbp + rcx*2 + 0x1ae], si
dec rcx
mov rdx, rsi
nop dword [rax]
movzx eax, word [rbp + rdx + 0x1b0]
mov word [rbp + rdx + 0x3c0], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140038c50
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], si
jne 0x140038c70
inc rax
add rax, rcx
cmp rax, 0x105
ja 0x1400392af
lea rax, [rcx + rcx]
mov rdx, rbx
sub rax, rbx
lea rcx, [rbp + 0x3c0]
add rcx, rax
nop
movzx eax, word [rdx]
mov word [rdx + rcx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140038ca0
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140038d4d
movups xmm0, xmmword [0x1401132e8]
lea rcx, [rbp - 0x80]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [0x1401132f8]
movups xmmword [rbx + 0x10], xmm1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140038d4d
lea r9, [rbp - 0x80]
mov edx, 0x8000
lea r8, str._ms_its:_s::_docs_Welcome.htm_
lea rcx, [rbp + 0x5d0]
call fcn.140033b40
mov qword [rsp + 0x48], rsi
lea rax, [0x140113348]
mov byte [rsp + 0x40], sil
lea r9, [rbp - 0x80]
mov byte [rsp + 0x38], sil
lea r8, [rbp + 0x5d0]
mov qword [rsp + 0x30], rsi
lea rdx, str.hh.exe
mov qword [rsp + 0x28], rax
mov rcx, r15
mov byte [rsp + 0x20], sil
call fcn.140065f10
test eax, eax
jne 0x1400392af
cmp qword [0x140132b68], rsi
jne 0x140038d85
xor r9d, r9d
lea r8, [rbp + 0x5d0]
mov edx, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, eax
mov qword [rbp + 0x10618], rax
test rax, rax
je 0x1400392af
jmp 0x140038f2e
mov r8d, 0x8000
lea rdx, [rbp + 0x5d0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140038db3
mov r8d, 0x8000
lea rdx, [rbp + 0x5d0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x410
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea rcx, str.ntdll.dll
mov qword [rbp + 0x10618], rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtQueryInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp + 0x10638]
mov r9d, gethostbyname
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x50]
mov rcx, rbx
xor edx, edx
call rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 0x20]
cmp word [rcx + 0x70], si
je 0x140038f25
mov dword [rbp + 0x10628], esi
lea rdx, [rbp + 0x10628]
mov rcx, qword [rcx + 0x78]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [rbp + 0x10628]
mov r13, rax
cmp edx, 1
jle 0x140038f1c
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 0x20]
cmp word [rcx + 0x70], si
je 0x140038f1c
mov ebx, 1
cmp edx, ebx
jle 0x140038f15
lea rdi, [r13 + 8]
nop
mov r14, qword [rdi]
lea rdx, [0x140113360]
mov rcx, r14
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
je 0x140038ea7
mov r8d, 1
lea rdx, [0x140113364]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x140038eb7
inc ebx
add rdi, 8
cmp ebx, dword [rbp + 0x10628]
jl 0x140038e70
jmp 0x140038f15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140038ef5
mov r8d, 0x8000
lea rdx, [rbp + 0x5d0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140038f15
mov r8d, 0x8000
lea rdx, [rbp + 0x5d0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x140038f15
xor r9d, r9d
lea r8, [rbp + 0x5d0]
mov edx, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x1400392af
mov rbx, qword [rbp + 0x10618]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [r12], 0x2a
jne 0x140038f5b
cmp word [r12 + 2], si
jne 0x140038f5b
mov byte [0x140132aef], 1
mov dword [0x140132ae8], 4
mov dword [0x140130c88], 1
jmp 0x140038f7e
cmp qword [0x140132b68], rsi
mov byte [0x140132aef], sil
jne 0x140038f7e
lea r8, [rbp + 0x10618]
lea rcx, [rbp + 0x5d0]
call fcn.1400d78f0
lea r13, [0x1400f97e4]
cmp word [rbp + 0x5d0], si
je 0x140039004
lea rax, [rbp + 0x5d0]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], si
jne 0x140038fa0
lea r14, [rbx + rbx]
lea rcx, [r14 + 2]
call fcn.1400d2d70
mov rdi, rax
test rax, rax
jne 0x140038fe6
lea r8, [rbp + 0x5d0]
lea rdx, str.Out_of_memory.
lea rcx, [0x140136060]
call fcn.140064aa0
xor eax, eax
mov qword [r15 + 0xbb0], rsi
jmp 0x140039326
test rbx, rbx
je 0x140038ffd
mov r8, r14
lea rdx, [rbp + 0x5d0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [r14 + rdi], si
jmp 0x140039007
mov rdi, r13
mov edx, 0x5c
mov qword [r15 + 0xbb0], rdi
lea rcx, [rbp + 0x5d0]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rdi, rax
test rax, rax
je 0x140039161
mov word [rax], si
cmp word [rbp + 0x5d0], si
je 0x1400390ab
lea rax, [rbp + 0x5d0]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], si
jne 0x140039046
lea r12, [rbx + rbx]
lea rcx, [r12 + 2]
call fcn.1400d2d70
mov r14, rax
test rax, rax
jne 0x14003908d
lea r8, [rbp + 0x5d0]
lea rdx, str.Out_of_memory.
lea rcx, [0x140136060]
call fcn.140064aa0
xor eax, eax
mov qword [r15 + 0xbb8], rsi
jmp 0x140039326
test rbx, rbx
je 0x1400390a4
mov r8, r12
lea rdx, [rbp + 0x5d0]
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov word [r12 + r14], si
jmp 0x1400390ae
mov r14, r13
mov qword [r15 + 0xbb8], r14
add rdi, 2
jne 0x140039168
mov r14, r13
mov rax, r13
mov qword [r15 + 0xbc0], rax
lea r8, str._s_s____s
mov r9, qword [r15 + 0xbb8]
lea rax, [0x140113368]
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x5d0]
mov edx, 0x8000
mov qword [rsp + 0x20], r14
call fcn.1400d6690
cmp word [rbp + 0x5d0], si
je 0x140039201
lea rax, [rbp + 0x5d0]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], si
jne 0x140039117
lea r14, [rbx + rbx]
lea rcx, [r14 + 2]
call fcn.1400d2d70
mov rdi, rax
test rax, rax
jne 0x1400391e3
lea r8, [rbp + 0x5d0]
lea rdx, str.Out_of_memory.
lea rcx, [0x140136060]
call fcn.140064aa0
xor eax, eax
mov qword [r15 + 0xbd8], rsi
jmp 0x140039326
lea rdi, [rbp + 0x5d0]
cmp word [rdi], si
je 0x1400390bf
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rdi + rbx*2], si
jne 0x140039180
lea r12, [rbx + rbx]
lea rcx, [r12 + 2]
call fcn.1400d2d70
mov r14, rax
test rax, rax
jne 0x1400391c3
mov r8, rdi
lea rdx, str.Out_of_memory.
lea rcx, [0x140136060]
call fcn.140064aa0
xor eax, eax
mov qword [r15 + 0xbc0], rsi
jmp 0x140039326
test rbx, rbx
je 0x1400391d6
mov r8, r12
mov rdx, rdi
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov word [r12 + r14], si
mov rax, r14
jmp 0x1400390c5
test rbx, rbx
je 0x1400391fa
mov r8, r14
lea rdx, [rbp + 0x5d0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [r14 + rdi], si
jmp 0x140039204
mov rdi, r13
mov qword [r15 + 0xbd8], rdi
lea rdx, [rbp + 0x5d2]
mov ebx, SafeArrayAllocDescriptor
mov r8d, 0x7ffe
xor ecx, ecx
mov word [rbp + 0x5d0], bx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140039321
lea rcx, [rbp + 0x5d0]
mov rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140039242
mov dword [rbp + rax*2 + 0x5d0], ebx
cmp word [rbp + 0x5d0], si
je 0x1400392d1
lea rax, [rbp + 0x5d0]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], si
jne 0x140039270
lea r14, [rbx + rbx]
lea rcx, [r14 + 2]
call fcn.1400d2d70
mov rdi, rax
test rax, rax
jne 0x1400392b3
lea r8, [rbp + 0x5d0]
lea rdx, str.Out_of_memory.
lea rcx, [0x140136060]
call fcn.140064aa0
mov qword [r15 + 0xbc8], rsi
xor eax, eax
jmp 0x140039326
test rbx, rbx
je 0x1400392ca
mov r8, r14
lea rdx, [rbp + 0x5d0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [r14 + rdi], si
jmp 0x1400392d4
mov rdi, r13
mov edx, 0x5c
mov qword [r15 + 0xbc8], rdi
lea rcx, [rbp + 0x5d0]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
jne 0x1400392f9
mov qword [r15 + 0xbd0], r13
mov rdx, 0xffffffffffffffff
mov word [rax], si
lea rcx, [rbp + 0x5d2]
call fcn.1400d2c40
test rax, rax
mov qword [r15 + 0xbd0], rax
setne sil
mov eax, esi
jmp 0x140039326
mov eax, 1
mov rbx, qword [rsp + 0x10710]
add rsp, 0x106d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret