Function at 0x140034520
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.1400f3640
sub rsp, rax
xor r15d, r15d
mov byte [rcx + 0xbe2], r9b
mov r14, r8
mov r13, rcx
test r8, r8
jne 0x140034759
mov r8d, 0x106
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x104
ja 0x14003478c
lea edx, [r14 + 0x5c]
lea rcx, [rbp - 0x80]
call fcn.1400d796c
mov rbx, rax
test rax, rax
je 0x14003478c
lea edx, [r14 + 0x2e]
mov rcx, rax
call fcn.1400d796c
test rax, rax
je 0x14003478c
cmp qword [0x140142820], r15
lea r14, [rbp - 0x80]
movsd xmm0, qword [str..ahk]
movsd qword [rax], xmm0
movzx ecx, word [0x14011d020]
mov word [rax + 8], cx
jne 0x1400347a9
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140034759
lea rax, [rbp + 0x1b0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r15 + 5]
xor ecx, ecx
lea r14, [rbp + 0x3c0]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14003461a
mov word [rbp + 0x1b0], r15w
lea rax, [rbp + 0x1b0]
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x140034630
test rcx, rcx
jne 0x140034644
mov rcx, r15
jmp 0x14003465b
cmp word [rbp + rcx*2 + 0x1ae], 0x5c
jne 0x14003465b
mov word [rbp + rcx*2 + 0x1ae], r15w
dec rcx
mov rdx, r15
nop
movzx eax, word [rbp + rdx + 0x1b0]
mov word [rbp + rdx + 0x3c0], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140034660
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x140034680
inc rax
add rax, rcx
cmp rax, 0x105
ja 0x14003478c
lea rax, [rcx + rcx]
mov rdx, rbx
sub rax, rbx
lea rcx, [rbp + 0x3c0]
add rcx, rax
movzx eax, word [rdx]
mov word [rcx + rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x1400346b0
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140034759
movups xmm0, xmmword [0x14011d028]
lea rcx, [rbp - 0x80]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [0x14011d038]
movups xmmword [rbx + 0x10], xmm1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140034759
lea r9, [rbp - 0x80]
mov edx, 0x8000
lea r8, str._ms_its:_s::_docs_Welcome.htm_
lea rcx, [rbp + 0x5d0]
call fcn.14002f420
mov qword [rsp + 0x48], r15
lea rax, [0x14011d088]
mov byte [rsp + 0x40], r15b
lea r9, [rbp - 0x80]
mov byte [rsp + 0x38], r15b
lea r8, [rbp + 0x5d0]
mov qword [rsp + 0x30], r15
lea rdx, str.hh.exe
mov qword [rsp + 0x28], rax
mov rcx, r13
mov byte [rsp + 0x20], r15b
call fcn.140058480
test eax, eax
jne 0x14003478c
cmp qword [0x140142820], r15
jne 0x1400347a9
xor r9d, r9d
lea r8, [rbp + 0x5d0]
mov edx, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, eax
mov qword [rbp + 0x10618], rax
test rax, rax
jne 0x140034949
xor eax, eax
mov rbx, qword [rsp + 0x10710]
add rsp, 0x106d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, 0x8000
lea rdx, [rbp + 0x5d0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400347d7
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 r12, 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, r12
xor edx, edx
call rax
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x20]
cmp word [rcx + 0x70], r15w
je 0x140034940
mov dword [rbp + 0x10628], r15d
lea rdx, [rbp + 0x10628]
mov rcx, qword [rcx + 0x78]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r8d, dword [rbp + 0x10628]
mov r15, rax
cmp r8d, 1
jle 0x140034934
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx + 0x20]
cmp word [rdx + 0x70], 0
je 0x140034934
mov ebx, 1
cmp r8d, ebx
jle 0x140034934
lea rdi, [rax + 8]
mov rsi, qword [rdi]
lea rdx, [0x14011d0a0]
mov rcx, rsi
mov r8d, 1
call fcn.1400e5980
test eax, eax
je 0x1400348c6
mov r8d, 1
lea rdx, [0x14011d0a4]
mov rcx, rsi
call fcn.1400e5980
test eax, eax
jne 0x1400348d6
inc ebx
add rdi, 8
cmp ebx, dword [rbp + 0x10628]
jl 0x140034891
jmp 0x140034934
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140034914
mov r8d, 0x8000
lea rdx, [rbp + 0x5d0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140034934
mov r8d, 0x8000
lea rdx, [rbp + 0x5d0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x140034934
xor r9d, r9d
lea r8, [rbp + 0x5d0]
mov edx, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x14003478c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r15d, r15d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [r14], 0x2a
jne 0x140034975
cmp word [r14 + 2], 0
jne 0x140034975
mov byte [0x140142883], 1
mov dword [0x1401427a8], 4
mov dword [0x14013f630], 1
jmp 0x140034999
cmp qword [0x140142820], 0
mov byte [0x140142883], 0
jne 0x140034999
lea r8, [rbp + 0x10618]
lea rcx, [rbp + 0x5d0]
call fcn.1400bad40
cmp word [rbp + 0x5d0], 0
lea r12, [0x140103574]
je 0x140034a1c
lea rax, [rbp + 0x5d0]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400349c0
lea rsi, [rbx + rbx]
lea rcx, [rsi + 2]
call fcn.1400b6a80
mov rdi, rax
test rax, rax
jne 0x1400349fe
lea r8, [rbp + 0x5d0]
lea rdx, str.Out_of_memory.
lea rcx, [0x140145cd0]
call fcn.1400570c0
mov rdi, r15
jmp 0x140034a1f
test rbx, rbx
je 0x140034a15
mov r8, rsi
lea rdx, [rbp + 0x5d0]
mov rcx, rdi
call fcn.1400d8380
mov word [rsi + rdi], r15w
jmp 0x140034a1f
mov rdi, r12
mov qword [r13 + 0xbb0], rdi
test rdi, rdi
je 0x14003478c
mov edx, 0x5c
lea rcx, [rbp + 0x5d0]
call fcn.1400d796c
mov rsi, rax
test rax, rax
je 0x140034ae5
mov word [rax], r15w
cmp word [rbp + 0x5d0], 0
je 0x140034acc
lea rax, [rbp + 0x5d0]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140034a70
lea r14, [rbx + rbx]
lea rcx, [r14 + 2]
call fcn.1400b6a80
mov rdi, rax
test rax, rax
jne 0x140034aae
lea r8, [rbp + 0x5d0]
lea rdx, str.Out_of_memory.
lea rcx, [0x140145cd0]
call fcn.1400570c0
mov rdi, r15
jmp 0x140034acf
test rbx, rbx
je 0x140034ac5
mov r8, r14
lea rdx, [rbp + 0x5d0]
mov rcx, rdi
call fcn.1400d8380
mov word [r14 + rdi], r15w
jmp 0x140034acf
mov rdi, r12
mov qword [r13 + 0xbb8], rdi
test rdi, rdi
je 0x14003478c
add rsi, 2
jmp 0x140034aec
lea rsi, [rbp + 0x5d0]
mov rdx, 0xffffffffffffffff
mov rcx, rsi
call fcn.1400b69d0
mov qword [r13 + 0xbc0], rax
test rax, rax
je 0x14003478c
mov r9, qword [r13 + 0xbb8]
lea rcx, [0x14011d0a8]
mov qword [rsp + 0x28], rcx
lea r8, str._s_s____s
lea rcx, [rbp + 0x5d0]
mov qword [rsp + 0x20], rax
mov edx, 0x8000
call fcn.1400b9a60
cmp word [rbp + 0x5d0], 0
je 0x140034baf
lea rax, [rbp + 0x5d0]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140034b53
lea rsi, [rbx + rbx]
lea rcx, [rsi + 2]
call fcn.1400b6a80
mov rdi, rax
test rax, rax
jne 0x140034b91
lea r8, [rbp + 0x5d0]
lea rdx, str.Out_of_memory.
lea rcx, [0x140145cd0]
call fcn.1400570c0
mov rdi, r15
jmp 0x140034bb2
test rbx, rbx
je 0x140034ba8
mov r8, rsi
lea rdx, [rbp + 0x5d0]
mov rcx, rdi
call fcn.1400d8380
mov word [rsi + rdi], r15w
jmp 0x140034bb2
mov rdi, r12
mov qword [r13 + 0xbd8], rdi
test rdi, rdi
je 0x14003478c
mov ebx, SafeArrayAllocDescriptor
lea rdx, [rbp + 0x5d2]
mov r8d, 0x7ffe
mov word [rbp + 0x5d0], bx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140034ce3
lea rcx, [rbp + 0x5d0]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140034c00
mov dword [rbp + rax*2 + 0x5d0], ebx
cmp word [rbp + 0x5d0], 0
je 0x140034c8c
lea rax, [rbp + 0x5d0]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140034c30
lea rsi, [rbx + rbx]
lea rcx, [rsi + 2]
call fcn.1400b6a80
mov rdi, rax
test rax, rax
jne 0x140034c6e
lea r8, [rbp + 0x5d0]
lea rdx, str.Out_of_memory.
lea rcx, [0x140145cd0]
call fcn.1400570c0
mov rdi, r15
jmp 0x140034c8f
test rbx, rbx
je 0x140034c85
mov r8, rsi
lea rdx, [rbp + 0x5d0]
mov rcx, rdi
call fcn.1400d8380
mov word [rsi + rdi], r15w
jmp 0x140034c8f
mov rdi, r12
mov qword [r13 + 0xbc8], rdi
test rdi, rdi
je 0x14003478c
mov edx, 0x5c
lea rcx, [rbp + 0x5d0]
call fcn.1400d796c
test rax, rax
jne 0x140034cbc
mov qword [r13 + 0xbd0], r12
mov rdx, 0xffffffffffffffff
mov word [rax], r15w
lea rcx, [rbp + 0x5d2]
call fcn.1400b69d0
mov qword [r13 + 0xbd0], rax
test rax, rax
je 0x14003478c
mov eax, 1
jmp 0x14003478e