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

Disassembly:
push rbx
push rbp
push rdi
push r13
sub rsp, 0x58
mov ebp, r9d
mov ebx, r8d
mov r13d, edx
mov rdi, rcx
cmp r8d, 2
jae 0x180094ba1
xor r8d, r8d
jmp 0x180094bd8
mov eax, 0xcccccccd
mul dword [rcx + 0x34]
lea eax, [r8 - 2]
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
xor edx, edx
mov r8d, eax
mov eax, dword [0x18010b710]
div dword [rdi + 0x30]
imul r8d, ecx
inc eax
add r8d, 2
cmp r8d, eax
jne 0x180094bd8
inc r8d
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x50], r15
cmp r8d, ebx
je 0x180094dd7
mov eax, dword [0x18010b710]
xor edx, edx
div dword [rdi + 0x30]
inc eax
cmp ebx, eax
je 0x180094dd7
mov rax, qword [rdi + 0x18]
mov rdx, qword [rax + 0x50]
movzx eax, byte [rdx + 0x26]
movzx ecx, byte [rdx + 0x25]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x24]
shl eax, 0x18
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x27]
or ecx, eax
jne 0x180094c3c
lea eax, [rcx + 0x65]
jmp 0x180094e33
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x90]
mov edx, ebx
mov rcx, rdi
call fcn.18008b080
test eax, eax
jne 0x180094e33
cmp byte [rsp + 0x90], 1
jne 0x180094c8b
lea r9, [0x1800eff54]
lea rdx, str.database_corruption_at_line__d_of___.10s_
lea ecx, [rax + 0xb]
mov r8d, 0xda35
call sym.SQLite.Interop.dll_sqlite3_log
mov eax, 0xb
jmp 0x180094e33
cmp byte [rsp + 0x90], 2
jne 0x180094cde
test ebp, ebp
jne 0x180094e31
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov r9d, ebx
mov rcx, rdi
mov byte [rsp + 0x20], 1
call fcn.18008c7c0
test eax, eax
jne 0x180094e33
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180094ddb
mov rcx, qword [rcx + 0x68]
call fcn.180024230
jmp 0x180094ddb
mov rcx, qword [rdi]
lea r8, [rsp + 0x38]
xor esi, esi
xor r9d, r9d
mov edx, ebx
xor r15b, r15b
mov dword [rsp + 0x30], esi
call fcn.18008a230
test eax, eax
jne 0x180094e33
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + 8]
mov r12, qword [rcx + 0x10]
mov qword [r12 + 0x50], rax
xor eax, eax
cmp ebx, 1
mov qword [r12 + 0x68], rcx
mov ecx, 0x64
mov qword [r12 + 0x48], rdi
cmove eax, ecx
mov dword [r12 + 0x70], ebx
mov byte [r12 + 6], al
test ebp, ebp
jne 0x180094d50
mov r15b, 2
mov esi, r13d
mov dword [rsp + 0x30], r13d
nop word [rax + rax]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
mov r9d, esi
mov rcx, rdi
mov byte [rsp + 0x20], r15b
call fcn.18008c7c0
mov esi, eax
test eax, eax
jne 0x180094dc9
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180094d83
mov rcx, qword [rcx + 0x68]
call fcn.180024230
mov eax, dword [rsp + 0x38]
test ebp, ebp
je 0x180094d94
mov esi, dword [rsp + 0x30]
cmp eax, r13d
ja 0x180094d50
mov r9d, dword [rsp + 0x40]
movzx r8d, byte [rsp + 0x90]
mov rdx, r12
mov rcx, rdi
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], eax
call fcn.180091c30
mov rcx, qword [r12 + 0x68]
mov esi, eax
call fcn.180024230
test esi, esi
je 0x180094dd7
mov eax, esi
jmp 0x180094e33
mov rcx, qword [r12 + 0x68]
call fcn.180024230
mov eax, esi
jmp 0x180094e33
test ebp, ebp
jne 0x180094e31
mov eax, dword [0x18010b710]
xor edx, edx
lea r8d, [rbx - 2]
div dword [rdi + 0x30]
lea r9d, [rax + 1]
nop
dec ebx
dec r8d
cmp ebx, r9d
je 0x180094df0
cmp ebx, 2
jae 0x180094e03
xor eax, eax
jmp 0x180094e26
mov eax, 0xcccccccd
mul dword [rdi + 0x34]
mov eax, r8d
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
imul eax, ecx
add eax, 2
cmp eax, r9d
jne 0x180094e26
inc eax
cmp eax, ebx
je 0x180094df0
mov byte [rdi + 0x23], 1
mov dword [rdi + 0x3c], ebx
xor eax, eax
mov r15, qword [rsp + 0x50]
mov r12, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
add rsp, 0x58
pop r13
pop rdi
pop rbp
pop rbx
ret