Function at 0x140232db0
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
jne 0x140232ebc
mov rsi, rdx
mov rdi, qword [rcx + 8]
cmp byte [rdi + 0x21], 0
je 0x140232df6
mov rbx, qword [rdi]
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140232df0
and byte [rax + 1], 0xfb
mov rax, qword [rax + 0x28]
jmp 0x140232de1
cmp byte [rdi + 0x22], 0
je 0x140232e23
cmp byte [rdi + 0x23], 0
je 0x140232e05
mov eax, dword [rdi + 0x40]
mov rcx, qword [rdi]
mov dword [rcx + 0x20], eax
mov rcx, qword [rdi]
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.1402322d0
mov r14d, dword [rdi + 0x40]
xor eax, eax
cmp r14d, 2
jb 0x140232e71
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 [0x1403f3ab0]
xor edx, edx
div dword [rdi + 0x34]
lea edx, [r8 + 1]
xor r9d, r9d
cmp edx, eax
sete r9b
lea eax, [r9 + r8]
add eax, 2
cmp eax, r14d
je 0x140232e8c
mov eax, dword [0x1403f3ab0]
mov r8d, dword [rdi + 0x34]
xor edx, edx
div r8d
inc eax
cmp r14d, eax
jne 0x140232ed0
lea rax, [0x1403cc120]
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
lea r8, str.database_corruption
mov r13d, recv
mov ecx, 0xb
mov r9d, 0x11b1e
call fcn.140230130
mov eax, r13d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rdi + 0x18]
mov rax, qword [rax + 0x50]
mov r13d, dword [rax + 0x24]
mov ebp, r13d
bswap ebp
mov r9, qword [rcx]
mov rax, qword [r9 + 0x148]
mov r15d, ebp
test rax, rax
je 0x140232f55
mov r10d, dword [r9 + 0x28]
mov rdx, qword [r9 + 0x20]
test r10d, r10d
jle 0x140232f1d
lea r15, [rdx + 8]
xor r11d, r11d
cmp qword [r15], rcx
je 0x140232f20
inc r11
add r15, 0x20
cmp r10, r11
jne 0x140232f07
mov r11d, r10d
jmp 0x140232f20
xor r11d, r11d
mov ecx, r11d
shl rcx, 5
mov rdx, qword [rdx + rcx]
mov rcx, qword [r9 + 0x138]
mov dword [rsp + 0x20], r8d
mov r8d, r14d
mov r9d, ebp
call qword [case.0x140318756.0]
mov r15d, eax
cmp eax, ebp
cmovae r15d, ebp
test r15d, r15d
je 0x140232df6
mov eax, dword [rdi + 0x38]
mov r11d, 0xcccccccd
imul r11, rax
shr r11, 0x22
mov r8d, r15d
sub r8d, r14d
cmp r14d, 1
ja 0x140232f88
mov eax, dword [0x1403f3ab0]
xor r9d, r9d
xor edx, edx
div dword [rdi + 0x34]
mov ecx, eax
lea r10d, [r11 + 1]
jmp 0x140232fba
lea r10d, [r11 + 1]
lea r9d, [r14 - 2]
mov eax, r9d
xor edx, edx
div r10d
sub r9d, edx
mov eax, dword [0x1403f3ab0]
xor edx, edx
div dword [rdi + 0x34]
mov ecx, eax
lea eax, [r9 + 1]
xor edx, edx
cmp eax, ecx
sete dl
add r9d, edx
add r9d, 2
add r8d, r11d
add r8d, r9d
mov eax, r8d
xor edx, edx
div r11d
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 0x140233019
lea r8d, [r12 - 2]
mov eax, r8d
xor edx, edx
div r10d
sub r8d, edx
lea eax, [r8 + 1]
xor edx, edx
cmp eax, ecx
sete dl
lea eax, [rdx + r8]
add eax, 2
lea edx, [r12 - 1]
cmp r12d, eax
je 0x140232fea
cmp r12d, r9d
je 0x140232fea
cmp r12d, r14d
jbe 0x14023305d
lea rax, [0x1403cc120]
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
lea r8, str.database_corruption
mov r13d, recv
mov ecx, 0xb
mov r9d, 0x11b39
jmp 0x140232eb7
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x34], r13d
jae 0x140233080
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140233087
xor edx, edx
xor r8d, r8d
call fcn.140247530
mov r13d, eax
jmp 0x14023308a
mov al, 1
xor r13d, r13d
jmp 0x1402330c4
xor r13d, r13d
test r13d, r13d
je 0x140233093
xor eax, eax
jmp 0x1402330c4
xor ebp, ebp
cmp r15d, dword [rsp + 0x30]
sete bpl
mov rcx, rdi
mov edx, r12d
mov r8d, r14d
mov r9d, ebp
call fcn.140247010
mov r13d, eax
dec r14d
test eax, eax
sete al
cmp r14d, r12d
jbe 0x1402330c4
test r13d, r13d
je 0x14023309e
cmp r13d, 0x65
setne cl
xor al, 1
test cl, al
jne 0x14023316d
cmp dword [rsp + 0x34], 0
je 0x14023316d
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + 0x70]
mov rax, qword [rcx + 0x28]
test byte [rcx + 0x34], 4
je 0x1402330fa
mov edx, dword [rax + 0x20]
cmp edx, dword [rcx + 0x30]
jae 0x14023311c
mov r13d, dword [rax + 0x30]
test r13d, r13d
mov ebp, dword [rsp + 0x30]
jne 0x140233138
mov edx, dword [rax + 0xb8]
cmp edx, dword [rax + 0xc8]
jbe 0x140233130
call fcn.140246750
jmp 0x140233135
cmp dword [rax + 0x80], 0
mov ebp, dword [rsp + 0x30]
je 0x140233183
call fcn.14023c520
jmp 0x140233135
call fcn.140246af0
mov r13d, eax
cmp r15d, ebp
jne 0x140233155
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
test r13d, r13d
je 0x140232df6
mov rcx, rbx
call fcn.140240e40
jmp 0x140232ebc
xor r13d, r13d
jmp 0x140233138