Function at 0x1400011d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push r14
sub rsp, 0x60
mov rax, qword [rdx]
xor r14b, r14b
mov qword [0x140358648], rax
call fcn.140001ac0
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.140001160
test eax, eax
je 0x140001217
xor ecx, ecx
call fcn.140001970
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x38], r15
call fcn.140001480
mov ecx, 0x2710
xor r15d, r15d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
lea rbx, str.Unknown_Error
mov rcx, 0xffffffffffffffff
test rax, rax
cmovne rbx, rax
nop
inc rcx
cmp byte [rbx + rcx], r14b
jne 0x140001250
inc rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
mov rdx, rbx
mov rbp, rax
call fcn.140005a20
mov edx, dword [rsp + 0x70]
test edx, edx
jle 0x140001445
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rdi
nop dword [rax + rax]
dec edx
xor esi, esi
mov dword [rsp + 0x70], edx
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rdi, rax
test rax, rax
je 0x140001341
mov r10, qword [0x1401a51a8]
lea r9, str.Unknown_Error
mov byte [rsp + 0x28], sil
lea r8d, [rsi + 0xd]
mov rdx, rax
mov qword [rsp + 0x20], 0xd
lea rcx, [0x1401a5100]
call qword [r10 + 8]
test eax, eax
je 0x140001341
test rbp, rbp
je 0x140001317
mov r8, rbp
mov rax, rdi
sub r8, rdi
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001313
inc rax
test ecx, ecx
jne 0x140001300
test edx, edx
je 0x140001341
cmp byte [0x140358600], 0
mov esi, 1
je 0x140001338
mov r8, rdi
lea rcx, str.OS_error_code__3d:___s_n
mov edx, ebx
call fcn.1400015d0
jmp 0x140001341
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
mov ecx, ebx
call fcn.1400010a0
mov qword [rsp + 0x80], rax
test rax, rax
je 0x14000137f
cmp byte [0x140358600], 0
mov esi, 1
je 0x140001376
mov r8, rax
lea rcx, str.MariaDB_error_code__3d:__s_n
mov edx, ebx
call fcn.1400015d0
jmp 0x14000137f
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
lea r8, [rsp + 0x80]
mov ecx, ebx
lea rdx, [rsp + 0x88]
call fcn.140001060
test eax, eax
je 0x1400013d3
cmp byte [0x140358600], 0
je 0x1400013c3
mov r9, qword [rsp + 0x80]
lea rcx, str.MariaDB_error_code__3d___s_:__s_n
mov r8, qword [rsp + 0x88]
mov edx, ebx
call fcn.1400015d0
jmp 0x14000140e
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
jmp 0x14000140e
test esi, esi
jne 0x14000140e
movzx edx, byte [0x140358600]
mov ecx, ebx
call fcn.1400014f0
test al, al
sete r14b
test al, al
je 0x14000140e
lea ecx, [rsi + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.Illegal_error_code:__d_n
mov rcx, rax
call fcn.140001010
lea r15d, [rsi + 1]
test r14b, r14b
jne 0x140001421
movzx edx, byte [0x140358600]
mov ecx, ebx
call fcn.1400014f0
mov rax, qword [rsp + 0x78]
mov edx, dword [rsp + 0x70]
add rax, 8
mov qword [rsp + 0x78], rax
test edx, edx
jg 0x140001290
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
dec edx
mov dword [rsp + 0x70], edx
test rbp, rbp
je 0x14000145e
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.1400014a0
xor ecx, ecx
call fcn.140001970
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov r15, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x50]
int3