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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
xor r13d, r13d
cmp byte [rcx + 0x10], 2
je 0x1401968ed
mov eax, r13d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, rdx
mov rdi, qword [rcx + 8]
cmp byte [rdi + 0x21], 0
je 0x140196aaa
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
mov rax, qword [rdi + 0x10]
test rax, rax
jne 0x140196bdc
cmp byte [rdi + 0x22], 0
jne 0x140196aaa
mov r14d, dword [rdi + 0x40]
cmp r14d, 2
jb 0x140196ad2
mov eax, dword [rdi + 0x38]
mov r9d, 0xcccccccd
imul r9, rax
shr r9, 0x22
inc r9d
lea r8d, [r14 - 2]
mov eax, r8d
xor edx, edx
div r9d
sub r8d, edx
mov eax, dword [0x14050f3c0]
xor edx, edx
div dword [rdi + 0x34]
lea edx, [r8 + 1]
xor r9d, r9d
cmp edx, eax
sete r9b
lea eax, [r8 + r9]
add eax, 2
cmp eax, r14d
je 0x140196b98
mov r9d, dword [0x14050f3c0]
mov r8d, dword [rdi + 0x34]
mov eax, r9d
xor edx, edx
div r8d
inc eax
cmp r14d, eax
je 0x140196b98
mov rax, qword [rdi + 0x18]
mov rax, qword [rax + 0x50]
mov ebx, dword [rax + 0x24]
mov ebp, ebx
bswap ebp
mov r10, qword [rcx]
mov rax, qword [r10 + 0x148]
mov r15d, ebp
test rax, rax
jne 0x140196af4
mov eax, dword [rdi + 0x38]
mov r12d, 0xcccccccd
imul r12, rax
shr r12, 0x22
mov r8d, r15d
sub r8d, r14d
cmp r14d, 1
jbe 0x140196ad9
lea r11d, [r12 + 1]
lea r10d, [r14 - 2]
mov eax, r10d
xor edx, edx
div r11d
sub r10d, edx
mov eax, r9d
xor edx, edx
div dword [rdi + 0x34]
mov ecx, eax
lea eax, [r10 + 1]
xor edx, edx
cmp eax, ecx
sete dl
add r10d, edx
add r10d, 2
add r8d, r12d
add r8d, r10d
mov eax, r8d
xor edx, edx
div r12d
add eax, r15d
mov edx, r14d
sub edx, eax
lea r9d, [rcx + 1]
cmp r14d, r9d
seta al
cmp edx, r9d
setb r8b
and r8b, al
movzx eax, r8b
sub edx, eax
mov r12d, edx
mov eax, 0
cmp edx, 2
jb 0x140196a69
lea r8d, [r12 - 2]
mov eax, r8d
xor edx, edx
div r11d
sub r8d, edx
lea eax, [r8 + 1]
xor edx, edx
cmp eax, ecx
sete dl
lea eax, [r8 + rdx]
add eax, 2
lea edx, [r12 - 1]
cmp r12d, eax
je 0x140196a3a
cmp r12d, r9d
je 0x140196a3a
cmp r12d, r14d
ja 0x140196b6b
jb 0x140196bee
mov al, 1
xor r13d, r13d
cmp r13d, 0x65
setne cl
xor al, 1
test cl, al
jne 0x140196aa1
test ebx, ebx
jne 0x140196c4b
test r13d, r13d
jne 0x140196bcd
cmp byte [rdi + 0x23], 0
mov rcx, qword [rdi]
jne 0x140196b5d
mov rdx, rsi
xor r8d, r8d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140195e10
xor eax, eax
jmp 0x14019696d
xor r10d, r10d
mov eax, r9d
xor edx, edx
div dword [rdi + 0x34]
mov ecx, eax
lea r11d, [r12 + 1]
jmp 0x140196a0a
xor ecx, ecx
jmp 0x140196b1f
mov r9d, dword [r10 + 0x28]
mov rdx, qword [r10 + 0x20]
test r9d, r9d
jle 0x140196af0
lea r15, [rdx + 8]
xor r11d, r11d
cmp qword [r15], rcx
je 0x140196b1c
inc r11
add r15, 0x20
cmp r9, r11
jne 0x140196b08
mov r11d, r9d
mov ecx, r11d
shl rcx, 5
mov rdx, qword [rdx + rcx]
mov rcx, qword [r10 + 0x138]
mov dword [rsp + 0x20], r8d
mov r8d, r14d
mov r9d, ebp
call qword [case.0x1403053b8.0]
mov r15d, eax
cmp eax, ebp
cmovae r15d, ebp
test r15d, r15d
je 0x140196aaa
mov r9d, dword [0x14050f3c0]
jmp 0x1401969b9
mov eax, dword [rdi + 0x40]
mov dword [rcx + 0x20], eax
mov rcx, qword [rdi]
jmp 0x140196ab7
lea rax, [0x1404dd361]
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
lea r8, str.database_corruption
mov r13d, ntohl
mov ecx, ntohl
mov r9d, 0x12404
jmp 0x140196bc3
lea rax, [0x1404dd361]
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
lea r8, str.database_corruption
mov r13d, ntohl
mov ecx, ntohl
mov r9d, 0x123e9
call fcn.1401946f0
jmp 0x1401968d9
mov rcx, qword [rsp + 0x30]
call fcn.1401a0340
jmp 0x1401968d9
and byte [rax + 1], 0xfb
mov rax, qword [rax + 0x28]
jmp 0x14019690a
xor r13d, r13d
jmp 0x140196c04
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140196be9
xor edx, edx
xor r8d, r8d
call fcn.1401a51e0
mov r13d, eax
xor eax, eax
test r13d, r13d
jne 0x140196a8c
cmp r15d, ebp
sete al
mov dword [rsp + 0x2c], eax
mov rcx, rdi
mov edx, r12d
mov r8d, r14d
mov r9d, dword [rsp + 0x2c]
call fcn.1403f7ae0
mov r13d, eax
dec r14d
test eax, eax
sete al
cmp r14d, r12d
jbe 0x140196a8c
test r13d, r13d
jne 0x140196a8c
jmp 0x140196c19
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + 0x70]
call fcn.1403f2460
mov r13d, eax
cmp r15d, ebp
jne 0x140196c78
mov rax, qword [rdi + 0x18]
mov rax, qword [rax + 0x50]
xor ecx, ecx
mov dword [rax + 0x20], ecx
mov rax, qword [rdi + 0x18]
mov rax, qword [rax + 0x50]
mov dword [rax + 0x24], ecx
mov rax, qword [rdi + 0x18]
mov rax, qword [rax + 0x50]
mov ecx, r12d
bswap ecx
mov dword [rax + 0x1c], ecx
mov byte [rdi + 0x23], 1
mov dword [rdi + 0x40], r12d
jmp 0x140196aa1