Function at 0x14002a870
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x410], xmm6
mov qword [rbp + 0x408], 0xfffffffffffffffe
mov r15, rcx
call qword [sym.imp.kernel32.dll_GetCommandLineW]
mov qword [rbp + 0x3d8], 8
xorps xmm6, xmm6
movups xmmword [rbp + 0x3e0], xmm6
test rax, rax
mov qword [rbp + 0x3b8], r15
je 0x14002af06
mov rdi, rax
movzx ebx, word [rax]
test bx, bx
je 0x14002af06
mov qword [rbp + 0x3c0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3c8], xmm0
mov eax, 2
xor r8d, r8d
lea r14, [rbp + 0x3c0]
xor esi, esi
test bx, bx
jne 0x14002a928
jmp 0x14002a984
mov word [rax + r8*2], bx
add r8, 1
mov qword [rbp + 0x3d0], r8
movzx ebx, word [rdi]
test bx, bx
je 0x14002a984
add rdi, 2
cmp bx, 9
je 0x14002a950
cmp bx, 0x20
je 0x14002a950
cmp bx, 0x22
jne 0x14002a956
not sil
and sil, 1
movzx ebx, word [rdi]
test bx, bx
jne 0x14002a928
jmp 0x14002a984
test sil, 1
je 0x14002a984
cmp r8, qword [rbp + 0x3c8]
jne 0x14002a910
mov rcx, r14
mov rdx, r8
call fcn.140028740
mov rax, qword [rbp + 0x3c0]
mov r8, qword [rbp + 0x3d0]
jmp 0x14002a910
add rdi, 2
movzx eax, word [rdi]
cmp ax, 0x20
je 0x14002a980
cmp ax, 9
je 0x14002a980
mov r13, qword [rbp + 0x3c0]
lea rcx, [rbp - 0x60]
mov rdx, r13
call fcn.140026d00
mov rdx, qword [rbp + 0x3e8]
cmp rdx, qword [rbp + 0x3e0]
jne 0x14002a9c9
lea rcx, [rbp + 0x3d8]
call fcn.14002b490
mov rdx, qword [rbp + 0x3e8]
mov rax, qword [rbp + 0x3d8]
lea rcx, [rdx + rdx*2]
mov rbx, qword [rbp - 0x50]
mov qword [rax + rcx*8 + 0x10], rbx
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rax + rcx*8], xmm0
add rdx, 1
mov qword [rbp + 0x3e8], rdx
mov qword [rbp + 0x3f0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f8], xmm0
mov r15d, 2
xor r8d, r8d
movaps xmm6, xmmword [str._]
xor esi, esi
movzx ebx, word [rdi]
lea rcx, [rdi + 2]
add rdi, 4
mov rax, rdi
mov rdi, rcx
test bx, bx
je 0x14002b126
cmp bx, 0x22
jne 0x14002aab0
test sil, sil
je 0x14002ab60
movzx ebx, word [rdi]
test bx, bx
je 0x14002b14e
add rdi, 2
add rax, 2
xor esi, esi
cmp bx, 0x22
jne 0x14002aa28
cmp r8, qword [rbp + 0x3f8]
jne 0x14002aa7b
lea rcx, [rbp + 0x3f0]
mov rdx, r8
call fcn.140028740
mov r8, qword [rbp + 0x400]
mov r15, qword [rbp + 0x3f0]
mov word [r15 + r8*2], 0x22
add r8, 1
mov qword [rbp + 0x400], r8
cmp word [rdi - 2], 0
lea rax, [rdi - 2]
cmove rdi, rax
mov sil, 1
movzx ebx, word [rdi]
jmp 0x14002aa1a
cmp bx, 9
je 0x14002aaca
cmp bx, 0x5c
je 0x14002aba9
cmp bx, 0x20
jne 0x14002ab6b
test sil, sil
jne 0x14002ab6b
mov r15, qword [rbp + 0x3f0]
lea rcx, [rbp - 0x60]
mov rdx, r15
call fcn.140026d00
mov rdx, qword [rbp + 0x3e8]
cmp rdx, qword [rbp + 0x3e0]
jne 0x14002ab09
lea rcx, [rbp + 0x3d8]
call fcn.14002b490
mov rdx, qword [rbp + 0x3e8]
mov rax, qword [rbp + 0x3d8]
lea rcx, [rdx + rdx*2]
mov rbx, qword [rbp - 0x50]
mov qword [rax + rcx*8 + 0x10], rbx
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rax + rcx*8], xmm0
add rdx, 1
mov qword [rbp + 0x3e8], rdx
mov qword [rbp + 0x400], 0
jmp 0x14002ab44
add rdi, 2
movzx ebx, word [rdi]
cmp bx, 0x20
je 0x14002ab40
cmp bx, 9
je 0x14002ab40
xor r8d, r8d
jmp 0x14002aa1a
mov sil, 1
movzx ebx, word [rdi]
jmp 0x14002aa1a
cmp r8, qword [rbp + 0x3f8]
jne 0x14002ab8a
lea rcx, [rbp + 0x3f0]
mov rdx, r8
call fcn.140028740
mov r8, qword [rbp + 0x400]
mov r15, qword [rbp + 0x3f0]
mov word [r15 + r8*2], bx
add r8, 1
mov qword [rbp + 0x400], r8
movzx ebx, word [rdi]
jmp 0x14002aa1a
movzx ecx, word [rdi]
xor r12d, r12d
cmp cx, 0x5c
jne 0x14002abd8
nop word cs:[rax + rax]
nop
add r12, 1
movzx ecx, word [rax]
add rax, 2
cmp cx, 0x5c
je 0x14002abc0
add rax, 0xfffffffffffffffe
mov rdi, rax
add r12, 1
cmp cx, 0x22
jne 0x14002ac19
mov r14, r12
shr r14, 1
mov rax, qword [rbp + 0x3f8]
sub rax, r8
cmp rax, r14
jae 0x14002ac4a
lea rcx, [rbp + 0x3f0]
mov rdx, r8
mov r8, r14
call fcn.140043780
mov r15, qword [rbp + 0x3f0]
mov r8, qword [rbp + 0x400]
jmp 0x14002ac5b
mov rax, qword [rbp + 0x3f8]
sub rax, r8
cmp rax, r12
jae 0x14002ac6d
lea rcx, [rbp + 0x3f0]
mov rdx, r8
mov r8, r12
call fcn.140043780
mov r15, qword [rbp + 0x3f0]
mov r8, qword [rbp + 0x400]
jmp 0x14002ac76
mov r15, qword [rbp + 0x3f0]
cmp r12, 2
jb 0x14002aeb2
lea rax, [r15 + r8*2]
cmp r12, 0x20
jae 0x14002acb0
mov rcx, r14
jmp 0x14002ae91
test r12, r12
je 0x14002adc2
lea rax, [r15 + r8*2]
cmp r12, 0x10
jae 0x14002ac88
mov rcx, r12
jmp 0x14002ada1
mov r9, r12
and r9, 0xfffffffffffffff0
lea rcx, [r9 - 0x10]
mov rdx, rcx
shr rdx, 4
add rdx, 1
mov ebx, edx
and ebx, 7
cmp rcx, 0x70
jae 0x14002acdc
xor ecx, ecx
jmp 0x14002ad61
mov r9, r14
and r9, 0xfffffffffffffff0
lea rcx, [r9 - 0x10]
mov rdx, rcx
shr rdx, 4
add rdx, 1
mov ebx, edx
and ebx, 7
cmp rcx, 0x70
jae 0x14002add1
xor ecx, ecx
jmp 0x14002ae51
and rdx, 0xfffffffffffffff8
xor ecx, ecx
nop word cs:[rax + rax]
nop dword [rax]
movups xmmword [rax + rcx*2], xmm6
movups xmmword [rax + rcx*2 + 0x10], xmm6
movups xmmword [rax + rcx*2 + 0x20], xmm6
movups xmmword [rax + rcx*2 + 0x30], xmm6
movups xmmword [rax + rcx*2 + 0x40], xmm6
movups xmmword [rax + rcx*2 + 0x50], xmm6
movups xmmword [rax + rcx*2 + 0x60], xmm6
movups xmmword [rax + rcx*2 + 0x70], xmm6
movups xmmword [rax + rcx*2 + 0x80], xmm6
movups xmmword [rax + rcx*2 + 0x90], xmm6
movups xmmword [rax + rcx*2 + 0xa0], xmm6
movups xmmword [rax + rcx*2 + 0xb0], xmm6
movups xmmword [rax + rcx*2 + 0xc0], xmm6
movups xmmword [rax + rcx*2 + 0xd0], xmm6
movups xmmword [rax + rcx*2 + 0xe0], xmm6
movups xmmword [rax + rcx*2 + 0xf0], xmm6
sub rcx, 0xffffffffffffff80
add rdx, 0xfffffffffffffff8
jne 0x14002acf0
test rbx, rbx
je 0x14002ad92
lea rcx, [rax + rcx*2]
add rcx, 0x10
shl rbx, 5
xor edx, edx
nop word cs:[rax + rax]
nop
movups xmmword [rcx + rdx - 0x10], xmm6
movups xmmword [rcx + rdx], xmm6
add rdx, 0x20
cmp rbx, rdx
jne 0x14002ad80
cmp r12, r9
je 0x14002adbf
mov ecx, r12d
and ecx, 0xf
lea rax, [rax + r9*2]
xor edx, edx
nop word cs:[rax + rax]
nop dword [rax]
mov word [rax + rdx*2], 0x5c
add rdx, 1
cmp rcx, rdx
jne 0x14002adb0
add r8, r12
mov qword [rbp + 0x400], r8
movzx ebx, word [rdi]
jmp 0x14002aa1a
and rdx, 0xfffffffffffffff8
xor ecx, ecx
nop word [rax + rax]
movups xmmword [rax + rcx*2], xmm6
movups xmmword [rax + rcx*2 + 0x10], xmm6
movups xmmword [rax + rcx*2 + 0x20], xmm6
movups xmmword [rax + rcx*2 + 0x30], xmm6
movups xmmword [rax + rcx*2 + 0x40], xmm6
movups xmmword [rax + rcx*2 + 0x50], xmm6
movups xmmword [rax + rcx*2 + 0x60], xmm6
movups xmmword [rax + rcx*2 + 0x70], xmm6
movups xmmword [rax + rcx*2 + 0x80], xmm6
movups xmmword [rax + rcx*2 + 0x90], xmm6
movups xmmword [rax + rcx*2 + 0xa0], xmm6
movups xmmword [rax + rcx*2 + 0xb0], xmm6
movups xmmword [rax + rcx*2 + 0xc0], xmm6
movups xmmword [rax + rcx*2 + 0xd0], xmm6
movups xmmword [rax + rcx*2 + 0xe0], xmm6
movups xmmword [rax + rcx*2 + 0xf0], xmm6
sub rcx, 0xffffffffffffff80
add rdx, 0xfffffffffffffff8
jne 0x14002ade0
test rbx, rbx
je 0x14002ae82
lea rcx, [rax + rcx*2]
add rcx, 0x10
shl rbx, 5
xor edx, edx
nop word cs:[rax + rax]
nop
movups xmmword [rcx + rdx - 0x10], xmm6
movups xmmword [rcx + rdx], xmm6
add rdx, 0x20
cmp rbx, rdx
jne 0x14002ae70
cmp r14, r9
je 0x14002aeaf
mov ecx, r14d
and ecx, 0xf
lea rax, [rax + r9*2]
xor edx, edx
nop word cs:[rax + rax]
nop dword [rax]
mov word [rax + rdx*2], 0x5c
add rdx, 1
cmp rcx, rdx
jne 0x14002aea0
add r8, r14
mov qword [rbp + 0x400], r8
test r12b, 1
je 0x14002aa17
xor ebx, ebx
cmp word [rdi], 0
setne r14b
cmp r8, qword [rbp + 0x3f8]
jne 0x14002aef3
lea rcx, [rbp + 0x3f0]
mov rdx, r8
call fcn.140028740
mov r15, qword [rbp + 0x3f0]
mov r8, qword [rbp + 0x400]
mov bl, r14b
lea rdi, [rdi + rbx*2]
mov word [r15 + r8*2], 0x22
jmp 0x14002ab96
xor ebx, ebx
lea rcx, [rbp - 0x60]
mov r8d, 0x400
xor edx, edx
call fcn.140035e60
mov qword [rbp + 0x3c0], 2
movups xmmword [rbp + 0x3c8], xmm6
mov esi, 0x200
mov r13d, 2
cmp rsi, 0x201
jae 0x14002af62
jmp 0x14002afb0
mov rsi, r8
jae 0x14002b010
cmp rsi, 0x201
jb 0x14002afb0
mov r8, rsi
sub r8, rbx
mov rax, qword [rbp + 0x3c8]
sub rax, rbx
cmp rax, r8
jae 0x14002af8d
lea rcx, [rbp + 0x3c0]
mov rdx, rbx
call fcn.140043780
mov r13, qword [rbp + 0x3c0]
mov qword [rbp + 0x3d0], rsi
mov rbx, rsi
mov r14, r13
mov r15, rsi
mov r12, r13
jmp 0x14002afbd
lea r12, [rbp - 0x60]
mov r14, r12
mov r15d, 0x200
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
xor ecx, ecx
mov rdx, r12
mov r8d, esi
call qword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov edi, eax
test eax, eax
jne 0x14002afe3
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14002b041
mov r8d, edi
cmp rsi, r8
jne 0x14002af50
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002b21d
add rsi, rsi
cmp rsi, 0x201
jae 0x14002af62
jmp 0x14002afb0
cmp r15, r8
jb 0x14002b237
lea rcx, [rbp + 0x3f0]
mov rdx, r14
call fcn.140026d00
mov rsi, qword [rbp + 0x3f0]
movups xmm0, xmmword [rbp + 0x3f8]
movaps xmmword [rbp + 0x3a0], xmm0
mov bl, 1
jmp 0x14002b053
call qword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
xor ebx, ebx
mov rax, qword [rbp + 0x3c8]
test rax, rax
mov rdi, qword [rbp + 0x3b8]
je 0x14002b081
test r13, r13
je 0x14002b081
add rax, rax
je 0x14002b081
mov rcx, qword [0x14005fc80]
xor edx, edx
mov r8, r13
call sub.kernel32.dll_HeapFree
test bl, bl
je 0x14002b096
movaps xmm0, xmmword [rbp + 0x3a0]
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x60], rsi
jmp 0x14002b0b8
mov qword [rbp + 0x3f0], rsi
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x60], 1
lea rcx, [rbp + 0x3f0]
call fcn.140024520
lea rcx, [rbp + 0x3d8]
xor edx, edx
call fcn.14002b490
mov rbx, qword [rbp + 0x3d8]
mov rsi, qword [rbp + 0x3e8]
lea rax, [rsi + rsi*2]
mov rcx, qword [rbp - 0x50]
mov qword [rbx + rax*8 + 0x10], rcx
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rbx + rax*8], xmm0
add rsi, 1
mov r15, qword [rbp + 0x3e0]
lea rax, [rsi + rsi*2]
lea rax, [rbx + rax*8]
mov qword [rdi], rbx
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rax
movaps xmm6, xmmword [rbp + 0x410]
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
test r8, r8
jne 0x14002b14e
test sil, sil
jne 0x14002b14e
mov r14, qword [rbp + 0x3f0]
mov rbx, qword [rbp + 0x3d8]
mov rsi, qword [rbp + 0x3e8]
mov rdi, qword [rbp + 0x3b8]
jmp 0x14002b1b7
mov r14, qword [rbp + 0x3f0]
lea rcx, [rbp - 0x60]
mov rdx, r14
call fcn.140026d00
mov rsi, qword [rbp + 0x3e8]
cmp rsi, qword [rbp + 0x3e0]
jne 0x14002b190
lea rcx, [rbp + 0x3d8]
mov rdx, rsi
call fcn.14002b490
mov rdi, qword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e8]
jmp 0x14002b197
mov rdi, qword [rbp + 0x3b8]
mov rbx, qword [rbp + 0x3d8]
lea rax, [rsi + rsi*2]
mov rcx, qword [rbp - 0x50]
mov qword [rbx + rax*8 + 0x10], rcx
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rbx + rax*8], xmm0
add rsi, 1
mov r15, qword [rbp + 0x3e0]
mov rax, qword [rbp + 0x3f8]
test rax, rax
je 0x14002b1e5
test r14, r14
je 0x14002b1e5
add rax, rax
je 0x14002b1e5
mov rcx, qword [0x14005fc80]
xor edx, edx
mov r8, r14
call sub.kernel32.dll_HeapFree
mov rax, qword [rbp + 0x3c8]
test rax, rax
je 0x14002b0f4
test r13, r13
je 0x14002b0f4
add rax, rax
je 0x14002b0f4
mov rcx, qword [0x14005fc80]
xor edx, edx
mov r8, r13
call sub.kernel32.dll_HeapFree
jmp 0x14002b0f4
lea rcx, str.internal_error:_entered_unreachable_codeassertion_failed:_self.is_char_boundary_new_len_x
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140042340
jmp 0x14002b242
mov rcx, r8
mov rdx, r15
call fcn.140042330
ud2