Function at 0x140086870
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 r14, qword [rbx]
mov rsi, rcx
mov r12d, edx
mov r13, r8
je 0x1400868a4
add dword [rcx + 0x14], 1
cmp byte [rcx + 0x12], 0
je 0x1400869c0
movzx eax, byte [rsi + 0x10]
cmp al, 2
je 0x1400869d1
cmp al, 1
jne 0x1400868bd
test r12d, r12d
je 0x140086e0f
mov rax, qword [rsi]
movzx edx, word [rbx + 0x28]
test byte [rax + 0x33], 2
je 0x140086920
cmp byte [r14 + 0x12], 0
jne 0x140086920
and edx, 0xfffffffe
mov word [rbx + 0x28], dx
test r12d, r12d
je 0x140086933
cmp byte [rbx + 0x24], 2
je 0x140086938
test dl, 0x80
jne 0x140086938
cmp r12d, 1
jle 0x14008694b
mov rax, qword [rbx + 0x78]
test rax, rax
jne 0x140086909
jmp 0x14008694b
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14008694b
mov rcx, qword [rax]
cmp rcx, rsi
je 0x140086900
mov rax, qword [rcx]
jmp 0x140086942
mov eax, edx
and eax, 1
test ax, ax
je 0x1400868d8
test r12d, r12d
jne 0x140086a48
test dl, 0x80
je 0x14008694b
mov rax, qword [rbx + 0x80]
mov rax, qword [rax]
test rax, rax
jne 0x140086e30
cmp byte [rsi + 0x11], 0
mov rax, qword [rsi + 8]
je 0x140086a10
cmp rsi, qword [rax + 0x80]
je 0x140086968
test byte [rax + 0x28], 0x40
jne 0x14008699e
mov rax, qword [rax + 0x78]
test rax, rax
jne 0x14008698d
jmp 0x140086a10
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140086a10
cmp rsi, qword [rax]
je 0x140086980
cmp dword [rax + 8], 1
jne 0x140086980
cmp byte [rax + 0xc], 1
je 0x140086980
mov ebp, 0x106
sub dword [rsi + 0x14], 1
jne 0x140086c07
mov rcx, rsi
call fcn.140003320
jmp 0x140086c07
call fcn.140007690
movzx eax, byte [rsi + 0x10]
cmp al, 2
jne 0x1400868b0
test r13, r13
je 0x1400869e7
mov rax, qword [rbx + 0x18]
mov rax, qword [rax + 0x50]
mov eax, dword [rax + 0x28]
bswap eax
mov dword [r13], eax
test r12d, r12d
je 0x140086a09
mov rax, qword [rsi]
mov edx, dword [rax + 0x2e8]
cmp edx, dword [r14 + 0x80]
jle 0x140086a09
cmp byte [r14 + 0xa], 0
jne 0x140086ec0
xor ebp, ebp
jmp 0x140086bfd
mov edi, dword [rbx + 0x40]
and edx, 0xffffffef
mov word [rbx + 0x28], dx
test edi, edi
je 0x140086dc8
mov rdi, qword [rbx + 0x18]
test rdi, rdi
je 0x140086a58
test r12d, r12d
je 0x140086dd8
test byte [rbx + 0x28], 1
je 0x140086c50
cmp byte [rbx + 0x24], 0
je 0x140086c38
mov ebp, 8
jmp 0x140086bfd
mov rcx, qword [rbx]
call fcn.140085c20
mov ebp, eax
test eax, eax
jne 0x140086b82
mov rax, qword [rbx]
lea r8, [rsp + 0x48]
xor r9d, r9d
mov edx, 1
mov qword [rsp + 0x30], r8
mov rcx, rax
call qword [rax + 0x110]
mov ebp, eax
test eax, eax
jne 0x140086b82
mov rax, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
mov rdi, qword [rax + 0x10]
cmp dword [rdi + 4], 1
je 0x140086ea0
mov r9, qword [rax + 8]
movq xmm0, rbx
mov qword [rdi + 0x70], rax
mov dword [rdi + 4], 1
movq xmm1, r9
mov byte [rdi + 9], 0x64
punpcklqdq xmm0, xmm1
movups xmmword [rdi + 0x48], xmm0
mov rcx, qword [rbx]
mov eax, dword [r9 + 0x1c]
mov r10d, dword [rcx + 0x20]
mov r15d, r10d
test eax, eax
je 0x140086aef
mov edx, dword [r9 + 0x18]
cmp dword [r9 + 0x5c], edx
je 0x140086ed0
mov rax, qword [rbx + 8]
test byte [rax + 0x33], 2
jne 0x140086b02
test r15d, r15d
jne 0x140086f78
mov r8d, dword [rbx + 0x38]
xor r15d, r15d
lea ecx, [r8 - 0xc]
mov r9d, 0x80808081
sub r8d, 0x23
mov qword [rbx + 0x18], rdi
mov eax, ecx
shl ecx, 5
mov word [rbx + 0x2e], r8w
mov edx, ecx
shl eax, 6
mov dword [rbx + 0x40], r15d
imul rdx, r9
imul rax, r9
shr rdx, 0x27
sub edx, 0x17
shr rax, 0x27
sub eax, 0x17
mov word [rbx + 0x2c], dx
mov word [rbx + 0x30], dx
mov edx, 0x7f
cmp ax, dx
mov word [rbx + 0x2a], ax
cmova eax, edx
mov byte [rbx + 0x25], al
jmp 0x140086a26
add dword [rdi + 0x290], 1
cmp qword [rbx + 0x18], 0
je 0x140086a58
test ebp, ebp
je 0x140086dd8
cmp byte [rbx + 0x24], 0
movzx r15d, bpl
jne 0x140086bbc
mov rdi, qword [rbx + 0x18]
test rdi, rdi
je 0x140086bbc
mov qword [rbx + 0x18], 0
mov rcx, qword [rdi + 0x70]
mov rdi, qword [rcx + 0x28]
call fcn.140011840
mov rax, qword [rdi + 0x120]
mov edx, dword [rax + 0x18]
test edx, edx
je 0x140086d80
cmp r15d, 5
jne 0x140086bfd
cmp byte [rbx + 0x24], 0
jne 0x140086bfd
mov rdi, qword [rbx + 8]
mov rax, qword [rdi + 0x280]
test rax, rax
je 0x140086bfd
mov edx, dword [rdi + 0x290]
test edx, edx
js 0x140086bfd
mov rcx, qword [rdi + 0x288]
call rax
test eax, eax
jne 0x140086b68
mov dword [rdi + 0x290], 0xffffffff
cmp byte [rsi + 0x11], 0
jne 0x1400869a3
mov eax, ebp
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rbx + 0x24], 0
jne 0x140086a48
mov rdi, qword [rbx + 0x18]
test rdi, rdi
je 0x140086a48
nop dword [rax]
mov r15d, 8
mov ebp, 8
jmp 0x140086b95
mov rax, qword [rsi]
mov ebp, dword [r14 + 0x30]
movzx eax, byte [rax + 0x66]
test ebp, ebp
jne 0x140086d20
cmp al, 2
sete byte [r14 + 0x1a]
cmp byte [r14 + 0x15], 1
je 0x140086c80
mov rcx, rbx
call fcn.140086740
mov ebp, eax
jmp 0x140086b7a
mov rdi, qword [r14 + 0x128]
test rdi, rdi
je 0x140086fdc
cmp byte [r14 + 8], 0
je 0x140086ce9
cmp byte [rdi + 0x3f], 0
jne 0x140086ee0
mov edx, 4
mov rcx, r14
call fcn.140003110
mov ebp, eax
test eax, eax
jne 0x140086d20
mov rdi, qword [r14 + 0x128]
cmp byte [rdi + 0x3f], 0
jne 0x140086cde
mov rcx, qword [rdi + 8]
movsx edx, word [rdi + 0x3c]
mov r9d, 5
mov r8d, 1
mov rax, qword [rcx]
add edx, 3
call qword [rax + 0x70]
mov byte [rdi + 0x3f], 1
mov rdi, qword [r14 + 0x128]
cmp byte [rdi + 0x42], 0
jne 0x140086c1a
cmp byte [rdi + 0x3f], 0
jne 0x140086eea
mov rcx, qword [rdi + 8]
mov r9d, 0xa
mov r8d, 1
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x70]
mov ebp, eax
test eax, eax
je 0x140086eea
nop
cmp ebp, 0x205
jne 0x140086b82
cmp byte [rbx + 0x24], 0
jne 0x140086eb0
mov rax, qword [rbx + 0x18]
mov ebp, 5
test rax, rax
je 0x140086bc8
mov qword [rbx + 0x18], 0
mov rcx, qword [rax + 0x70]
mov ebp, 5
mov rdi, qword [rcx + 0x28]
call fcn.140011840
mov rax, qword [rdi + 0x120]
mov eax, dword [rax + 0x18]
test eax, eax
jne 0x140086bc2
mov r15d, 5
mov ebp, 5
nop
movzx eax, byte [rdi + 0x15]
cmp al, 6
je 0x140086db8
test al, al
je 0x140086db8
cmp al, 1
je 0x140086fc0
mov rax, qword [0x1401f5390]
test rax, rax
je 0x140086da2
call rax
mov rcx, rdi
call fcn.1400835b0
mov rax, qword [0x1401f5398]
test rax, rax
je 0x140086db8
call rax
mov rcx, rdi
call fcn.140010360
jmp 0x140086bbc
or edx, 0x10
mov word [rbx + 0x28], dx
jmp 0x140086a22
cmp byte [rsi + 0x10], 0
jne 0x140086dfc
add dword [rbx + 0x3c], 1
cmp byte [rsi + 0x11], 0
je 0x140086dfc
mov byte [rsi + 0x3c], 1
mov rax, qword [rbx + 0x78]
mov qword [rsi + 0x40], rax
lea rax, [rsi + 0x30]
mov qword [rbx + 0x78], rax
test r12d, r12d
jne 0x140086e40
mov byte [rsi + 0x10], 1
cmp byte [rbx + 0x24], 0
jne 0x140086e0f
mov byte [rbx + 0x24], 1
test r13, r13
je 0x140086a09
mov rax, qword [rbx + 0x18]
xor ebp, ebp
mov rax, qword [rax + 0x50]
mov eax, dword [rax + 0x28]
bswap eax
mov dword [r13], eax
jmp 0x140086bfd
mov ebp, 0x106
jmp 0x140086bfd
mov byte [rsi + 0x10], 2
cmp byte [rbx + 0x24], 1
ja 0x140086e4e
mov byte [rbx + 0x24], 2
movzx eax, word [rbx + 0x28]
mov rdi, qword [rbx + 0x18]
mov qword [rbx + 0x80], rsi
mov edx, eax
or eax, 0x40
and edx, 0xffffffbf
cmp r12d, 1
cmovg edx, eax
mov word [rbx + 0x28], dx
mov rdx, qword [rdi + 0x50]
mov eax, dword [rdx + 0x1c]
bswap eax
cmp dword [rbx + 0x40], eax
jne 0x140086f34
test r13, r13
je 0x1400869ec
mov eax, dword [rdx + 0x28]
bswap eax
mov dword [r13], eax
jmp 0x1400869ec
mov r9, qword [rdi + 0x50]
jmp 0x140086acf
mov ebp, 0x205
jmp 0x140086bfd
mov rcx, r14
call fcn.140020a00
mov ebp, eax
jmp 0x140086bfd
bswap eax
mov r15d, eax
jmp 0x140086aef
cmp byte [rdi + 0x42], 0
jne 0x140086c1a
mov rax, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x50]
mov byte [rdi + 0x40], 1
mov rcx, qword [rax]
mov rax, qword [rdi + 0x48]
xor rdx, qword [rcx + 8]
xor rax, qword [rcx]
or rax, rdx
je 0x140087075
cmp byte [rdi + 0x3f], 0
jne 0x140086f2b
mov rcx, qword [rdi + 8]
mov r9d, 9
mov r8d, 1
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x70]
mov byte [rdi + 0x40], 0
jmp 0x140086d2c
mov rcx, qword [rdi + 0x70]
call fcn.1400805f0
mov ebp, eax
test eax, eax
jne 0x140086bfd
mov eax, dword [rbx + 0x40]
mov rdx, qword [rdi + 0x50]
bswap eax
mov dword [rdx + 0x1c], eax
test r13, r13
je 0x1400869ec
mov rax, qword [rbx + 0x18]
mov rax, qword [rax + 0x50]
mov eax, dword [rax + 0x28]
bswap eax
mov dword [r13], eax
jmp 0x1400869ec
movabs rax, 0x66206574694c5153
xor rax, qword [r9]
movabs rdx, 0x332074616d726f
xor rdx, qword [r9 + 8]
or rax, rdx
je 0x1400870a9
mov r15d, 0x1a
mov ebp, 0x1a
mov rcx, qword [rdi + 0x70]
call fcn.140083780
mov qword [rbx + 0x18], 0
jmp 0x140086bbc
cmp byte [rdi + 8], 0
jne 0x140086db8
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140014000
jmp 0x140086db8
mov edx, 2
mov rcx, r14
call fcn.140003110
mov ebp, eax
cmp r12d, 1
jle 0x140087271
test eax, eax
jne 0x140086d20
jmp 0x140087033
mov rcx, qword [r14 + 0x48]
mov edx, 4
mov rax, qword [rcx]
call qword [rax + 0x38]
mov ebp, eax
test eax, eax
je 0x140087047
cmp eax, 5
jne 0x140086d20
mov rcx, qword [r14 + 0xf0]
call qword [r14 + 0xe8]
test eax, eax
je 0x140086b82
movzx eax, byte [r14 + 0x16]
cmp al, 5
je 0x140087040
cmp al, 3
ja 0x14008704c
cmp byte [r14 + 0x11], 0
je 0x140086fff
mov byte [r14 + 0x16], 4
movd xmm0, dword [r14 + 0x20]
mov byte [r14 + 0x15], 2
mov qword [r14 + 0x60], 0
movd dword [r14 + 0x2c], xmm0
pshufd xmm0, xmm0, 0xe0
movq qword [r14 + 0x24], xmm0
jmp 0x140086c71
mov rax, qword [rdi + 0x58]
mov rdx, qword [rdi + 0x60]
xor rax, qword [rcx + 0x10]
xor rdx, qword [rcx + 0x18]
or rax, rdx
jne 0x140086f0d
mov rax, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
xor rax, qword [rcx + 0x20]
xor rdx, qword [rcx + 0x28]
or rax, rdx
jne 0x140086f0d
jmp 0x14008704c
cmp byte [r9 + 0x12], 2
jbe 0x1400870b5
or word [rbx + 0x28], 1
cmp byte [r9 + 0x13], 2
ja 0x140086f9c
je 0x140087170
cmp word [r9 + 0x15], 0x2040
jne 0x140086f9c
cmp byte [r9 + 0x17], 0x20
jne 0x140086f9c
movzx eax, byte [r9 + 0x10]
movzx edx, byte [r9 + 0x11]
shl eax, 8
shl edx, 0x10
or eax, edx
lea edx, [rax - 1]
test edx, eax
jne 0x140086f9c
lea edx, [rax - 0x101]
cmp edx, 0xfeff
ja 0x140086f9c
or word [rbx + 0x28], 2
movzx ebp, byte [r9 + 0x14]
mov r8d, eax
sub r8d, ebp
cmp eax, dword [rbx + 0x34]
jne 0x1400871c8
cmp r10d, r15d
jae 0x140087145
mov rax, qword [rbx + 8]
mov r15d, r10d
mov rax, qword [rax + 0x30]
and eax, 0x10000001
cmp rax, 1
jne 0x140087237
cmp r8d, 0x1df
jbe 0x140086f9c
mov dword [rbx + 0x38], r8d
mov ecx, dword [r9 + 0x34]
test ecx, ecx
setne byte [rbx + 0x21]
mov r9d, dword [r9 + 0x40]
test r9d, r9d
setne byte [rbx + 0x22]
jmp 0x140086b09
test byte [rbx + 0x28], 0x20
jne 0x1400870c6
mov rdx, r8
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x48], 0
call fcn.140017270
mov r10d, dword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
test eax, eax
mov ebp, eax
jne 0x14008722e
mov r11d, dword [rsp + 0x48]
test r11d, r11d
jne 0x1400870c6
mov rcx, qword [rdi + 0x70]
call fcn.140083780
mov rdi, qword [rbx + 0x18]
jmp 0x140086a26
mov rcx, qword [rdi + 0x70]
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], eax
call fcn.140083780
mov r8d, dword [rsp + 0x38]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rbx + 0x88]
mov dword [rbx + 0x38], r8d
mov dword [rbx + 0x34], eax
test rcx, rcx
je 0x140087210
sub rcx, 4
mov qword [rbx + 0x88], rcx
call fcn.140007fe0
xor r10d, r10d
mov qword [rbx + 0x88], r10
mov rcx, qword [rbx]
mov r8d, ebp
lea rdx, [rbx + 0x34]
call fcn.140015950
mov ebp, eax
test eax, eax
je 0x140086a22
jmp 0x140086b82
movzx r15d, al
jmp 0x140086fa7
mov r9d, 0x1170e
lea rax, [0x1401b108c]
lea r8, str.database_corruption
mov ecx, 0xb
mov qword [rsp + 0x20], rax
mov r15d, 0xb
mov ebp, 0xb
lea rdx, str._s_at_line__d_of___.10s_
call fcn.14002e120
jmp 0x140086fa7
test eax, eax
je 0x14008704c
jmp 0x140086d20