Function at 0x140001180
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x1a30]
mov eax, 0x1b30
call fcn.1400015a0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1a20], rax
mov rbx, rdx
mov edi, ecx
cmp ecx, 2
jg 0x1400011eb
lea rcx, str._1_Path_to_exe_n_r
call fcn.140001120
lea rcx, str._2_Window_name_n_r
call fcn.140001120
lea rcx, str._3_exe_params_n_r
call fcn.140001120
lea rcx, str.Optional___m__create_minimazed_console_window_n_r
call fcn.140001120
xor eax, eax
jmp 0x1400014dc
mov qword [rsp + 0x1b50], rsi
mov qword [rsp + 0x1b60], r14
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor edx, edx
lea rcx, [rbp - 0x60]
lea r8d, [rdx + 0x68]
call fcn.140002250
mov r8, qword [rbx + 8]
lea rcx, [rbp + 0x1220]
xor r14d, r14d
mov dword [rbp - 0x60], 0x68
mov edx, 0x400
mov word [rbp + 0x1220], r14w
call fcn.140004388
mov r8, qword [rbx + 0x10]
lea rcx, [rbp + 0xa20]
mov edx, 0x400
mov word [rbp + 0xa20], r14w
call fcn.140004388
lea rax, [rbp + 0xa20]
mov word [rbp + 0x220], r14w
lea r8, str.cmd.exe__C
mov qword [rbp - 0x48], rax
mov edx, 0x400
mov dword [rbp - 0x24], 1
lea rcx, [rbp + 0x220]
mov esi, r14d
call fcn.140004388
lea r8, [0x1400113c8]
mov edx, 0x400
lea rcx, [rbp + 0x220]
call fcn.140004388
mov r8, qword [rbx + 8]
lea rcx, [rbp + 0x220]
mov edx, 0x400
call fcn.140004388
lea r8, [0x1400113c8]
mov edx, 0x400
lea rcx, [rbp + 0x220]
call fcn.140004388
lea r8, [0x1400113cc]
mov edx, 0x400
lea rcx, [rbp + 0x220]
call fcn.140004388
cmp edi, 3
jle 0x140001366
add rbx, 0x18
add edi, 0xfffffffd
nop dword [rax]
mov r8, qword [rbx]
movzx eax, word [r8]
cmp ax, word [0x1400113d0]
jne 0x140001333
movzx eax, word [r8 + 2]
cmp ax, word [0x1400113d2]
jne 0x140001333
movzx eax, word [r8 + 4]
cmp ax, word [0x1400113d4]
jne 0x140001333
mov esi, 6
jmp 0x14000135c
mov edx, 0x400
lea rcx, [rbp + 0x220]
call fcn.140004388
lea r8, [0x1400113cc]
mov edx, 0x400
lea rcx, [rbp + 0x220]
call fcn.140004388
add rbx, 8
sub rdi, 1
jne 0x140001300
lea rdx, [rbp + 0x10]
mov word [rbp - 0x20], si
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x220]
lea rax, [rbp - 0x60]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rsi, qword [rsp + 0x1b50]
xor ecx, ecx
test eax, eax
je 0x1400014b9
mov ebx, dword [rsp + 0x60]
xor r9d, r9d
mov edx, 0x2599
mov r8d, 0x3e8
call qword [sym.imp.USER32.dll_SetTimer]
mov edx, 1
lea rcx, section..text
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x1400014b3
xor r9d, r9d
lea rcx, [rsp + 0x68]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1400014b3
nop dword [rax + rax]
cmp dword [rsp + 0x70], 0x113
jne 0x14000148d
xor edx, edx
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_SleepEx]
mov ecx, ebx
call fcn.140001050
test eax, eax
jne 0x14000148d
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x220]
lea rax, [rbp - 0x60]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, dword [rsp + 0x60]
test eax, eax
je 0x1400014b7
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x68]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140001420
xor eax, eax
jmp 0x1400014d4
xor ecx, ecx
mov r9d, 0x10
lea rdx, [0x1400113d8]
xor r8d, r8d
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
mov r14, qword [rsp + 0x1b60]
mov rcx, qword [rbp + 0x1a20]
xor rcx, rsp
call fcn.140001610
add rsp, 0x1b30
pop rdi
pop rbx
pop rbp
ret