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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, qword [rcx + 0x18]
xor r15d, r15d
xor r12d, r12d
mov qword [rsp + 0x88], r13
mov r14d, r8d
mov rbx, rdx
mov rsi, rcx
cmp r8d, 2
jae 0x14003a362
lea rax, [0x140190d34]
mov edi, listen
mov ecx, edi
mov qword [rsp + 0x20], rax
mov r9d, 0xfd29
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140020650
jmp 0x14003a6a4
test rdx, rdx
je 0x14003a378
mov rax, qword [rdx + 0x70]
inc word [rax + 0x2e]
mov rax, qword [rax + 0x30]
inc dword [rax + 0x18]
jmp 0x14003a383
mov edx, r14d
call fcn.1400353c0
mov rbx, rax
mov rcx, qword [r13 + 0x70]
mov qword [rsp + 0x78], rbp
call fcn.14002fce0
mov dword [rsp + 0x80], eax
mov edi, eax
test eax, eax
jne 0x14003a680
mov rcx, qword [r13 + 0x50]
mov ebp, dword [rcx + 0x24]
bswap ebp
lea eax, [rbp + 1]
bswap eax
mov dword [rcx + 0x24], eax
test byte [rsi + 0x26], 4
je 0x14003a435
test rbx, rbx
jne 0x14003a408
mov rcx, qword [rsi]
lea r8, [rsp + 0x70]
xor r9d, r9d
mov edx, r14d
call fcn.14002ecf0
mov edi, eax
test eax, eax
jne 0x14003a69f
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rcx + 0x10]
cmp r14d, dword [rbx + 0x88]
je 0x14003a408
mov rax, qword [rcx + 8]
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x70], rcx
mov qword [rbx + 0x48], rsi
mov dword [rbx + 0x88], r14d
mov byte [rbx + 5], r12b
mov rcx, qword [rbx + 0x70]
call fcn.14002fce0
mov dword [rsp + 0x80], eax
mov edi, eax
test eax, eax
jne 0x14003a680
mov rax, qword [rbx + 0x48]
xor edx, edx
mov rcx, qword [rbx + 0x50]
mov r8d, dword [rax + 0x30]
call fcn.140133600
cmp byte [rsi + 0x21], r12b
je 0x14003a468
lea rax, [rsp + 0x80]
xor r9d, r9d
mov r8b, 2
mov qword [rsp + 0x20], rax
mov edx, r14d
mov rcx, rsi
call fcn.140034450
mov edi, dword [rsp + 0x80]
test edi, edi
jne 0x14003a680
test ebp, ebp
je 0x14003a60a
mov rax, qword [r13 + 0x50]
lea r8, [rsp + 0x70]
mov rcx, qword [rsi]
xor r9d, r9d
mov r12d, dword [rax + 0x20]
bswap r12d
mov edx, r12d
call fcn.14002ecf0
mov edi, eax
test eax, eax
jne 0x14003a680
mov rcx, qword [rsp + 0x70]
mov rbp, qword [rcx + 0x10]
cmp r12d, dword [rbp + 0x88]
je 0x14003a4d2
mov rax, qword [rcx + 8]
mov qword [rbp + 0x50], rax
xor eax, eax
cmp r12d, 1
mov qword [rbp + 0x70], rcx
mov ecx, 0x64
mov qword [rbp + 0x48], rsi
cmove eax, ecx
mov dword [rbp + 0x88], r12d
mov byte [rbp + 5], al
mov rax, qword [rbp + 0x50]
mov ecx, dword [rsi + 0x34]
shr ecx, 2
mov r13d, dword [rax + 4]
bswap r13d
lea eax, [rcx - 2]
cmp r13d, eax
jbe 0x14003a51f
lea rax, [0x140190d34]
mov edi, listen
mov ecx, edi
mov qword [rsp + 0x20], rax
mov r9d, 0xfd5f
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140020650
mov r15, rbp
jmp 0x14003a680
lea eax, [rcx - 8]
mov r15, rbp
cmp r13d, eax
jae 0x14003a602
mov rcx, qword [rbp + 0x70]
call fcn.14002fce0
mov edi, eax
test eax, eax
jne 0x14003a680
mov rax, qword [rbp + 0x50]
lea ecx, [r13 + 1]
mov edx, r14d
bswap ecx
bswap edx
mov dword [rax + 4], ecx
lea ecx, [r13*4 + 8]
mov rax, qword [rbp + 0x50]
mov dword [rcx + rax], edx
test rbx, rbx
je 0x14003a59b
test byte [rsi + 0x26], 4
jne 0x14003a59b
mov rcx, qword [rbx + 0x70]
mov rdx, qword [rcx + 0x20]
cmp byte [rdx + 0x11], dil
jne 0x14003a59b
movzx eax, word [rcx + 0x2c]
test al, 2
je 0x14003a59b
cmp dword [rdx + 0x80], edi
jne 0x14003a59b
mov edx, 0xfffb
and ax, dx
or ax, 0x10
mov word [rcx + 0x2c], ax
mov r12, qword [rsi + 0x58]
xor edi, edi
test r12, r12
jne 0x14003a5d8
mov r15d, dword [rsi + 0x3c]
mov ecx, 0x200
call fcn.14001dba0
mov r12, rax
test rax, rax
je 0x14003a5f4
lea rcx, [rax + 4]
xor edx, edx
mov r8d, 0x1fc
call fcn.140133600
mov dword [r12], r15d
mov r15, rbp
mov qword [rsi + 0x58], r12
cmp r14d, dword [r12]
ja 0x14003a680
mov edx, r14d
mov rcx, r12
call fcn.1400286d0
mov edi, eax
jmp 0x14003a680
mov qword [rsi + 0x58], r12
mov edi, 7
mov r15, rbp
jmp 0x14003a680
mov r13, qword [rsp + 0x88]
test rbx, rbx
jne 0x14003a655
mov rcx, qword [rsi]
lea r8, [rsp + 0x70]
xor r9d, r9d
mov edx, r14d
call fcn.14002ecf0
mov edi, eax
test eax, eax
jne 0x14003a691
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rcx + 0x10]
cmp r14d, dword [rbx + 0x88]
je 0x14003a655
mov rax, qword [rcx + 8]
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x70], rcx
mov qword [rbx + 0x48], rsi
mov dword [rbx + 0x88], r14d
mov byte [rbx + 5], dil
mov rcx, qword [rbx + 0x70]
call fcn.14002fce0
mov edi, eax
test eax, eax
jne 0x14003a680
mov rax, qword [rbx + 0x50]
bswap r12d
bswap r14d
mov dword [rax], r12d
mov rax, qword [rbx + 0x50]
mov dword [rax + 4], edi
mov rax, qword [r13 + 0x50]
mov dword [rax + 0x20], r14d
test rbx, rbx
je 0x14003a691
mov rcx, qword [rbx + 0x70]
mov byte [rbx], 0
call fcn.14002f370
test r15, r15
je 0x14003a69f
mov rcx, qword [r15 + 0x70]
call fcn.14002f370
mov rbp, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret