Function at 0x140042440
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov qword [rsp + 0x108], 0xfffffffffffffffe
mov qword [rsp + 0x188], rbx
mov rdi, rdx
mov r15, rcx
lea rax, vtable.CommandLineArgs.0
mov qword [rcx], rax
lea r13, [rcx + 8]
mov ecx, 8
call fcn.1400797fc
xor ebp, ebp
test rax, rax
je 0x140042495
mov qword [rax], r13
jmp 0x140042498
mov rax, rbp
mov qword [r13], rax
mov qword [r13 + 0x18], rbp
mov qword [r13 + 0x20], rbp
mov qword [r13 + 0x28], rbp
lea rax, vtable.WinCommandLineArgs.0
mov qword [r15], rax
lea r12, vtable.StringStorage.0
mov qword [rsp + 0x98], r12
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x1400424dd
lea rcx, [rsp + 0xa0]
mov qword [rax], rcx
jmp 0x1400424e0
mov rax, rbp
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb8], rbp
mov qword [rsp + 0xc0], rbp
mov qword [rsp + 0xc8], rbp
lea rsi, [0x1400d1b20]
test rdi, rdi
cmovne rsi, rdi
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0xa0]
call fcn.14002bfc0
mov rdx, qword [rsp + 0xc0]
mov rbx, rdx
mov rdi, qword [rsp + 0xb8]
sub rbx, rdi
sar rbx, 1
add rbx, rbx
cmp rdi, rdx
jbe 0x140042556
call fcn.1400796a8
mov rax, qword [rsp + 0xa0]
test rax, rax
jne 0x14004256d
call fcn.1400796a8
mov rdx, rbp
jmp 0x140042570
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x14004257b
call fcn.1400796a8
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.14007ad70
nop
lea rbx, vtable.UnicodeStringStorage.0
mov qword [rsp + 0xd0], rbx
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x1400425b7
lea rcx, [rsp + 0xd8]
mov qword [rax], rcx
xor esi, esi
jmp 0x1400425bc
xor esi, esi
mov rax, rsi
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xf0], rsi
mov qword [rsp + 0xf8], rsi
mov qword [rsp + 0x100], rsi
mov rdi, qword [rsp + 0xb8]
cmp rdi, qword [rsp + 0xc0]
jbe 0x1400425f3
call fcn.1400796a8
mov rax, qword [rsp + 0xa0]
test rax, rax
jne 0x14004260a
call fcn.1400796a8
mov r11, rsi
jmp 0x14004260d
mov r11, qword [rax]
cmp rdi, qword [r11 + 0x20]
jb 0x140042618
call fcn.1400796a8
mov rdx, rdi
lea rcx, [rsp + 0xd0]
mov rax, qword [rsp + 0xd0]
call qword [rax]
nop
mov qword [rsp + 0x98], r12
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x140042648
call fcn.140078e60
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xc8], rsi
mov rcx, qword [rsp + 0xa0]
call fcn.140078e60
mov r11, qword [rsp + 0xf8]
mov rax, r11
mov rdi, qword [rsp + 0xf0]
sub rax, rdi
sar rax, 1
sub rax, 1
je 0x1400429b1
cmp rdi, r11
jbe 0x14004269a
call fcn.1400796a8
mov rax, qword [rsp + 0xd8]
test rax, rax
jne 0x1400426b1
call fcn.1400796a8
mov r11, rsi
jmp 0x1400426b4
mov r11, qword [rax]
cmp rdi, qword [r11 + 0x20]
jb 0x1400426bf
call fcn.1400796a8
lea rdx, [rsp + 0x190]
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r14, rax
test rax, rax
jne 0x140042716
lea rax, vtable.Exception.0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x60]
call fcn.14002e130
nop
lea rdx, str.Invalid_command_line
lea rcx, [rsp + 0x60]
mov rax, qword [rsp + 0x60]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [0x140101ad0]
lea rcx, [rsp + 0x58]
call fcn.14007c4b0
int3
mov ebp, esi
cmp dword [rsp + 0x190], 0
jle 0x1400429a0
mov r12, rax
lea r15, vtable.StringStorage.0
mov rdi, qword [r12]
mov qword [rsp + 0x58], rbx
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x140042752
lea rcx, [rsp + 0x60]
mov qword [rax], rcx
jmp 0x140042755
mov rax, rsi
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rsi
lea rsi, [0x1400d1b20]
test rdi, rdi
cmovne rsi, rdi
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x60]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x80]
mov rbx, rdx
mov rdi, qword [rsp + 0x78]
sub rbx, rdi
sar rbx, 1
add rbx, rbx
cmp rdi, rdx
jbe 0x1400427bf
call fcn.1400796a8
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x1400427d2
call fcn.1400796a8
xor edx, edx
jmp 0x1400427d5
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x1400427e0
call fcn.1400796a8
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.14007ad70
nop
mov qword [rsp + 0x20], r15
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x14004280f
lea rcx, [rsp + 0x28]
mov qword [rax], rcx
xor esi, esi
jmp 0x140042814
xor esi, esi
mov rax, rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x28]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x48]
mov rdi, rdx
mov rbx, qword [rsp + 0x40]
sub rdi, rbx
sar rdi, 1
add rdi, rdi
cmp rbx, rdx
jbe 0x14004286b
call fcn.1400796a8
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x14004287f
call fcn.1400796a8
mov rdx, rsi
jmp 0x140042882
mov rdx, qword [rax]
cmp rbx, qword [rdx + 0x20]
jb 0x14004288d
call fcn.1400796a8
mov r8, rdi
lea rdx, [0x1400d1b20]
mov rcx, rbx
call fcn.14007ad70
nop
lea rdx, [0x1400d1b20]
lea rcx, [rsp + 0x20]
mov rax, qword [rsp + 0x20]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
cmp rdi, qword [rsp + 0x80]
jbe 0x1400428c8
call fcn.1400796a8
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x1400428dc
call fcn.1400796a8
mov rdx, rsi
jmp 0x1400428df
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x1400428ea
call fcn.1400796a8
mov rdx, rdi
lea rcx, [rsp + 0x20]
mov rax, qword [rsp + 0x20]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
sub rdx, rcx
sar rdx, 1
cmp rdx, 1
je 0x140042922
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.14003e9d0
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], r15
test rcx, rcx
je 0x140042931
call fcn.140078e60
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov rcx, qword [rsp + 0x28]
call fcn.140078e60
nop
lea rbx, vtable.UnicodeStringStorage.0
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140042966
call fcn.140078e60
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rsi
mov rcx, qword [rsp + 0x60]
call fcn.140078e60
inc ebp
add r12, 8
cmp ebp, dword [rsp + 0x190]
jl 0x140042730
mov r15, qword [rsp + 0x180]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0xf0]
mov qword [rsp + 0xd0], rbx
test rdi, rdi
je 0x1400429c6
mov rcx, rdi
call fcn.140078e60
mov qword [rsp + 0xf0], rsi
mov qword [rsp + 0xf8], rsi
mov qword [rsp + 0x100], rsi
mov rcx, qword [rsp + 0xd8]
call fcn.140078e60
nop
mov rax, r15
mov rbx, qword [rsp + 0x188]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret