Function at 0x140001970
Capabilities:
Terminate process

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xffa0]
mov eax, 0x100a0
call fcn.14000c8e0
sub rsp, rax
mov rax, qword [0x1400130a0]
xor rax, rsp
mov qword [rbp + 0xff90], rax
mov dword [rsp + 0x38], ecx
xor r8d, r8d
mov qword [rsp + 0x40], rdx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x40]
call fcn.140002820
lea rcx, [0x140002a60]
call fcn.14000c830
xor eax, eax
lea rcx, [0x140013130]
xor edx, edx
mov qword [0x1400130e0], rax
mov r8d, 0x2028
mov qword [0x1400130e8], rax
mov qword [0x1400130f0], rax
mov qword [0x1400130f8], rax
mov qword [0x140013100], rax
mov qword [0x140013108], rax
mov qword [0x140013110], rax
mov qword [0x140013118], rax
mov qword [0x140013120], rax
call sub.VCRUNTIME140.dll_memset
xor edi, edi
lea rcx, [0x140015140]
xor r9d, r9d
mov dword [0x140015148], edi
xor r8d, r8d
xor edx, edx
call fcn.1400037c0
mov r9, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov r8d, dword [rsp + 0x38]
mov rdx, qword [0x140015140]
call fcn.140009e30
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x30]
lea rdx, str.lL:p:fDtven:
call fcn.140009c60
or rsi, 0xffffffffffffffff
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x140001b61
mov qword [rsp + 0x100d0], rbx
lea rbx, [0x140000000]
nop word [rax + rax]
movsx eax, byte [rsp + 0x30]
add eax, 0xffffffbc
cmp eax, 0x32
ja case.0x140001ab5.77
cdqe
movzx eax, byte [rbx + rax + 0x1f90]
mov ecx, dword [rbx + rax*4 + 0x1f68]
add rcx, rbx
jmp rcx
mov dword [0x1400130ec], 1
jmp case.0x140001ab5.77
mov rax, qword [rsp + 0x58]
mov qword [0x140013110], rax
jmp case.0x140001ab5.77
mov rax, qword [rsp + 0x58]
mov qword [0x140013118], rax
jmp case.0x140001ab5.77
mov dword [0x1400130f4], 1
jmp case.0x140001ab5.77
mov dword [0x140013124], 1
jmp case.0x140001ab5.77
mov dword [0x140013108], 1
jmp case.0x140001ab5.77
mov dword [0x1400130f8], 1
jmp case.0x140001ab5.77
mov dword [0x1400130fc], 1
jmp case.0x140001ab5.77
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x140013120], eax
mov dword [0x140015154], esi
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x30]
lea rdx, str.lL:p:fDtven:
call fcn.140009c60
mov dword [rsp + 0x34], eax
test eax, eax
je 0x140001a90
mov rbx, qword [rsp + 0x100d0]
cmp eax, 0x1117e
jne 0x140001f1d
mov r9, qword [rsp + 0x48]
mov eax, dword [rsp + 0x38]
movsxd rdx, dword [r9 + 0x18]
sub eax, edx
sub eax, 2
cmp eax, 2
ja 0x140001f53
mov rax, qword [rsp + 0x40]
lea rcx, [0x140013100]
mov r8, qword [rax + rdx*8]
lea eax, [rdx + 1]
mov dword [r9 + 0x18], eax
lea rdx, [0x14000f116]
mov rax, qword [0x140015140]
mov r9d, 0x20
mov qword [rsp + 0x20], rax
call fcn.140006260
mov dword [rsp + 0x34], eax
test eax, eax
je 0x140001bcf
cmp eax, 0x4e39
jne 0x140001f2d
mov rax, qword [rsp + 0x48]
mov edx, dword [rsp + 0x38]
add rax, 0x18
cmp dword [rax], edx
jge 0x140001c26
movsxd rcx, dword [rax]
mov r8d, edi
lea eax, [rdx - 1]
mov rdx, qword [rsp + 0x40]
cmp ecx, eax
setge r8b
mov rdx, qword [rdx + rcx*8]
lea rcx, [0x1400130e0]
call fcn.140001810
test rax, rax
jne 0x140001f42
mov rax, qword [rsp + 0x48]
inc dword [rax + 0x18]
mov rax, qword [rsp + 0x48]
mov edx, dword [rsp + 0x38]
add rax, 0x18
cmp dword [rax], edx
jl 0x140001be0
mov rcx, qword [0x140013100]
mov edx, 0x25
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
mov edx, edi
mov eax, dword [0x140013120]
setne dl
mov dword [0x1400130f0], edx
test edx, edx
je 0x140001c7a
test eax, eax
jle 0x140001c7a
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Cannot_use__n_with____in_filename_n
call fcn.140001720
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x140015154], 0xffffffff
jne 0x140001cae
cmp eax, 1
jge 0x140001cae
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Invalid__n_argument_n
call fcn.140001720
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [0x140015140]
lea rcx, [rsp + 0x78]
call fcn.140007720
test eax, eax
je 0x140001ce9
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Unable_to_open_stdin_n
call fcn.140001720
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [0x140015140]
lea rcx, [rbp - 0x80]
call fcn.140007780
test eax, eax
je 0x140001d23
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Unable_to_open_stdout_n
call fcn.140001720
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x1400130f8], edi
je 0x140001d37
lea rcx, [0x1400130e0]
call fcn.140001570
cmp dword [0x1400130f4], edi
je 0x140001d52
lea rdx, [0x140013130]
lea rcx, [0x1400130e0]
call fcn.140001110
mov rcx, qword [rsp + 0x78]
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x50], 0x10000
call fcn.140007eb0
mov dword [rsp + 0x34], eax
cmp eax, 0x1117e
je 0x140001ecf
nop dword [rax]
test eax, eax
jne 0x140001f11
lea rdx, [0x140013130]
lea rcx, [0x1400130e0]
call fcn.140001010
cmp dword [0x140015148], edi
je 0x140001db6
lea rdx, [0x140013130]
lea rcx, [0x1400130e0]
call fcn.140001110
mov r8, qword [rsp + 0x50]
lea r9, [rsp + 0x68]
mov rcx, qword [0x140013138]
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x68], r8
call fcn.1400086d0
mov r8, qword [rsp + 0x50]
mov dword [rsp + 0x34], eax
cmp qword [rsp + 0x68], r8
je 0x140001e80
mov rcx, qword [0x140013138]
lea r8, [rsp + 0x60]
mov edx, 1
mov qword [rsp + 0x60], rdi
call fcn.140008740
mov rcx, qword [rsp + 0x60]
test eax, eax
mov rdx, qword [0x140015140]
cmovne rcx, rsi
inc dword [0x140015150]
mov qword [rsp + 0x60], rcx
xor r9d, r9d
lea rcx, [rsp + 0x70]
xor r8d, r8d
call fcn.1400037c0
mov r9, qword [rsp + 0x60]
lea rax, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
lea rdx, str.Error__d_writing_to_log_file_at_offset__I64d.__10d_messages_lost___pm__n
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov eax, dword [0x140015150]
mov dword [rsp + 0x20], eax
call fcn.140003b80
mov rdx, rax
lea rcx, [0x140013130]
call fcn.140002250
mov rcx, qword [rsp + 0x70]
call fcn.1400038f0
mov r8, qword [rsp + 0x50]
jmp 0x140001e86
inc dword [0x140015150]
cmp dword [0x1400130fc], edi
je 0x140001ea4
mov rcx, qword [rbp - 0x80]
lea r9, [rsp + 0x68]
lea rdx, [rbp - 0x70]
call fcn.1400086d0
test eax, eax
jne 0x140001eeb
mov rcx, qword [rsp + 0x78]
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x50], 0x10000
call fcn.140007eb0
mov dword [rsp + 0x34], eax
cmp eax, 0x1117e
jne 0x140001d80
xor eax, eax
mov rcx, qword [rbp + 0xff90]
xor rcx, rsp
call fcn.14000c950
add rsp, 0x100a0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Unable_to_write_to_stdout_n
call fcn.140001720
mov ecx, 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [rcx]
call fcn.140002310
int3
mov rcx, qword [rsp + 0x40]
lea rdx, str.Invalid_filename_given
mov rcx, qword [rcx]
call fcn.140002310
int3
mov rcx, qword [rsp + 0x40]
mov rdx, rax
mov rcx, qword [rcx]
call fcn.140002310
int3
mov rcx, qword [rsp + 0x40]
lea rdx, str.Incorrect_number_of_arguments
mov rcx, qword [rcx]
call fcn.140002310
int3