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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbx, qword [rcx + 8]
cmp byte [rcx + 0x11], 0
mov r14, qword [rbx]
mov r13, rcx
mov esi, edx
mov rdi, r8
je 0x8b9cea
call fcn.0086d4a0
movzx eax, byte [r13 + 0x10]
cmp al, 2
je 0x8b9e50
cmp al, 1
jne 0x8b9d03
test esi, esi
je 0x8ba225
mov rdx, qword [r13]
movzx eax, word [rbx + 0x28]
test byte [rdx + 0x33], 2
je 0x8b9d60
cmp byte [r14 + 0x12], 0
jne 0x8b9d60
and eax, 0xfffffffe
mov word [rbx + 0x28], ax
test esi, esi
je 0x8b9d78
cmp byte [rbx + 0x24], 2
je 0x8b9d7c
test al, 0x80
jne 0x8b9d7c
cmp esi, 1
jle 0x8b9d95
mov rax, qword [rbx + 0x78]
test rax, rax
jne 0x8b9d49
jmp 0x8b9d95
mov rax, qword [rax + 0x10]
test rax, rax
je 0x8b9d95
mov rdx, qword [rax]
cmp rdx, r13
je 0x8b9d40
mov rax, qword [rdx]
jmp 0x8b9d86
mov edx, eax
and edx, 1
test dx, dx
je 0x8b9d1f
mov r12d, 8
test esi, esi
jne 0x8b9ea0
test al, 0x80
je 0x8b9d95
mov rax, qword [rbx + 0x80]
mov rax, qword [rax]
mov r12d, 0x106
test rax, rax
jne 0x8b9ea0
mov r8d, 1
mov edx, 1
mov rcx, r13
call fcn.00863370
mov r12d, eax
test eax, eax
jne 0x8b9ea0
movzx eax, word [rbx + 0x28]
mov r9d, dword [rbx + 0x40]
and eax, 0xffffffef
mov word [rbx + 0x28], ax
test r9d, r9d
je 0x8ba240
mov rax, qword [rbx + 0x18]
mov ebp, 0x80808081
jmp 0x8b9e31
test esi, esi
je 0x8b9f38
test byte [rbx + 0x28], 1
je 0x8ba0d0
mov r15d, 8
mov r12d, 8
cmp byte [rbx + 0x24], 0
jne 0x8b9ea0
lea rcx, [rbx + 0x18]
call fcn.008b90a0
cmp r15d, 5
jne 0x8b9ea0
cmp byte [rbx + 0x24], 0
jne 0x8b9ea0
mov rcx, rbx
call fcn.008637e0
test eax, eax
je 0x8b9ea0
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x8b9fc0
test r12d, r12d
je 0x8b9de0
cmp byte [rbx + 0x24], 0
movzx r15d, r12b
jne 0x8b9e11
jmp 0x8b9e08
test rdi, rdi
je 0x8b9e64
mov rax, qword [rbx + 0x18]
mov rax, qword [rax + 0x50]
mov eax, dword [rax + 0x28]
bswap eax
mov dword [rdi], eax
test esi, esi
je 0x8ba230
mov rax, qword [r13]
mov edx, dword [rax + 0x2d8]
cmp edx, dword [r14 + 0x80]
jle 0x8ba230
cmp byte [r14 + 0xa], 0
je 0x8ba230
mov rcx, r14
call fcn.00874990
mov r12d, eax
nop dword [rax]
cmp byte [r13 + 0x11], 0
je 0x8b9eb2
sub dword [r13 + 0x14], 1
je 0x8ba2c0
mov eax, r12d
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [r14 + 0x16]
cmp al, 5
je 0x8ba2cd
cmp al, 1
jbe 0x8ba2cd
cmp esi, 1
jle 0x8b9f03
mov edx, 4
mov rcx, r14
call fcn.0086ccc0
mov r12d, eax
test r12d, r12d
jne 0x8ba2f0
mov eax, dword [r14 + 0x20]
mov byte [r14 + 0x15], 2
mov qword [r14 + 0x60], 0
mov dword [r14 + 0x2c], eax
mov dword [r14 + 0x28], eax
mov dword [r14 + 0x24], eax
mov eax, dword [rbx + 0x40]
test eax, eax
jne 0x8b9f41
mov rcx, rbx
call fcn.008b9bf0
mov r12d, eax
nop word [rax + rax]
test r12d, r12d
jne 0x8b9e3f
cmp byte [r13 + 0x10], 0
jne 0x8b9f60
add dword [rbx + 0x3c], 1
cmp byte [r13 + 0x11], 0
jne 0x8ba318
nop word [rax + rax]
movzx eax, byte [rbx + 0x24]
test esi, esi
je 0x8ba218
mov byte [r13 + 0x10], 2
cmp al, 1
jbe 0x8ba338
movzx eax, word [rbx + 0x28]
mov rbp, qword [rbx + 0x18]
mov qword [rbx + 0x80], r13
mov edx, eax
or eax, 0x40
and edx, 0xffffffbf
cmp esi, 2
cmovl eax, edx
mov word [rbx + 0x28], ax
mov rax, qword [rbp + 0x50]
mov eax, dword [rax + 0x1c]
bswap eax
cmp dword [rbx + 0x40], eax
jne 0x8ba348
test rdi, rdi
jne 0x8b9e55
jmp 0x8b9e6c
mov rcx, qword [rbx]
call fcn.008b9330
mov r12d, eax
test eax, eax
jne 0x8b9e3f
xor r9d, r9d
lea r8, [rsp + 0x58]
mov edx, 1
mov rcx, rbx
call fcn.00863770
mov r12d, eax
test eax, eax
jne 0x8b9e3f
mov rax, qword [rsp + 0x58]
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
mov r10, qword [rax + 0x50]
mov rdx, qword [rdx + 0x30]
mov r11d, dword [rcx + 0x20]
mov r15d, dword [r10 + 0x1c]
and edx, 0x2000000
bswap r15d
test r15d, r15d
je 0x8ba250
mov r9d, dword [r10 + 0x18]
cmp dword [r10 + 0x5c], r9d
jne 0x8ba250
test rdx, rdx
jne 0x8ba25e
movabs r8, 0x332074616d726f
xor r8, qword [r10 + 8]
movabs rdx, 0x66206574694c5153
xor rdx, qword [r10]
or r8, rdx
jne 0x8ba0aa
cmp byte [r10 + 0x12], 2
jbe 0x8ba064
or word [rbx + 0x28], 1
cmp byte [r10 + 0x13], 2
ja 0x8ba0aa
jne 0x8ba077
test byte [rbx + 0x28], 0x20
je 0x8ba43c
mov edx, 3
mov rcx, rbx
mov dword [rsp + 0x40], r11d
mov qword [rsp + 0x38], r10
call fcn.00863840
mov r11d, dword [rsp + 0x40]
mov r10, qword [rsp + 0x38]
cmp word [r10 + 0x15], 0x2040
je 0x8ba399
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 0x70]
mov r15d, 0x1a
mov r12d, 0x1a
call fcn.008b9060
mov qword [rbx + 0x18], 0
jmp 0x8b9dfe
mov r12d, dword [r14 + 0x30]
test r12d, r12d
jne 0x8ba2f0
mov rax, qword [r13]
cmp byte [rax + 0x66], 2
sete byte [r14 + 0x1a]
cmp byte [r14 + 0x15], 1
jne 0x8b9f20
mov r15, qword [r14 + 0x120]
test r15, r15
je 0x8b9ed0
cmp byte [r14 + 8], 0
je 0x8ba156
cmp byte [r15 + 0x3f], 0
jne 0x8ba156
movzx eax, byte [r14 + 0x16]
cmp al, 3
jbe 0x8ba375
cmp al, 5
je 0x8ba375
mov r12, r15
cmp byte [r12 + 0x3f], 0
mov r15, r12
jne 0x8ba150
movsx edx, word [r12 + 0x3c]
mov rcx, qword [r12 + 8]
add edx, 3
call fcn.0086d1d0
mov r15, qword [r14 + 0x120]
mov byte [r12 + 0x3f], 1
cmp byte [r15 + 0x42], 0
jne 0x8b9df2
cmp byte [r15 + 0x3f], 0
jne 0x8ba184
mov rcx, qword [r15 + 8]
mov r8d, 1
xor edx, edx
call fcn.0086d1f0
mov r12d, eax
test eax, eax
jne 0x8ba2f0
mov rax, qword [r15 + 0x30]
mov rdx, qword [r15 + 0x48]
mov byte [r15 + 0x40], 1
mov rcx, qword [r15 + 0x50]
mov rax, qword [rax]
xor rcx, qword [rax + 8]
xor rdx, qword [rax]
or rcx, rdx
jne 0x8ba1d8
mov rdx, qword [r15 + 0x58]
mov rcx, qword [r15 + 0x60]
xor rdx, qword [rax + 0x10]
xor rcx, qword [rax + 0x18]
or rcx, rdx
jne 0x8ba1d8
mov rdx, qword [r15 + 0x68]
mov rcx, qword [r15 + 0x70]
xor rdx, qword [rax + 0x20]
xor rcx, qword [rax + 0x28]
or rcx, rdx
je 0x8b9f03
nop word [rax + rax]
cmp byte [r15 + 0x3f], 0
jne 0x8ba1f0
mov rcx, qword [r15 + 8]
mov r8d, 1
xor edx, edx
call fcn.0086d270
mov byte [r15 + 0x40], 0
cmp byte [rbx + 0x24], 0
jne 0x8ba308
lea rcx, [rbx + 0x18]
mov r15d, 5
mov r12d, 5
jmp 0x8b9e0c
mov byte [r13 + 0x10], 1
test al, al
jne 0x8ba225
mov byte [rbx + 0x24], 1
test rdi, rdi
jne 0x8b9e55
nop
xor r12d, r12d
jmp 0x8b9ea0
or eax, 0x10
mov word [rbx + 0x28], ax
jmp 0x8b9dcb
test r11d, r11d
je 0x8ba25e
test rdx, rdx
je 0x8ba36d
mov r9d, dword [rbx + 0x38]
xor r15d, r15d
lea ecx, [r9 - 0xc]
sub r9d, 0x23
mov qword [rbx + 0x18], rax
mov edx, ecx
shl ecx, 5
mov word [rbx + 0x2e], r9w
shl edx, 6
imul rcx, rbp
mov dword [rbx + 0x40], r15d
imul rdx, rbp
shr rcx, 0x27
shr rdx, 0x27
sub ecx, 0x17
sub edx, 0x17
mov word [rbx + 0x2c], cx
mov word [rbx + 0x30], cx
cmp dx, 0x7f
mov ecx, 0x7f
mov word [rbx + 0x2a], dx
cmova edx, ecx
mov byte [rbx + 0x25], dl
jmp 0x8b9e31
mov rcx, r13
call fcn.0086d530
jmp 0x8b9eb2
mov edx, 2
mov rcx, r14
call fcn.0086cc80
mov r12d, eax
cmp esi, 1
jle 0x8b9efa
test eax, eax
je 0x8b9eea
nop
cmp r12d, 0x205
jne 0x8b9e3f
jmp 0x8ba1f5
mov r12d, 0x205
jmp 0x8b9ea0
mov byte [r13 + 0x3c], 1
mov rax, qword [rbx + 0x78]
mov qword [r13 + 0x40], rax
lea rax, [r13 + 0x30]
mov qword [rbx + 0x78], rax
jmp 0x8b9f60
mov byte [rbx + 0x24], 2
jmp 0x8b9f79
mov rcx, qword [rbp + 0x70]
call fcn.008b6bc0
mov r12d, eax
test eax, eax
jne 0x8b9ea0
mov eax, dword [rbx + 0x40]
mov rdx, qword [rbp + 0x50]
bswap eax
mov dword [rdx + 0x1c], eax
jmp 0x8b9fac
mov r15d, r11d
jmp 0x8ba038
mov edx, 4
mov rcx, r14
call fcn.0086cc80
mov r12d, eax
test eax, eax
jne 0x8ba2f0
mov r12, qword [r14 + 0x120]
jmp 0x8ba12b
cmp byte [r10 + 0x17], 0x20
jne 0x8ba0a5
movzx eax, byte [r10 + 0x10]
shl eax, 8
mov edx, eax
movzx eax, byte [r10 + 0x11]
shl eax, 0x10
or eax, edx
lea edx, [rax - 1]
test edx, eax
jne 0x8ba0a5
lea edx, [rax - 0x101]
cmp edx, 0xfeff
ja 0x8ba0a5
or word [rbx + 0x28], 2
movzx r8d, byte [r10 + 0x14]
mov r9d, eax
sub r9d, r8d
cmp eax, dword [rbx + 0x34]
jne 0x8ba490
cmp r11d, r15d
jae 0x8ba40d
mov rax, qword [rbx + 8]
mov r15d, r11d
mov rax, qword [rax + 0x30]
and eax, 0x10000001
cmp rax, 1
jne 0x8ba559
mov rax, qword [rsp + 0x58]
cmp r9d, 0x1df
jbe 0x8ba0aa
mov dword [rbx + 0x38], r9d
mov edx, dword [r10 + 0x34]
test edx, edx
setne byte [rbx + 0x21]
mov ecx, dword [r10 + 0x40]
test ecx, ecx
setne byte [rbx + 0x22]
jmp 0x8ba265
lea rdx, [rsp + 0x54]
mov dword [rsp + 0x4c], r11d
mov qword [rsp + 0x40], r10
mov dword [rsp + 0x54], 0
call fcn.00878cd0
mov r10, qword [rsp + 0x40]
mov r11d, dword [rsp + 0x4c]
test eax, eax
mov dword [rsp + 0x38], eax
je 0x8ba510
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdx + 0x70]
call fcn.008b9060
mov eax, dword [rsp + 0x38]
mov qword [rbx + 0x18], 0
mov r12d, eax
jmp 0x8b9e3f
mov rdx, qword [rsp + 0x58]
mov dword [rsp + 0x4c], r8d
mov dword [rsp + 0x40], r9d
mov rcx, qword [rdx + 0x70]
mov dword [rsp + 0x38], eax
call fcn.008b9060
mov rcx, qword [rbx + 0x88]
mov r9d, dword [rsp + 0x40]
mov eax, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x4c]
test rcx, rcx
mov dword [rbx + 0x38], r9d
mov dword [rbx + 0x34], eax
je 0x8ba4f2
sub rcx, 4
mov dword [rsp + 0x38], r8d
mov qword [rbx + 0x88], rcx
call fcn.0086c7a0
mov r8d, dword [rsp + 0x38]
mov qword [rbx + 0x88], 0
mov rcx, qword [rbx]
lea rdx, [rbx + 0x34]
call fcn.00878d60
mov r12d, eax
test eax, eax
je 0x8b9e2d
jmp 0x8b9e3f
mov edx, 2
mov rcx, rbx
mov dword [rsp + 0x40], r11d
mov qword [rsp + 0x38], r10
call fcn.00863840
mov r8d, dword [rsp + 0x54]
mov r10, qword [rsp + 0x38]
mov r11d, dword [rsp + 0x40]
test r8d, r8d
jne 0x8ba098
mov rax, qword [rsp + 0x58]
xor r12d, r12d
mov rcx, qword [rax + 0x70]
call fcn.008b9060
mov rax, qword [rbx + 0x18]
jmp 0x8b9e31
lea rax, [0x010daf5c]
mov r9d, 0x10efb
lea r8, str.database_corruption
mov ecx, 0xb
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov r15d, 0xb
mov r12d, 0xb
call fcn.0088ac50
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 0x70]
call fcn.008b9060
mov qword [rbx + 0x18], 0
jmp 0x8b9dfe