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

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x30
movzx eax, byte [rcx + 0x5e]
mov rsi, rdx
mov rbx, rcx
cmp al, 1
je 0x14006f2dc
cmp al, 3
jb 0x14006f299
call fcn.14006e960
test eax, eax
jne 0x14006f3ab
cmp byte [rbx + 0x5e], 0
jne 0x14006f2b2
mov dword [rsi], 1
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
mov eax, dword [rbx + 0x58]
test eax, eax
je 0x14006f2dc
test eax, eax
mov byte [rbx + 0x5e], 1
jle 0x14006f2d5
mov dword [rbx + 0x58], 0
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
mov dword [rbx + 0x58], 0
movsx rax, byte [rbx + 0x60]
mov r8, qword [rbx + rax*8 + 0xa0]
add word [rbx + rax*2 + 0x78], 1
movsx rdx, byte [rbx + 0x60]
movzx eax, word [r8 + 0x12]
mov rcx, rdx
cmp word [rbx + rdx*2 + 0x78], ax
jb 0x14006f4ee
cmp byte [r8 + 5], 0
mov qword [rsp + 0x40], rdi
jne 0x14006f3d0
cmp dl, 0x13
movzx ecx, byte [r8 + 6]
mov rax, qword [r8 + 0x50]
mov r10d, dword [rcx + rax + 8]
mov rcx, qword [rbx + 8]
jl 0x14006f360
mov edi, 0xb
lea r9, [0x1400b0b4c]
lea rdx, str.database_corruption_at_line__d_of___.10s_
mov ecx, edi
mov r8d, 0xe4d0
call fcn.140034d20
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
and byte [rbx + 0x5c], 0xf9
add dl, 1
mov word [rbx + 0x38], 0
movsx rax, dl
mov byte [rbx + 0x60], dl
bswap r10d
mov word [rbx + rax*2 + 0x78], 0
movzx r9d, byte [rbx + 0x5d]
movsx rax, byte [rbx + 0x60]
mov dword [rsp + 0x20], r9d
lea r8, [rbx + rax*8 + 0xa0]
mov edx, r10d
mov r9, rbx
call fcn.14005cdf0
test eax, eax
mov edi, eax
je 0x14006f3b6
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
mov rcx, rbx
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
jmp fcn.140069090
test dl, dl
je 0x14006f4d2
and byte [rbx + 0x5c], 0xf9
mov word [rbx + 0x38], 0
mov rax, qword [rbx + rcx*8 + 0xa0]
sub dl, 1
mov byte [rbx + 0x60], dl
mov r8, qword [rax + 0x70]
test byte [r8 + 0x2c], 0x40
mov rdi, qword [r8 + 0x20]
je 0x14006f43e
add dword [rdi + 0x98], 0xffffffff
mov rax, qword [rdi + 0xa8]
mov qword [r8 + 0x18], rax
mov rcx, qword [rdi + 0x48]
movsxd rax, dword [rdi + 0xbc]
mov qword [rdi + 0xa8], r8
mov edx, dword [r8 + 0x28]
mov r9, qword [rcx]
mov r8, qword [r8 + 8]
add edx, 0xffffffff
imul rdx, rax
call qword [r9 + 0x90]
jmp 0x14006f446
mov rcx, r8
call fcn.14000cd20
cmp dword [rdi + 0x98], 0
jne 0x14006f491
mov rax, qword [rdi + 0x110]
cmp dword [rax + 0x18], 0
jne 0x14006f491
movzx eax, byte [rdi + 0x14]
cmp al, 6
je 0x14006f489
test al, al
je 0x14006f489
cmp al, 2
jb 0x14006f476
mov rcx, rdi
call fcn.140056500
jmp 0x14006f489
cmp byte [rdi + 8], 0
jne 0x14006f489
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140014df0
mov rcx, rdi
call fcn.140019fc0
movsx rdx, byte [rbx + 0x60]
mov rcx, rdx
mov r8, qword [rbx + rdx*8 + 0xa0]
movzx eax, word [r8 + 0x12]
cmp word [rbx + rdx*2 + 0x78], ax
jae 0x14006f3d0
cmp byte [r8 + 2], 0
je 0x14006f4dc
mov rdx, rsi
mov rcx, rbx
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
jmp 0x140071180
mov dword [rsi], 1
mov byte [rbx + 0x5e], 0
xor eax, eax
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
cmp byte [r8 + 5], 0
jne 0x14006f2a5
mov rcx, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
jmp fcn.140069090
and byte [rcx + 0x5c], 0xf9
mov word [rcx + 0x38], 0
mov dword [rdx], 0
cmp byte [rcx + 0x5e], 1
jne 0x1400711c3
movsx rax, byte [rcx + 0x60]
mov r8, qword [rcx + rax*8 + 0xa0]
add word [rcx + rax*2 + 0x78], 1
movsx r9, byte [rcx + 0x60]
movzx eax, word [r8 + 0x12]
cmp word [rcx + r9*2 + 0x78], ax
jb 0x1400711c8
add word [rcx + r9*2 + 0x78], 0xffff
jmp fcn.14006f270
cmp byte [r8 + 5], 0
je 0x1400711d2
xor eax, eax
ret
jmp fcn.140069090