Function at 0x10004c184
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor ebx, ebx
lea rax, [rsp + 0x60]
mov r12, rcx
mov rsi, rbx
cmp rax, rbx
je 0x10004c4b0
lea edx, [rbx + 1]
lea rcx, [rsp + 0x60]
call fcn.100053eb0
cmp eax, ebx
je 0x10004c4b0
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edi, 0x104
lea r8, [0x100027008]
lea rcx, [rsp + 0x60]
mov rdx, rdi
call fcn.100039ee4
cmp eax, ebx
jl 0x10004c4b0
lea rcx, [rsp + 0x60]
call fcn.100053454
cmp eax, ebx
je 0x10004c4b0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x60]
mov r8, rdi
call fcn.100052b94
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rsi, rax
cmp rax, rbx
je 0x10004c48e
xor eax, eax
or r14, 0xffffffffffffffff
mov rdi, rsi
mov rcx, r14
lea r15d, [rbx + 2]
repne scasw ax, word [rdi]
mov rax, r15
not rcx
mov rdi, rcx
mul rcx
cmovo rax, r14
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rbp, rax
cmp rax, rbx
je 0x10004c313
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.100039df8
cmp eax, ebx
jl 0x10004c30b
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wcslwr]
lea rdx, [0x1000287f8]
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_wcsstr]
cmp rax, rbx
je 0x10004c2c2
lea ecx, [rbx + 0x22]
add rax, 0x1a
cmp cx, word [rax]
jne 0x10004c2b6
add rax, r15
sub rax, rbp
sar rax, 1
lea rsi, [rsi + rax*2]
jmp 0x10004c30b
lea rdx, [0x100028818]
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_wcsstr]
mov rdi, rax
cmp rax, rbx
je 0x10004c308
add rdi, 0x12
lea rdx, [0x100027008]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsstr]
cmp rax, rbx
je 0x10004c2fc
sub rax, rbp
add rax, 0x18
jmp 0x10004c2b9
sub rdi, rbp
sar rdi, 1
lea rsi, [rsi + rdi*2]
jmp 0x10004c30b
mov rsi, rbx
mov rcx, rbp
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
lea rdx, [0x100000000]
lea rcx, [rsp + 0x30]
mov rax, qword [rdx + 0x28848]
mov qword [rcx], rax
mov rax, qword [rdx + 0x28850]
mov qword [rcx + 8], rax
mov eax, dword [rdx + 0x28858]
mov dword [rcx + 0x10], eax
movzx eax, word [rdx + 0x2885c]
mov word [rcx + 0x14], ax
cmp r12, rbx
je 0x10004c3f9
cmp word [r12], bx
je 0x10004c3f9
mov rax, qword [rdx + 0x28860]
lea rcx, [rsp + 0x48]
mov rdi, r12
mov qword [rcx], rax
mov eax, dword [rdx + 0x28868]
mov dword [rcx + 8], eax
movzx eax, word [rdx + 0x2886c]
mov word [rcx + 0xc], ax
xor eax, eax
mov rcx, r14
repne scasw ax, word [rdi]
lea rdi, [rsp + 0x48]
not rcx
lea rbp, [rcx - 1]
mov rcx, r14
repne scasw ax, word [rdi]
lea rdi, [rsp + 0x30]
not rcx
dec rcx
add rbp, rcx
mov rcx, r14
repne scasw ax, word [rdi]
mov rax, r15
not rcx
add rbp, rcx
mul rbp
cmovo rax, r14
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rdi, rax
cmp rax, rbx
je 0x10004c489
lea r8, [rsp + 0x30]
mov rdx, rbp
mov rcx, rax
call fcn.100039df8
lea r8, [rsp + 0x48]
mov rdx, rbp
mov rcx, rdi
call fcn.100039ee4
mov r8, r12
jmp 0x10004c452
cmp rsi, rbx
je 0x10004c489
xor eax, eax
mov rcx, r14
mov rdi, rsi
repne scasw ax, word [rdi]
lea rdi, [rsp + 0x30]
not rcx
lea rbp, [rcx - 1]
mov rcx, r14
repne scasw ax, word [rdi]
mov rax, r15
not rcx
add rbp, rcx
mul rbp
cmovo rax, r14
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rdi, rax
cmp rax, rbx
je 0x10004c489
lea r8, [rsp + 0x30]
mov rdx, rbp
mov rcx, rax
call fcn.100039df8
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call fcn.100039ee4
lea r8, [rsp + 0x60]
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, rdi
mov rsi, rax
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
jmp 0x10004c4b0
mov r9, rsi
jmp 0x10004c491
xor r9d, r9d
lea r8, [rsp + 0x60]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rsi, rax
cmp rsi, 0x20
seta bl
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret