Function at 0x1401b0e20
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 0x1401b0e4d
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 0x1401b100a
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
mov rax, qword [rdi + 0x10]
test rax, rax
jne 0x1401b113c
cmp byte [rdi + 0x22], 0
jne 0x1401b100a
mov r14d, dword [rdi + 0x40]
cmp r14d, 2
jb 0x1401b1032
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 [0x14043f668]
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 0x1401b10f8
mov r9d, dword [0x14043f668]
mov r8d, dword [rdi + 0x34]
mov eax, r9d
xor edx, edx
div r8d
inc eax
cmp r14d, eax
je 0x1401b10f8
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 0x1401b1054
mov eax, dword [rdi + 0x38]
mov r12d, 0xcccccccd
imul r12, rax
shr r12, 0x22
mov r8d, r15d
sub r8d, r14d
cmp r14d, 1
jbe 0x1401b1039
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 0x1401b0fc9
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 0x1401b0f9a
cmp r12d, r9d
je 0x1401b0f9a
cmp r12d, r14d
ja 0x1401b10cb
jb 0x1401b114e
mov al, 1
xor r13d, r13d
cmp r13d, 0x65
setne cl
xor al, 1
test cl, al
jne 0x1401b1001
test ebx, ebx
jne 0x1401b11ab
test r13d, r13d
jne 0x1401b112d
cmp byte [rdi + 0x23], 0
mov rcx, qword [rdi]
jne 0x1401b10bd
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.1401b0370
xor eax, eax
jmp 0x1401b0ecd
xor r10d, r10d
mov eax, r9d
xor edx, edx
div dword [rdi + 0x34]
mov ecx, eax
lea r11d, [r12 + 1]
jmp 0x1401b0f6a
xor ecx, ecx
jmp 0x1401b107f
mov r9d, dword [r10 + 0x28]
mov rdx, qword [r10 + 0x20]
test r9d, r9d
jle 0x1401b1050
lea r15, [rdx + 8]
xor r11d, r11d
cmp qword [r15], rcx
je 0x1401b107c
inc r11
add r15, 0x20
cmp r9, r11
jne 0x1401b1068
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 [str._a_]
mov r15d, eax
cmp eax, ebp
cmovae r15d, ebp
test r15d, r15d
je 0x1401b100a
mov r9d, dword [0x14043f668]
jmp 0x1401b0f19
mov eax, dword [rdi + 0x40]
mov dword [rcx + 0x20], eax
mov rcx, qword [rdi]
jmp 0x1401b1017
lea rax, [0x14040f811]
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
lea r8, str.database_corruption
mov r13d, recv
mov ecx, ntohl
mov r9d, 0x12404
jmp 0x1401b1123
lea rax, [0x14040f811]
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
lea r8, str.database_corruption
mov r13d, recv
mov ecx, ntohl
mov r9d, 0x123e9
call fcn.1401aeb90
jmp 0x1401b0e39
mov rcx, qword [rsp + 0x30]
call fcn.1401baa60
jmp 0x1401b0e39
and byte [rax + 1], 0xfb
mov rax, qword [rax + 0x28]
jmp 0x1401b0e6a
xor r13d, r13d
jmp 0x1401b1164
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1401b1149
xor edx, edx
xor r8d, r8d
call fcn.1401bf710
mov r13d, eax
xor eax, eax
test r13d, r13d
jne 0x1401b0fec
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.14035c5b0
mov r13d, eax
dec r14d
test eax, eax
sete al
cmp r14d, r12d
jbe 0x1401b0fec
test r13d, r13d
jne 0x1401b0fec
jmp 0x1401b1179
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + 0x70]
call fcn.140356e40
mov r13d, eax
cmp r15d, ebp
jne 0x1401b11d8
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 0x1401b1001