Function at 0x14001f6d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rcx, qword [rcx]
call fcn.1400172e0
test eax, eax
jne 0x14001fa1e
mov rcx, qword [rbx]
lea r8, [rsp + 0x60]
xor r9d, r9d
mov edx, 1
call fcn.1400177c0
test eax, eax
jne 0x14001fa1e
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x38], r14
mov rdi, qword [rcx + 0x10]
cmp dword [rdi + 0x88], 1
je 0x14001f745
mov rax, qword [rcx + 8]
mov qword [rdi + 0x50], rax
mov qword [rdi + 0x70], rcx
mov qword [rdi + 0x48], rbx
mov dword [rdi + 0x88], 1
mov byte [rdi + 5], 0x64
mov r14, qword [rdi + 0x50]
mov rax, qword [rbx]
mov r12d, dword [r14 + 0x1c]
mov ecx, dword [rax + 0x20]
bswap r12d
mov dword [rsp + 0x60], ecx
test r12d, r12d
je 0x14001f769
mov eax, dword [r14 + 0x18]
cmp eax, dword [r14 + 0x5c]
je 0x14001f76c
mov r12d, ecx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov rsi, rdi
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x30], r15
test r12d, r12d
jle 0x14001f98a
mov rax, qword [r14]
mov ebp, 0x1a
cmp rax, qword [str.SQLite_format_3]
jne 0x14001f80a
mov rax, qword [r14 + 8]
cmp rax, qword [0x14010da68]
jne 0x14001f80a
cmp byte [r14 + 0x12], 2
jbe 0x14001f7b6
or word [rbx + 0x26], 1
cmp byte [r14 + 0x13], 2
ja 0x14001f80a
jne 0x14001f878
test byte [rbx + 0x26], 0x10
jne 0x14001f878
mov rsi, qword [rbx]
xor r13d, r13d
xor ebp, ebp
cmp byte [rsi + 0x11], bpl
jne 0x14001f853
cmp qword [rsi + 0x118], rbp
jne 0x14001f853
mov rax, qword [rsi + 0x48]
mov rcx, qword [rax]
cmp byte [rsi + 0x12], bpl
jne 0x14001f802
cmp byte [rsi + 8], bpl
jne 0x14001f822
cmp dword [rcx], 2
jl 0x14001f802
cmp qword [rcx + 0x68], rbp
jne 0x14001f822
mov rsi, rdi
mov ebp, 0xe
mov rcx, qword [rsi + 0x70]
call fcn.140017e10
mov eax, ebp
mov qword [rbx + 0x18], 0
jmp 0x14001f9fb
mov r15, qword [rsi + 0x50]
mov rax, qword [r15]
test rax, rax
je 0x14001f837
mov rcx, r15
call qword [rax + htons]
mov qword [r15], rbp
mov rcx, rsi
call fcn.1400195b0
mov ebp, eax
test eax, eax
jne 0x14001f84d
mov byte [rsi + 9], 5
mov byte [rsi + 0x15], r13b
mov ecx, dword [rsp + 0x60]
jmp 0x14001f859
mov r13d, 1
mov rsi, rdi
test ebp, ebp
jne 0x14001f80a
test r13d, r13d
jne 0x14001f873
mov rcx, qword [rdi + 0x70]
call fcn.140017e10
jmp 0x14001f9f9
mov ebp, 0x1a
cmp word [r14 + 0x15], 0x2040
jne 0x14001f80a
cmp byte [r14 + 0x17], 0x20
jne 0x14001f80a
movzx eax, byte [r14 + 0x10]
movzx edi, byte [r14 + 0x11]
shl edi, 8
or edi, eax
shl edi, 8
lea eax, [rdi - 1]
test edi, eax
jne 0x14001f80a
lea eax, [rdi - 0x101]
cmp eax, 0xfeff
ja 0x14001f80a
movzx eax, byte [r14 + 0x14]
mov r15d, edi
sub r15d, eax
mov dword [rsp + 0x60], eax
cmp edi, dword [rbx + 0x30]
je 0x14001f917
mov rcx, qword [rsi + 0x70]
call fcn.140017e10
mov rcx, qword [rbx + 0x80]
mov dword [rbx + 0x34], r15d
mov dword [rbx + 0x30], edi
test rcx, rcx
je 0x14001f901
add rcx, 0xfffffffffffffffc
mov qword [rbx + 0x80], rcx
call fcn.140012130
mov qword [rbx + 0x80], 0
mov r8d, dword [rsp + 0x60]
lea rdx, [rbx + 0x30]
mov rcx, qword [rbx]
call fcn.140015cc0
jmp 0x14001f9fb
mov rax, qword [rbx + 8]
test dword [rax + 0x2c], 0x10000
jne 0x14001f95a
cmp r12d, ecx
jle 0x14001f95a
lea rax, [0x140109c54]
mov ebp, reloc.WS2_32.dll_inet_addr
mov ecx, ebp
mov qword [rsp + 0x20], rax
mov r9d, 0xf18f
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.1400090c0
jmp 0x14001f80a
cmp r15d, 0x1e0
jb 0x14001f80a
mov dword [rbx + 0x30], edi
mov dword [rbx + 0x34], r15d
mov eax, dword [r14 + 0x34]
bswap eax
test eax, eax
setne al
mov byte [rbx + 0x21], al
mov eax, dword [r14 + 0x40]
bswap eax
test eax, eax
setne al
mov byte [rbx + 0x22], al
mov r9d, dword [rbx + 0x34]
mov eax, 0x80808081
mov ecx, r9d
shl ecx, 6
sub ecx, 0x300
mul ecx
mov ecx, r9d
mov eax, 0x80808081
mov r8d, edx
shl ecx, 5
sub ecx, 0x180
shr r8d, 7
mul ecx
sub r8w, 0x17
sub r9w, 0x23
shr edx, 7
mov ecx, 0x7f
sub dx, 0x17
movzx eax, r8b
cmp r8w, cx
mov word [rbx + 0x28], r8w
mov word [rbx + 0x2a], dx
cmova eax, ecx
mov word [rbx + 0x2c], r9w
mov word [rbx + 0x2e], dx
mov byte [rbx + 0x25], al
mov qword [rbx + 0x18], rsi
mov dword [rbx + 0x3c], r12d
xor eax, eax
mov rbp, qword [rsp + 0x68]
mov r13, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x78]
mov r12, qword [rsp + 0x48]
mov r14, qword [rsp + 0x38]
add rsp, 0x50
pop rbx
ret