Function at 0x1400347e0
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.1400d7ad0
sub rsp, rax
xor r15d, r15d
mov byte [rcx + 0xbe2], r9b
mov r14, r8
mov r13, rcx
test r8, r8
jne 0x140034a19
mov r8d, 0x106
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x104
ja 0x140034a4c
lea edx, [r14 + 0x5c]
lea rcx, [rbp - 0x80]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rbx, rax
test rax, rax
je 0x140034a4c
lea edx, [r14 + 0x2e]
mov rcx, rax
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x140034a4c
cmp qword [0x140113b00], r15
lea r14, [rbp - 0x80]
movsd xmm0, qword [str..ahk]
movsd qword [rax], xmm0
movzx ecx, word [0x1400f4250]
mov word [rax + 8], cx
jne 0x140034a69
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140034a19
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 0x1400348dc
mov word [rbp + 0x1b0], r15w
lea rax, [rbp + 0x1b0]
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x1400348f0
test rcx, rcx
jne 0x140034904
mov rcx, r15
jmp 0x14003491b
cmp word [rbp + rcx*2 + 0x1ae], 0x5c
jne 0x14003491b
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 0x140034920
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x140034940
inc rax
add rax, rcx
cmp rax, 0x105
ja 0x140034a4c
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 0x140034970
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140034a19
movups xmm0, xmmword [0x1400f4258]
lea rcx, [rbp - 0x80]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [0x1400f4268]
movups xmmword [rbx + 0x10], xmm1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140034a19
lea r9, [rbp - 0x80]
mov edx, 0x8000
lea r8, str._ms_its:_s::_docs_Welcome.htm_
lea rcx, [rbp + 0x5d0]
call fcn.14002f5a0
mov qword [rsp + 0x48], r15
lea rax, [0x1400f42b8]
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.140058970
test eax, eax
jne 0x140034a4c
cmp qword [0x140113b00], r15
jne 0x140034a69
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 0x140034c0b
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 0x140034a97
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, gethostbyaddr
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 0x140034c02
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 0x140034bf6
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx + 0x20]
cmp word [rdx + 0x70], 0
je 0x140034bf6
mov ebx, 1
cmp r8d, ebx
jle 0x140034bf6
lea rdi, [rax + 8]
mov rsi, qword [rdi]
lea rdx, [0x1400f42d0]
mov rcx, rsi
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
je 0x140034b88
mov r8d, 1
lea rdx, [0x1400f42d4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x140034b98
inc ebx
add rdi, 8
cmp ebx, dword [rbp + 0x10628]
jl 0x140034b51
jmp 0x140034bf6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140034bd6
mov r8d, 0x8000
lea rdx, [rbp + 0x5d0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140034bf6
mov r8d, 0x8000
lea rdx, [rbp + 0x5d0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x140034bf6
xor r9d, r9d
lea r8, [rbp + 0x5d0]
mov edx, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x140034a4c
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 0x140034c37
cmp word [r14 + 2], 0
jne 0x140034c37
mov byte [0x140113b63], 1
mov dword [0x140113a88], 4
mov dword [0x140111c30], 1
jmp 0x140034c5b
cmp qword [0x140113b00], 0
mov byte [0x140113b63], 0
jne 0x140034c5b
lea r8, [rbp + 0x10618]
lea rcx, [rbp + 0x5d0]
call fcn.1400bb640
cmp word [rbp + 0x5d0], 0
lea r12, [0x1400da7a4]
je 0x140034cdc
lea rax, [rbp + 0x5d0]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140034c80
lea rsi, [rbx + rbx]
lea rcx, [rsi + 2]
call fcn.1400b7310
mov rdi, rax
test rax, rax
jne 0x140034cbe
lea r8, [rbp + 0x5d0]
lea rdx, str.Out_of_memory.
lea rcx, [0x140116fb0]
call fcn.140057630
mov rdi, r15
jmp 0x140034cdf
test rbx, rbx
je 0x140034cd5
mov r8, rsi
lea rdx, [rbp + 0x5d0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rsi + rdi], r15w
jmp 0x140034cdf
mov rdi, r12
mov qword [r13 + 0xbb0], rdi
test rdi, rdi
je 0x140034a4c
mov edx, 0x5c
lea rcx, [rbp + 0x5d0]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rsi, rax
test rax, rax
je 0x140034da5
mov word [rax], r15w
cmp word [rbp + 0x5d0], 0
je 0x140034d8c
lea rax, [rbp + 0x5d0]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140034d30
lea r14, [rbx + rbx]
lea rcx, [r14 + 2]
call fcn.1400b7310
mov rdi, rax
test rax, rax
jne 0x140034d6e
lea r8, [rbp + 0x5d0]
lea rdx, str.Out_of_memory.
lea rcx, [0x140116fb0]
call fcn.140057630
mov rdi, r15
jmp 0x140034d8f
test rbx, rbx
je 0x140034d85
mov r8, r14
lea rdx, [rbp + 0x5d0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [r14 + rdi], r15w
jmp 0x140034d8f
mov rdi, r12
mov qword [r13 + 0xbb8], rdi
test rdi, rdi
je 0x140034a4c
add rsi, 2
jmp 0x140034dac
lea rsi, [rbp + 0x5d0]
mov rdx, 0xffffffffffffffff
mov rcx, rsi
call fcn.1400b7260
mov qword [r13 + 0xbc0], rax
test rax, rax
je 0x140034a4c
mov r9, qword [r13 + 0xbb8]
lea rcx, [0x1400f42d8]
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.1400ba350
cmp word [rbp + 0x5d0], 0
je 0x140034e6f
lea rax, [rbp + 0x5d0]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140034e13
lea rsi, [rbx + rbx]
lea rcx, [rsi + 2]
call fcn.1400b7310
mov rdi, rax
test rax, rax
jne 0x140034e51
lea r8, [rbp + 0x5d0]
lea rdx, str.Out_of_memory.
lea rcx, [0x140116fb0]
call fcn.140057630
mov rdi, r15
jmp 0x140034e72
test rbx, rbx
je 0x140034e68
mov r8, rsi
lea rdx, [rbp + 0x5d0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rsi + rdi], r15w
jmp 0x140034e72
mov rdi, r12
mov qword [r13 + 0xbd8], rdi
test rdi, rdi
je 0x140034a4c
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 0x140034fa4
lea rcx, [rbp + 0x5d0]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140034ec0
mov dword [rbp + rax*2 + 0x5d0], ebx
cmp word [rbp + 0x5d0], 0
je 0x140034f4c
lea rax, [rbp + 0x5d0]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140034ef0
lea rsi, [rbx + rbx]
lea rcx, [rsi + 2]
call fcn.1400b7310
mov rdi, rax
test rax, rax
jne 0x140034f2e
lea r8, [rbp + 0x5d0]
lea rdx, str.Out_of_memory.
lea rcx, [0x140116fb0]
call fcn.140057630
mov rdi, r15
jmp 0x140034f4f
test rbx, rbx
je 0x140034f45
mov r8, rsi
lea rdx, [rbp + 0x5d0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rsi + rdi], r15w
jmp 0x140034f4f
mov rdi, r12
mov qword [r13 + 0xbc8], rdi
test rdi, rdi
je 0x140034a4c
mov edx, 0x5c
lea rcx, [rbp + 0x5d0]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
jne 0x140034f7d
mov qword [r13 + 0xbd0], r12
mov rdx, 0xffffffffffffffff
mov word [rax], r15w
lea rcx, [rbp + 0x5d2]
call fcn.1400b7260
mov qword [r13 + 0xbd0], rax
test rax, rax
je 0x140034a4c
mov eax, 1
jmp 0x140034a4e