Function at 0x140001500
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov rax, qword [rdx]
mov qword [0x140bbd470], rax
call fcn.140053020
lea rax, [0x14009bb80]
mov dword [0x140bbd950], 1
lea r9, [rsp + 0x78]
mov qword [0x140bc3240], rax
lea r8, [rsp + 0x70]
lea rdx, str.aria_read_log
lea rcx, [0x14009bb84]
call fcn.1400546b0
test eax, eax
je 0x14000157b
xor ecx, ecx
cmp eax, 4
je 0x14000156d
call fcn.140052ed0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140052ed0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x88], rbx
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x60], rbp
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x78]
mov qword [rsp + 0x50], rdi
call fcn.1400013f0
mov byte [0x140bb4a66], 1
call fcn.140001c80
test eax, eax
je 0x1400015d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Cant_init_Aria_engine___d__n
jmp 0x140001977
xor ebp, ebp
cmp byte [0x1403b3e85], bpl
mov dword [0x1401fc8a8], ebp
je 0x1400015f9
call fcn.14000fdd0
test al, al
jne 0x140001982
jmp 0x14000192d
mov dl, 1
xor ecx, ecx
call fcn.14000f670
test eax, eax
je 0x140001626
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Cant_open_control_file___d__n
jmp 0x140001977
cmp dword [0x140bb4a60], ebp
jne 0x14000164d
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.Cant_find_any_log_n
call fcn.1400012d0
jmp 0x140001982
mov eax, dword [0x1401fc8a8]
xor r9d, r9d
mov rdx, qword [0x1403b3e98]
xor r8d, r8d
mov rcx, qword [0x1401fc808]
mov dword [rsp + 0x30], 0x10
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], eax
call fcn.1400034f0
test rax, rax
jne 0x1400016a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Got_error_in_init_pagecache____errno:__d__n
jmp 0x140001977
mov edx, dword [0x1403b3e90]
xor r9d, r9d
mov rcx, qword [0x1401fc890]
xor r8d, r8d
mov dword [rsp + 0x30], 0x10
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 0x2000
call fcn.1400034f0
test rax, rax
je 0x14000195c
mov rcx, qword [0x140bc3240]
lea rax, [0x14000c2d0]
mov byte [rsp + 0x40], bpl
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
movzx eax, byte [0x1403b3e80]
mov edx, 0x40000000
mov byte [rsp + 0x30], al
mov rax, qword [0x1401fc890]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call fcn.1400094e0
test al, al
jne 0x14000195c
cmp byte [0x1403b3e80], bpl
je 0x140001736
lea rcx, str.You_are_using___display_only__NOTHING_will_be_written_to_disk_n
call fcn.140001a30
call fcn.140007a80
mov rdi, rax
cmp rax, 1
jne 0x140001761
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Opening_transaction_log_failed_n
call fcn.1400012d0
jmp 0x14000192d
test rdi, rdi
jne 0x14000177e
lea ecx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.The_transaction_log_is_empty_n
call fcn.1400012d0
cmp qword [0x1403b3eb0], rbp
je 0x1400017b6
cmp qword [0x1403b3ea0], rbp
jne 0x1400017b6
mov rbx, qword [0x140bb4a58]
test rbx, rbx
je 0x1400017b6
mov ecx, 1
mov rdi, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Starting_from_checkpoint___u_0x_x__n
mov rcx, rbx
jmp 0x1400017ce
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.The_transaction_log_starts_from_lsn___u_0x_x__n
mov rcx, rdi
mov rbx, rdi
sar rcx, 0x20
mov r9d, ebx
mov r8d, ecx
mov rcx, rax
call fcn.1400012d0
mov rax, qword [0x1403b3ea0]
test rax, rax
je 0x14000183f
cmp rax, rdi
jae 0x140001815
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.start_from_lsn_is_too_small._Aborting_n
call fcn.1400012d0
call fcn.140001b90
jmp 0x140001982
mov rbx, rax
mov ecx, 1
sar rbx, 0x20
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, edi
lea rdx, str.Starting_reading_log_from_lsn___u_0x_x__n
mov rcx, rax
mov r8d, ebx
call fcn.1400012d0
movzx eax, byte [0x1403b3e82]
mov ecx, 1
cmp qword [0x1403b3ea8], rbp
cmovne eax, ebp
mov byte [0x1403b3e82], al
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.TRACE_of_the_last_aria_read_log_n
call fcn.1400012d0
cmp byte [0x1403b3e83], bpl
je 0x14000187e
mov r9, rbp
jmp 0x14000188c
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
cmp byte [0x1403b3e81], bpl
mov r8d, ebp
jne 0x1400018a6
cmp byte [0x1403b3e84], bpl
setne r8b
inc r8d
mov rdx, qword [0x1403b3ea8]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rcx, rdi
movzx eax, byte [0x1403b3e82]
mov byte [rsp + 0x30], bpl
mov byte [rsp + 0x28], bpl
mov byte [rsp + 0x20], al
call fcn.140013ee0
test eax, eax
jne 0x140001982
lea ecx, [rax + 1]
cmp dword [rsp + 0x80], ebp
jne 0x140001909
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140bbd478]
lea rdx, str._s:_SUCCESS_n
mov rcx, rax
call fcn.1400012d0
jmp 0x14000192d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [rsp + 0x80]
lea rdx, str._s:_DOUBTFUL___u_warnings__check_previous_output__n
mov r8, qword [0x140bbd478]
mov rcx, rax
call fcn.1400012d0
call fcn.140001b90
lea rcx, [0x1403b3ec0]
call fcn.1400534a0
mov rcx, rsi
call fcn.1400541f0
xor ecx, ecx
call fcn.140052ed0
xor ecx, ecx
mov dword [0x140bbd950], ebp
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Cant_init_loghandler___d__n
mov r8d, dword [rbx]
mov rcx, rax
call fcn.1400012d0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140bbd478]
lea rdx, str._s:_FAILED_n
mov rcx, rax
call fcn.1400012d0
lea rcx, [0x1403b3ec0]
call fcn.1400534a0
mov rcx, rsi
call fcn.1400541f0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3