Function at 0x14019d170
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 0x14019d19d
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 0x14019d35a
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
mov rax, qword [rdi + 0x10]
test rax, rax
jne 0x14019d48c
cmp byte [rdi + 0x22], 0
jne 0x14019d35a
mov r14d, dword [rdi + 0x40]
cmp r14d, 2
jb 0x14019d382
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 [0x140527c50]
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 0x14019d448
mov r9d, dword [0x140527c50]
mov r8d, dword [rdi + 0x34]
mov eax, r9d
xor edx, edx
div r8d
inc eax
cmp r14d, eax
je 0x14019d448
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 0x14019d3a4
mov eax, dword [rdi + 0x38]
mov r12d, 0xcccccccd
imul r12, rax
shr r12, 0x22
mov r8d, r15d
sub r8d, r14d
cmp r14d, 1
jbe 0x14019d389
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 r9d, r14d
setb 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 0x14019d319
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 0x14019d2ea
cmp r12d, r9d
je 0x14019d2ea
cmp r12d, r14d
ja 0x14019d41b
jb 0x14019d49e
mov al, 1
xor r13d, r13d
cmp r13d, 0x65
setne cl
xor al, 1
test cl, al
jne 0x14019d351
test ebx, ebx
jne 0x14019d4fb
test r13d, r13d
jne 0x14019d47d
cmp byte [rdi + 0x23], 0
mov rcx, qword [rdi]
jne 0x14019d40d
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.14019c6c0
xor eax, eax
jmp 0x14019d21d
xor r10d, r10d
mov eax, r9d
xor edx, edx
div dword [rdi + 0x34]
mov ecx, eax
lea r11d, [r12 + 1]
jmp 0x14019d2ba
xor ecx, ecx
jmp 0x14019d3cf
mov r9d, dword [r10 + 0x28]
mov rdx, qword [r10 + 0x20]
test r9d, r9d
jle 0x14019d3a0
lea r15, [rdx + 8]
xor r11d, r11d
cmp qword [r15], rcx
je 0x14019d3cc
inc r11
add r15, 0x20
cmp r9, r11
jne 0x14019d3b8
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 [0x140505c38]
mov r15d, eax
cmp eax, ebp
cmovae r15d, ebp
test r15d, r15d
je 0x14019d35a
mov r9d, dword [0x140527c50]
jmp 0x14019d269
mov eax, dword [rdi + 0x40]
mov dword [rcx + 0x20], eax
mov rcx, qword [rdi]
jmp 0x14019d367
lea rax, [0x1404f37d1]
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, 0x123f7
jmp 0x14019d473
lea rax, [0x1404f37d1]
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, 0x123dc
call fcn.14019af90
jmp 0x14019d189
mov rcx, qword [rsp + 0x30]
call fcn.1401a6df0
jmp 0x14019d189
and byte [rax + 1], 0xfb
mov rax, qword [rax + 0x28]
jmp 0x14019d1ba
xor r13d, r13d
jmp 0x14019d4b4
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14019d499
xor edx, edx
xor r8d, r8d
call fcn.1401abaf0
mov r13d, eax
xor eax, eax
test r13d, r13d
jne 0x14019d33c
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.14040c8e0
mov r13d, eax
dec r14d
test eax, eax
sete al
cmp r14d, r12d
jbe 0x14019d33c
test r13d, r13d
jne 0x14019d33c
jmp 0x14019d4c9
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + 0x70]
call fcn.140407080
mov r13d, eax
cmp r15d, ebp
jne 0x14019d528
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 0x14019d351