Function at 0x6e0580
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, 0x58
mov rbx, qword [rcx + 8]
cmp byte [rcx + 0x11], 0
mov r13, qword [rbx]
mov rsi, rcx
mov edi, edx
mov rbp, r8
je 0x6e05b3
add dword [rcx + 0x14], 1
cmp byte [rcx + 0x12], 0
je 0x6e06c0
movzx eax, byte [rsi + 0x10]
cmp al, 2
je 0x6e06d1
test edi, edi
jne 0x6e05cb
cmp al, 1
je 0x6e074c
mov rax, qword [rsi]
movzx edx, word [rbx + 0x28]
test byte [rax + 0x33], 2
je 0x6e0620
cmp byte [r13 + 0x12], 0
jne 0x6e0620
and edx, 0xfffffffe
mov word [rbx + 0x28], dx
test edi, edi
je 0x6e0632
cmp byte [rbx + 0x24], 2
je 0x6e0637
test dl, 0x80
jne 0x6e0637
cmp edi, 1
jle 0x6e064a
mov rax, qword [rbx + 0x78]
test rax, rax
jne 0x6e0611
jmp 0x6e064a
mov rax, qword [rax + 0x10]
test rax, rax
je 0x6e064a
mov rcx, qword [rax]
cmp rcx, rsi
je 0x6e0608
mov rax, qword [rcx]
jmp 0x6e0641
mov eax, edx
and eax, 1
test ax, ax
je 0x6e05e6
test edi, edi
jne 0x6e0710
test dl, 0x80
je 0x6e064a
mov rax, qword [rbx + 0x80]
mov rax, qword [rax]
test rax, rax
jne 0x6e0c60
cmp byte [rsi + 0x11], 0
je 0x6e0760
mov rax, qword [rsi + 8]
cmp rsi, qword [rax + 0x80]
je 0x6e0667
test byte [rax + 0x28], 0x40
jne 0x6e0696
mov rax, qword [rax + 0x78]
test rax, rax
jne 0x6e0685
jmp 0x6e0760
mov rax, qword [rax + 0x10]
test rax, rax
je 0x6e0760
cmp rsi, qword [rax]
je 0x6e0678
cmp dword [rax + 8], 1
jne 0x6e0678
cmp byte [rax + 0xc], 1
je 0x6e0678
mov r12d, 0x106
nop dword [rax]
sub dword [rsi + 0x14], 1
jne 0x6e072a
mov rcx, qword [rsi + 8]
lea rdx, [rsi + 0x12]
call fcn.00845580
jmp 0x6e072a
call fcn.006e2000
movzx eax, byte [rsi + 0x10]
cmp al, 2
jne 0x6e05bf
test rbp, rbp
je 0x6e06e6
mov rax, qword [rbx + 0x18]
mov rax, qword [rax + 0x50]
mov eax, dword [rax + 0x28]
bswap eax
mov dword [rbp], eax
test edi, edi
je 0x6e0758
mov rax, qword [rsi]
mov edx, dword [rax + 0x2f0]
cmp edx, dword [r13 + 0x80]
jle 0x6e0758
cmp byte [r13 + 0xa], 0
je 0x6e0758
mov rcx, r13
call fcn.007624d0
mov r12d, eax
jmp 0x6e0720
mov r12d, 8
nop word cs:[rax + rax]
cmp byte [rsi + 0x11], 0
jne 0x6e06a0
mov eax, r12d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov byte [rsi + 0x10], 1
test al, al
jne 0x6e074c
mov byte [rbx + 0x24], 1
test rbp, rbp
jne 0x6e06d6
nop dword [rax]
xor r12d, r12d
jmp 0x6e0720
mov r9d, dword [rbx + 0x40]
and edx, 0xffffffef
mov word [rbx + 0x28], dx
test r9d, r9d
je 0x6e0c70
mov rax, qword [rbx + 0x18]
xor r12d, r12d
mov r14d, 0x80808081
test rax, rax
je 0x6e0860
test r12d, r12d
jne 0x6e0960
test edi, edi
je 0x6e0a78
test byte [rbx + 0x28], 1
je 0x6e0af8
cmp byte [rbx + 0x24], 0
jne 0x6e0710
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x6e0710
mov rcx, qword [rax + 0x70]
mov qword [rbx + 0x18], 0
mov r8, qword [rcx + 0x28]
mov qword [rsp + 0x30], r8
call fcn.007e0920
mov r8, qword [rsp + 0x30]
mov rax, qword [r8 + 0x120]
cmp qword [rax + 0x18], 0
jne 0x6e0710
mov r12d, 8
mov r15d, 8
mov rcx, r8
call fcn.007635d0
nop dword [rax]
cmp r15d, 5
jne 0x6e0720
cmp byte [rbx + 0x24], 0
jne 0x6e0720
mov r15, qword [rbx + 8]
mov rax, qword [r15 + 0x288]
test rax, rax
je 0x6e0720
mov edx, dword [r15 + 0x298]
test edx, edx
js 0x6e0720
mov rcx, qword [r15 + 0x290]
call rax
test eax, eax
jne 0x6e09b8
mov dword [r15 + 0x298], 0xffffffff
jmp 0x6e0720
mov rcx, qword [rbx]
call fcn.007df0c0
mov r12d, eax
test eax, eax
jne 0x6e0960
xor r9d, r9d
lea r8, [rsp + 0x48]
mov edx, 1
mov rcx, rbx
call fcn.006e17b0
mov r12d, eax
test eax, eax
jne 0x6e0960
mov rax, qword [rsp + 0x48]
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 0x6e0c80
mov r9d, dword [r10 + 0x5c]
cmp dword [r10 + 0x18], r9d
jne 0x6e0c80
test rdx, rdx
jne 0x6e0c8e
movabs r8, 0x332074616d726f
xor r8, qword [r10 + 8]
movabs rdx, 0x66206574694c5153
xor rdx, qword [r10]
or r8, rdx
jne 0x6e0d80
cmp byte [r10 + 0x12], 2
jbe 0x6e0908
or word [rbx + 0x28], 1
cmp byte [r10 + 0x13], 2
ja 0x6e0d80
je 0x6e0dc4
cmp word [r10 + 0x15], 0x2040
je 0x6e0e40
mov rax, qword [rsp + 0x48]
mov r12d, 0x1a
mov rcx, qword [rax + 0x70]
mov r15, qword [rcx + 0x28]
call fcn.007e0920
mov rax, qword [r15 + 0x120]
cmp qword [rax + 0x18], 0
je 0x6e0db7
mov qword [rbx + 0x18], 0
nop dword [rax + rax]
cmp byte [rbx + 0x24], 0
movzx r15d, r12b
jne 0x6e0808
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x6e0808
mov rcx, qword [rax + 0x70]
mov qword [rbx + 0x18], 0
mov r8, qword [rcx + 0x28]
mov qword [rsp + 0x30], r8
call fcn.007e0920
mov r8, qword [rsp + 0x30]
mov rax, qword [r8 + 0x120]
cmp qword [rax + 0x18], 0
jne 0x6e0808
jmp 0x6e07f9
add dword [r15 + 0x298], 1
mov rax, qword [rbx + 0x18]
jmp 0x6e0781
movzx eax, byte [r13 + 0x16]
cmp al, 5
je 0x6e0ce8
cmp al, 1
jbe 0x6e0ce8
cmp edi, 1
jle 0x6e0a3a
jmp 0x6e0a26
mov rcx, qword [r13 + 0x48]
mov edx, 4
mov rax, qword [rcx]
call qword [rax + 0x38]
mov r12d, eax
test eax, eax
je 0x6e0a35
cmp eax, 5
jne 0x6e0d10
mov rcx, qword [r13 + 0xf0]
call qword [r13 + 0xe8]
test eax, eax
je 0x6e0fcb
movzx eax, byte [r13 + 0x16]
cmp al, 5
je 0x6e0a2e
cmp al, 3
ja 0x6e0a3a
cmp byte [r13 + 0x11], 0
je 0x6e09ec
mov byte [r13 + 0x16], 4
mov eax, dword [r13 + 0x20]
mov byte [r13 + 0x15], 2
mov qword [r13 + 0x60], 0
mov dword [r13 + 0x2c], eax
mov dword [r13 + 0x28], eax
mov dword [r13 + 0x24], eax
nop word [rax + rax]
mov eax, dword [rbx + 0x40]
test eax, eax
jne 0x6e0a81
mov rcx, rbx
call fcn.0075e700
mov r12d, eax
nop word [rax + rax]
test r12d, r12d
jne 0x6e0960
cmp byte [rsi + 0x10], 0
jne 0x6e0a98
add dword [rbx + 0x3c], 1
cmp byte [rsi + 0x11], 0
jne 0x6e0d38
nop dword [rax]
movzx eax, byte [rbx + 0x24]
test edi, edi
je 0x6e0740
mov byte [rsi + 0x10], 2
cmp al, 1
ja 0x6e0ab0
mov byte [rbx + 0x24], 2
movzx eax, word [rbx + 0x28]
mov r14, qword [rbx + 0x18]
mov qword [rbx + 0x80], rsi
mov edx, eax
or eax, 0x40
and edx, 0xffffffbf
cmp edi, 2
cmovl eax, edx
mov word [rbx + 0x28], ax
mov rax, qword [r14 + 0x50]
mov eax, dword [rax + 0x1c]
bswap eax
cmp dword [rbx + 0x40], eax
jne 0x6e0d58
test rbp, rbp
jne 0x6e06d6
jmp 0x6e06ea
mov r12d, dword [r13 + 0x30]
test r12d, r12d
jne 0x6e0d10
mov rax, qword [rsi]
cmp byte [rax + 0x66], 2
sete byte [r13 + 0x1a]
cmp byte [r13 + 0x15], 1
jne 0x6e0a60
mov r15, qword [r13 + 0x128]
test r15, r15
je 0x6e09d0
cmp byte [r13 + 8], 0
je 0x6e0b8a
cmp byte [r15 + 0x3f], 0
jne 0x6e0b8a
movzx eax, byte [r13 + 0x16]
cmp al, 5
je 0x6e0d93
cmp al, 3
jbe 0x6e0d93
mov r12, r15
cmp byte [r12 + 0x3f], 0
mov r15, r12
jne 0x6e0b84
mov rcx, qword [r12 + 8]
movsx edx, word [r12 + 0x3c]
mov r9d, 5
mov r8d, 1
mov rax, qword [rcx]
add edx, 3
call qword [rax + 0x70]
mov r15, qword [r13 + 0x128]
mov byte [r12 + 0x3f], 1
cmp byte [r15 + 0x42], 0
jne 0x6e07a5
cmp byte [r15 + 0x3f], 0
jne 0x6e0bbf
mov rcx, qword [r15 + 8]
mov r9d, 0xa
mov r8d, 1
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x70]
mov r12d, eax
test eax, eax
jne 0x6e0d10
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 0x6e0c10
mov rdx, qword [r15 + 0x58]
mov rcx, qword [r15 + 0x60]
xor rdx, qword [rax + 0x10]
xor rcx, qword [rax + 0x18]
or rcx, rdx
jne 0x6e0c10
mov rdx, qword [r15 + 0x68]
mov rcx, qword [r15 + 0x70]
xor rdx, qword [rax + 0x20]
xor rcx, qword [rax + 0x28]
or rcx, rdx
je 0x6e0a3a
nop dword [rax]
cmp byte [r15 + 0x3f], 0
jne 0x6e0c2f
mov rcx, qword [r15 + 8]
mov r9d, 9
mov r8d, 1
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x70]
mov byte [r15 + 0x40], 0
cmp byte [rbx + 0x24], 0
jne 0x6e0d28
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x6e1014
mov r12d, 5
jmp 0x6e0812
mov r12d, 0x106
jmp 0x6e0720
or edx, 0x10
mov word [rbx + 0x28], dx
jmp 0x6e0774
test r11d, r11d
je 0x6e0c8e
test rdx, rdx
je 0x6e0d8b
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, r14
mov dword [rbx + 0x40], r15d
imul rdx, r14
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 0x6e0781
mov edx, 2
mov rcx, r13
call fcn.00762490
mov r12d, eax
cmp edi, 1
jle 0x6e1007
test eax, eax
je 0x6e0a21
nop dword [rax]
cmp r12d, 0x205
jne 0x6e0960
jmp 0x6e0c34
mov r12d, 0x205
jmp 0x6e0720
mov byte [rsi + 0x3c], 1
mov rax, qword [rbx + 0x78]
mov qword [rsi + 0x40], rax
lea rax, [rsi + 0x30]
mov qword [rbx + 0x78], rax
jmp 0x6e0a98
mov rcx, qword [r14 + 0x70]
call fcn.007df9e0
mov r12d, eax
test eax, eax
jne 0x6e0720
mov eax, dword [rbx + 0x40]
mov rdx, qword [r14 + 0x50]
bswap eax
mov dword [rdx + 0x1c], eax
jmp 0x6e0ae3
mov r12d, 0x1a
jmp 0x6e0931
mov r15d, r11d
jmp 0x6e08d8
mov edx, 4
mov rcx, r13
call fcn.00762490
mov r12d, eax
test eax, eax
jne 0x6e0d10
mov r12, qword [r13 + 0x128]
jmp 0x6e0b52
mov rcx, r15
call fcn.007635d0
jmp 0x6e0950
test byte [rbx + 0x28], 0x20
jne 0x6e0919
lea rdx, [rsp + 0x44]
mov dword [rsp + 0x38], r11d
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x44], 0
call fcn.007dea60
mov r10, qword [rsp + 0x30]
mov r11d, dword [rsp + 0x38]
test eax, eax
mov edx, eax
jne 0x6e0fed
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x6e0919
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x70]
mov r12, qword [rcx + 0x28]
call fcn.007e0920
mov rax, qword [r12 + 0x120]
cmp qword [rax + 0x18], 0
je 0x6e0ffa
mov rax, qword [rbx + 0x18]
xor r12d, r12d
jmp 0x6e0781
cmp byte [r10 + 0x17], 0x20
jne 0x6e0926
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 0x6e0926
lea edx, [rax - 0x101]
cmp edx, 0xfeff
ja 0x6e0926
movzx r8d, byte [r10 + 0x14]
mov r9d, eax
sub r9d, r8d
cmp eax, dword [rbx + 0x34]
jne 0x6e0edf
cmp r11d, r15d
jae 0x6e0eab
mov rax, qword [rbx + 8]
mov r15d, r11d
mov rax, qword [rax + 0x30]
and eax, 0x10000001
cmp rax, 1
jne 0x6e0f91
mov rax, qword [rsp + 0x48]
cmp r9d, 0x1df
jbe 0x6e0d80
or word [rbx + 0x28], 2
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 0x6e0c95
mov rdx, qword [rsp + 0x48]
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x38], r9d
mov rcx, qword [rdx + 0x70]
mov dword [rsp + 0x30], eax
mov r12, qword [rcx + 0x28]
call fcn.007e0920
mov eax, dword [rsp + 0x30]
mov r9d, dword [rsp + 0x38]
mov rdx, qword [r12 + 0x120]
mov r8d, dword [rsp + 0x3c]
cmp qword [rdx + 0x18], 0
je 0x6e0f79
mov rcx, qword [rbx + 0x88]
or word [rbx + 0x28], 2
mov dword [rbx + 0x38], r9d
mov dword [rbx + 0x34], eax
test rcx, rcx
je 0x6e0f59
sub rcx, 4
mov dword [rsp + 0x30], r8d
mov qword [rbx + 0x88], rcx
call fcn.00769200
mov r8d, dword [rsp + 0x30]
mov qword [rbx + 0x88], 0
mov rcx, qword [rbx]
lea rdx, [rbx + 0x34]
call fcn.007deee0
mov r12d, eax
test eax, eax
jne 0x6e0960
mov rax, qword [rbx + 0x18]
jmp 0x6e0781
mov rcx, r12
call fcn.007635d0
mov r8d, dword [rsp + 0x3c]
mov r9d, dword [rsp + 0x38]
mov eax, dword [rsp + 0x30]
jmp 0x6e0f1c
lea rax, [0x009569cc]
mov r9d, 0x11d7b
lea r8, str.database_corruption
mov ecx, 0xb
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov r12d, 0xb
call fcn.0082f270
mov rax, qword [rsp + 0x48]
jmp 0x6e0931
cmp byte [rbx + 0x24], 0
jne 0x6e0812
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x6e0812
mov r15d, 5
jmp 0x6e097b
mov rax, qword [rsp + 0x48]
mov r12d, edx
jmp 0x6e0931
mov rcx, r12
call fcn.007635d0
jmp 0x6e0e31
test eax, eax
je 0x6e0a3a
jmp 0x6e0d10
mov rcx, qword [rax + 0x70]
mov qword [rbx + 0x18], 0
mov r8, qword [rcx + 0x28]
mov qword [rsp + 0x30], r8
call fcn.007e0920
mov r8, qword [rsp + 0x30]
mov rax, qword [r8 + 0x120]
cmp qword [rax + 0x18], 0
jne 0x6e0c4b
mov r12d, 5
mov r15d, 5
jmp 0x6e07f9