Function at 0x140006418
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x90
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [0x14003a868]
mov qword [0x14003a858], rcx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_InitializeCriticalSection]
call fcn.140006068
mov ebp, 1
lea rcx, [0x1400227a0]
mov edx, ebp
call qword [sym.imp.api_ms_win_core_console_l1_1_0.dll_SetConsoleCtrlHandler]
mov ecx, ebp
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov rcx, rax
lea rdx, [0x14003a898]
call qword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleMode]
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov rcx, rax
lea rdx, [0x14003a89c]
call qword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleMode]
call fcn.14000c0f0
call fcn.14000e2ec
mov qword [0x140036810], rax
call fcn.14001168c
mov rcx, rdi
mov qword [0x140036818], rax
call fcn.140006098
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCommandLineW]
or rsi, 0xffffffffffffffff
mov rdx, rax
mov rax, rsi
xor ebx, ebx
inc rax
cmp word [rdx + rax*2], bx
jne 0x1400064dc
add rax, rbp
mov r14d, 0x2000
cmp rax, r14
ja 0x140018212
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCommandLineW]
lea r12, [0x140032810]
mov edx, r14d
mov r8, rax
mov rcx, r12
call fcn.14000dc10
lea r14, [0x140032600]
xor r8d, r8d
mov rcx, r14
mov edx, 0x104
call fcn.1400115f0
call fcn.14000844c
inc rsi
cmp word [r12 + rsi*2], bx
jne 0x14000652e
mov r9, rsi
mov rcx, rdi
call fcn.140007fe8
cmp word [0x140032600], 0x5c
je 0x140018226
call qword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
mov ecx, eax
mov dword [0x14003a844], eax
lea rdx, [0x14003a830]
call qword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetCPInfo]
call fcn.140006720
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x20c
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapAlloc]
mov qword [0x14003a850], rax
test rax, rax
je 0x1400065aa
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleTitleW]
test eax, eax
je 0x140018279
cmp dword [0x140046d3c], ebx
je 0x14000665c
cmp qword [rdi + 0x10], rbx
je 0x1400066b9
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
mov rcx, rax
mov qword [0x14002f028], rax
lea rdx, str.CopyFileExW
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rcx, qword [0x14002f028]
lea rdx, str.IsDebuggerPresent
mov qword [0x14003a890], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rcx, qword [0x14002f028]
lea rdx, str.SetConsoleInputExeNameW
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [0x14003a860], rax
cmp qword [rdi], rbx
jne 0x14000662b
cmp qword [rdi + 8], rbx
jne 0x14000662b
cmp qword [rdi + 0x10], rbx
je 0x14000662d
mov ebx, ebp
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400151c0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
mov ecx, ebp
call fcn.14000ee3c
test eax, eax
je 0x1400065b6
movzx ecx, word [0x140030368]
test cx, cx
jne 0x1400066af
mov ecx, 0xfffffff5
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleScreenBufferInfo]
movzx ecx, word [0x140030368]
test eax, eax
cmovne cx, word [rsp + 0x28]
mov word [0x140030368], cx
test cx, cx
je 0x1400065b6
call fcn.14000347c
jmp 0x1400065b6
call fcn.140002eb0
lea rcx, [rsp + 0x40]
mov rsi, rax
call fcn.140001008
lea r8, [rsp + 0x40]
mov edx, ebp
mov ecx, 0x2350
call fcn.140004ae0
lea rcx, [0x1400283c0]
call fcn.14000ed0c
test rsi, rsi
je 0x140018288
mov rdx, rsi
lea rcx, [0x140028a48]
call fcn.14000ed0c
lea rcx, [0x1400283c0]
call fcn.14000ed0c
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_GlobalFree]
jmp 0x1400065c0
xor edx, edx
mov ecx, 0x400023df
call fcn.1400057e4
mov ecx, ebp
call fcn.140011814
int3
cmp word [0x140032602], 0x5c
jne 0x140006551
cmp byte [0x14004b114], bl
jne 0x140006551
mov r8, r14
mov edx, ebp
mov ecx, 0x400023c8
call fcn.1400057e4
mov edx, 0x104
mov rcx, r14
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetWindowsDirectoryW]
test eax, eax
je 0x140018271
xor edx, edx
mov rcx, r14
call fcn.140011280
nop
jmp 0x140006551
mov ecx, ebp
call fcn.140011814
int3
mov rax, qword [0x14003a850]
mov word [rax], bx
jmp 0x1400065aa
xor edx, edx
lea ecx, [rdx + 8]
call fcn.1400057e4
nop
jmp 0x14000670c