Function at 0x14004191c
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x140075078]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rbx, rcx
lea rcx, [0x14008238d]
call fcn.14004ea38
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rbp - 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor esi, esi
test eax, eax
je 0x140041c23
cmp eax, 0x104
je 0x140041c23
lea r12d, [rsi + 7]
mov qword [rsp + 0x68], rsi
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x70], r12
mov word [rsp + 0x58], si
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov r8, rax
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x58]
call fcn.140003c60
lea rdi, [0x14005b478]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
cmp qword [rsp + 0x70], 8
lea r10, [rsp + 0x58]
mov cl, byte [rsp + 0x30]
mov r9, rdi
cmovae r10, qword [rsp + 0x58]
or r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x68]
mov byte [rsp + 0x28], cl
mov rcx, r10
mov qword [rsp + 0x20], rax
call fcn.14004177c
cmp qword [rsp + 0x68], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x48], rsi
cmovb rax, qword [rsp + 0x68]
cmp qword [rsp + 0x70], 8
mov r8, rax
mov qword [rsp + 0x50], r12
cmovae rdx, qword [rsp + 0x58]
mov word [rsp + 0x38], si
call fcn.140003c60
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
cmp qword [rsp + 0x50], 8
lea r10, [rsp + 0x38]
mov cl, byte [rsp + 0x30]
mov r9, rdi
cmovae r10, qword [rsp + 0x38]
or r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x48]
mov byte [rsp + 0x28], cl
mov rcx, r10
mov qword [rsp + 0x20], rax
call fcn.14004177c
cmp qword [rsp + 0x48], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
mov qword [rbp - 0x78], rsi
cmovb rax, qword [rsp + 0x48]
cmp qword [rsp + 0x50], 8
mov r8, rax
mov qword [rbp - 0x70], r12
cmovae rdx, qword [rsp + 0x38]
mov word [rsp + 0x78], si
call fcn.140003c60
cmp qword [rbp - 0x70], 8
lea rcx, [rsp + 0x78]
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
call fcn.1400058f8
test al, al
je 0x140041ae0
call fcn.14000591c
neg al
sbb ecx, ecx
add ecx, 2
jmp 0x140041b34
xor edx, edx
lea rcx, [rbp + 0x1b0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x1b0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
cmp eax, 0x102
ja 0x140041b39
lea rdx, str.Reader
lea rcx, [rbp + 0x1b0]
call sub.VCRUNTIME140.dll_wcsstr
mov ecx, 1
test rax, rax
jne 0x140041b34
mov ecx, 2
call fcn.14001bc98
mov rdx, rdi
mov rcx, rbx
call fcn.14003f06c
mov rdx, qword [rbp - 0x70]
mov ebx, eax
mov edi, 0x1000
cmp rdx, 8
jb 0x140041b88
mov rcx, qword [rsp + 0x78]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, rdi
jb 0x140041b83
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041c13
call fcn.14004e6b4
mov rdx, qword [rsp + 0x50]
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], r12
mov word [rsp + 0x78], si
cmp rdx, 8
jb 0x140041bcf
mov rcx, qword [rsp + 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, rdi
jb 0x140041bca
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041c13
call fcn.14004e6b4
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r12
mov word [rsp + 0x38], si
cmp rdx, 8
jb 0x140041c1f
mov rcx, qword [rsp + 0x58]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, rdi
jb 0x140041c1a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041c1a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004e6b4
mov eax, ebx
jmp 0x140041c26
or eax, 0xffffffff
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.14004eb00
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret