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

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rcx, qword [rcx]
call fcn.140017200
test eax, eax
jne 0x14001f93e
mov rcx, qword [rbx]
lea r8, [rsp + 0x60]
xor r9d, r9d
mov edx, 1
call fcn.1400176e0
test eax, eax
jne 0x14001f93e
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 0x14001f665
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 0x14001f689
mov eax, dword [r14 + 0x18]
cmp eax, dword [r14 + 0x5c]
je 0x14001f68c
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 0x14001f8aa
mov rax, qword [r14]
mov ebp, 0x1a
cmp rax, qword [str.SQLite_format_3]
jne 0x14001f72a
mov rax, qword [r14 + 8]
cmp rax, qword [0x14010ca48]
jne 0x14001f72a
cmp byte [r14 + 0x12], 2
jbe 0x14001f6d6
or word [rbx + 0x26], 1
cmp byte [r14 + 0x13], 2
ja 0x14001f72a
jne 0x14001f798
test byte [rbx + 0x26], 0x10
jne 0x14001f798
mov rsi, qword [rbx]
xor r13d, r13d
xor ebp, ebp
cmp byte [rsi + 0x11], bpl
jne 0x14001f773
cmp qword [rsi + 0x118], rbp
jne 0x14001f773
mov rax, qword [rsi + 0x48]
mov rcx, qword [rax]
cmp byte [rsi + 0x12], bpl
jne 0x14001f722
cmp byte [rsi + 8], bpl
jne 0x14001f742
cmp dword [rcx], 2
jl 0x14001f722
cmp qword [rcx + 0x68], rbp
jne 0x14001f742
mov rsi, rdi
mov ebp, 0xe
mov rcx, qword [rsi + 0x70]
call fcn.140017d30
mov eax, ebp
mov qword [rbx + 0x18], 0
jmp 0x14001f91b
mov r15, qword [rsi + 0x50]
mov rax, qword [r15]
test rax, rax
je 0x14001f757
mov rcx, r15
call qword [rax + htons]
mov qword [r15], rbp
mov rcx, rsi
call fcn.1400194d0
mov ebp, eax
test eax, eax
jne 0x14001f76d
mov byte [rsi + 9], 5
mov byte [rsi + 0x15], r13b
mov ecx, dword [rsp + 0x60]
jmp 0x14001f779
mov r13d, 1
mov rsi, rdi
test ebp, ebp
jne 0x14001f72a
test r13d, r13d
jne 0x14001f793
mov rcx, qword [rdi + 0x70]
call fcn.140017d30
jmp 0x14001f919
mov ebp, 0x1a
cmp word [r14 + 0x15], 0x2040
jne 0x14001f72a
cmp byte [r14 + 0x17], 0x20
jne 0x14001f72a
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 0x14001f72a
lea eax, [rdi - 0x101]
cmp eax, 0xfeff
ja 0x14001f72a
movzx eax, byte [r14 + 0x14]
mov r15d, edi
sub r15d, eax
mov dword [rsp + 0x60], eax
cmp edi, dword [rbx + 0x30]
je 0x14001f837
mov rcx, qword [rsi + 0x70]
call fcn.140017d30
mov rcx, qword [rbx + 0x80]
mov dword [rbx + 0x34], r15d
mov dword [rbx + 0x30], edi
test rcx, rcx
je 0x14001f821
add rcx, 0xfffffffffffffffc
mov qword [rbx + 0x80], rcx
call fcn.140012050
mov qword [rbx + 0x80], 0
mov r8d, dword [rsp + 0x60]
lea rdx, [rbx + 0x30]
mov rcx, qword [rbx]
call fcn.140015be0
jmp 0x14001f91b
mov rax, qword [rbx + 8]
test dword [rax + 0x2c], 0x10000
jne 0x14001f87a
cmp r12d, ecx
jle 0x14001f87a
lea rax, [0x140108c34]
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.140008fe0
jmp 0x14001f72a
cmp r15d, 0x1e0
jb 0x14001f72a
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