Function at 0x140001940
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
cmp dword [rcx], 1
mov rsi, rcx
jne 0x14000195c
call fcn.140003330
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea r9, [0x140001590]
lea r8, str.all_databases
call fcn.140024a80
test eax, eax
je 0x14000197c
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, dword [0x140374b34]
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rdi
mov edi, 1
lea ebp, [rdi + 2]
cmp ecx, 2
jne 0x1400019d6
cmp dword [0x140374b30], ebx
jne 0x140001ac0
cmp byte [section..data], bl
jne 0x140001ac0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error:_Nothing_to_repair_when_both___process_tablesNO_and___process_viewsNO_n
call fcn.140001540
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
test ecx, ecx
jne 0x140001a79
mov rcx, qword [0x14037d5b0]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], bl
jne 0x1400019f0
cmp rax, 6
jb 0x140001a71
lea rdx, [rcx + rax]
mov rcx, rbx
lea r8, str.repair
nop dword [rax]
movzx eax, byte [r8 + rcx]
inc rcx
cmp al, byte [rdx + rcx - 7]
jne 0x140001a2b
cmp rcx, 7
jne 0x140001a10
mov ecx, 2
jmp 0x140001a73
mov rcx, rbx
lea r8, str.analyze
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
cmp al, byte [rdx + rcx - 8]
jne 0x140001a58
cmp rcx, 8
jne 0x140001a40
mov ecx, ebp
jmp 0x140001a73
add rdx, 0xfffffffffffffff8
lea rcx, str.optimize
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov ecx, 4
test eax, eax
je 0x140001a73
mov ecx, edi
mov dword [0x140374b34], ecx
cmp dword [0x140374b30], ebx
je 0x140001ac0
lea eax, [rcx - 1]
cmp eax, edi
jbe 0x140001ac0
movsxd rbx, ecx
lea rsi, [0x1401bb008]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rsi + rbx*8]
lea rdx, str.Error:__s_doesnt_support__s_for_views._n
mov r8, qword [0x14037d5b0]
mov rcx, rax
call fcn.140001540
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [0x140374b08]
lea rdx, str.auto
test rcx, rcx
jne 0x140001b00
cmp byte [0x140374af0], bl
jne 0x140001aef
cmp byte [0x140374aef], bl
jne 0x140001aef
mov rcx, rdx
mov qword [0x140374b08], rdx
jmp 0x140001b00
lea rcx, str.utf8
mov qword [0x140374b08], rcx
nop dword [rax]
movzx eax, byte [rcx + rbx]
inc rbx
cmp al, byte [rdx + rbx - 1]
jne 0x140001b22
cmp rbx, 5
jne 0x140001b00
call fcn.140020de0
mov rcx, rax
mov qword [0x140374b08], rax
mov edx, 0x20
lea r8d, [rdx - 0x10]
call fcn.140020390
test rax, rax
jne 0x140001b4f
mov rdx, qword [0x140374b08]
lea rcx, str.Unsupported_character_set:__s_n
call fcn.140002910
mov eax, edi
jmp 0x140001be7
mov ecx, dword [rsi]
movzx eax, byte [0x140374aa2]
test ecx, ecx
jle 0x140001b83
test al, al
je 0x140001b83
lea rcx, str.You_should_give_only_options__no_arguments_at_all__with_option_n
call fcn.140002910
mov rdx, qword [0x14037d5b0]
lea rcx, str.__all_databases._Please_see__s___help_for_more_information._n
call fcn.140002910
mov eax, edi
jmp 0x140001be7
cmp ecx, edi
jge 0x140001bae
test al, al
jne 0x140001bae
mov rdx, qword [0x14037d5b0]
lea rcx, str.You_forgot_to_give_the_arguments__Please_see__s___help_n
call fcn.140002910
lea rcx, str.for_more_information._n
call fcn.140002910
mov eax, edi
jmp 0x140001be7
cmp byte [0x140374ffa], 0
je 0x140001bc5
xor ecx, ecx
call fcn.140022420
mov qword [0x140375008], rax
cmp byte [0x140374aed], 0
mov eax, dword [0x140375000]
cmovne eax, ebp
cmp byte [0x140374aee], 0
cmovne eax, edi
mov dword [0x140375000], eax
xor eax, eax
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret