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

Disassembly:
push rbp
push rsi
push r13
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x1402e68f8]
xor rax, rsp
mov qword [rbp + 0x110], rax
xor esi, esi
mov dword [rbp - 0x50], r9d
mov r9, rcx
mov qword [rbp - 0x68], rcx
xor ecx, ecx
mov qword [rbp - 0x58], r8
mov dword [rsp + 0x4c], esi
mov r13d, esi
mov dword [rbp - 0x60], esi
mov r10, qword [r9 + 0x48]
mov qword [rbp - 0x80], r10
mov dword [rbp + 0xf8], ecx
mov byte [rbp + 0xfc], cl
mov dword [rbp - 0x30], esi
mov qword [rbp - 0x20], rsi
test r8, r8
jne 0x14017b16a
lea eax, [rsi + 7]
jmp 0x14017c70d
movzx ecx, word [r9 + 0x18]
movzx r8d, byte [r9 + 0xc]
mov qword [rsp + 0x278], rbx
mov qword [rsp + 0x238], rdi
mov qword [rsp + 0x230], r12
lea ebx, [r8 + rcx]
mov qword [rsp + 0x228], r14
mov qword [rsp + 0x220], r15
cmp ebx, 2
jae 0x14017b1a9
mov edx, esi
jmp 0x14017b1d1
test edx, edx
jne 0x14017b1b1
mov edx, esi
jmp 0x14017b1c4
cmp edx, ebx
jne 0x14017b1c2
mov eax, dword [rbp + 0x180]
lea edx, [rax - 2]
add edx, ebx
jmp 0x14017b1ca
dec edx
mov eax, dword [rbp + 0x180]
mov ebx, 2
sub ebx, eax
mov eax, edx
mov dword [rsp + 0x68], edx
sub eax, r8d
mov dword [rsp + 0x70], ebx
add eax, ebx
lea r12d, [rbx + 1]
mov dword [rsp + 0x6c], r12d
cmp eax, ecx
jne 0x14017b1f8
movzx ecx, byte [r9 + 9]
add rcx, 8
jmp 0x14017b214
add eax, eax
movsxd rcx, eax
mov rax, qword [r9 + 0x60]
movzx edx, word [rcx + rax]
movzx eax, word [r9 + 0x1a]
ror dx, 8
movzx ecx, dx
and rcx, rax
add rcx, qword [r9 + 0x50]
lea r8, [rbp + 0x58]
movsxd r15, ebx
xor r9d, r9d
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x40], r15
mov edx, dword [rcx]
mov rcx, r10
bswap edx
lea rdi, [r15*8]
mov dword [rbp - 0x78], edx
add r8, rdi
mov dword [rbp - 0x70], edx
mov dword [rsp + 0x20], esi
call fcn.140191c20
mov dword [rsp + 0x44], eax
mov r14d, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x14017b3d8
lea r15, [rbp + r15*4 + 0x40]
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbp + rdi + 0x58]
movsxd r12, ebx
cmp dword [rcx + 0x14], r13d
jge 0x14017b296
call fcn.14017d150
mov dword [rsp + 0x44], eax
mov r14d, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x14017b3ef
mov eax, ebx
sub r15, 4
dec ebx
sub rdi, 8
test eax, eax
je 0x14017b4d2
mov r14, qword [rbp - 0x68]
movzx edx, byte [r14 + 0xc]
test dl, dl
je 0x14017b2f2
mov eax, dword [rsp + 0x68]
movzx ecx, word [r14 + 0x1c]
add eax, ebx
cmp eax, ecx
jne 0x14017b2f2
mov rdx, qword [r14 + 0x28]
mov rcx, r14
mov qword [rbp + rdi + 0x100], rdx
mov eax, dword [rdx]
bswap eax
mov dword [rbp - 0x78], eax
mov dword [rbp - 0x70], eax
call qword [r14 + 0x78]
movzx eax, ax
mov dword [r15], eax
mov byte [r14 + 0xc], r13b
jmp 0x14017b3a7
mov rax, qword [r14 + 0x60]
mov ecx, dword [rsp + 0x68]
sub ecx, edx
add ecx, ebx
add ecx, ecx
movsxd rcx, ecx
movzx edx, word [rcx + rax]
mov rcx, r14
movzx eax, word [r14 + 0x1a]
ror dx, 8
movzx esi, dx
and rsi, rax
add rsi, qword [r14 + 0x50]
mov rdx, rsi
mov qword [rbp + rdi + 0x100], rsi
mov eax, dword [rsi]
bswap eax
mov dword [rbp - 0x78], eax
mov dword [rbp - 0x70], eax
call qword [r14 + 0x78]
mov rdx, qword [rbp - 0x80]
movzx r14d, ax
mov dword [r15], r14d
test byte [rdx + 0x28], 0xc
je 0x14017b388
mov rax, qword [rbp - 0x68]
mov ecx, esi
sub ecx, dword [rax + 0x50]
lea eax, [r14 + rcx]
cmp eax, dword [rdx + 0x38]
jg 0x14017b407
movsxd rcx, ecx
mov r8d, r14d
add rcx, qword [rbp - 0x58]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbp - 0x68]
mov rax, qword [rbp - 0x58]
sub rax, qword [rcx + 0x50]
add rax, rsi
mov qword [rbp + rdi + 0x100], rax
jmp 0x14017b38c
mov rcx, qword [rbp - 0x68]
movzx eax, byte [rcx + 0xc]
lea r9, [rsp + 0x40]
mov edx, dword [rsp + 0x68]
mov r8d, r14d
sub edx, eax
add edx, ebx
call fcn.140186c70
xor esi, esi
mov edx, dword [rbp - 0x78]
lea r8, [rbp + 0x58]
mov rcx, qword [rbp - 0x80]
xor r9d, r9d
movsxd rax, ebx
mov dword [rsp + 0x20], esi
lea r8, [r8 + rax*8]
call fcn.140191c20
mov dword [rsp + 0x44], eax
mov r14d, eax
mov dword [rsp + 0x40], eax
test eax, eax
je 0x14017b270
lea eax, [rbx + 1]
xor edx, edx
movsxd r8, eax
lea rcx, [rbp + 0x58]
shl r8, 3
call sub.VCRUNTIME140.dll_memset
jmp 0x14017b449
movsxd r8, ebx
lea rcx, [rbp + 0x58]
xor edx, edx
lea r8, [r8*8]
call sub.VCRUNTIME140.dll_memset
jmp 0x14017b449
lea rax, [0x140233074]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x11abd
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140176260
mov r8, r12
lea rcx, [rbp + 0x58]
shl r8, 3
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor esi, esi
movsxd rax, dword [rsp + 0x6c]
mov r15, qword [rsp + 0x220]
mov rdi, rax
mov r12, qword [rsp + 0x230]
test eax, eax
jle 0x14017c67c
mov rbx, rsi
nop dword [rax]
mov r8, qword [rbp + rbx*8 + 0x58]
test r8, r8
je 0x14017c670
mov r8, qword [r8 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x14017c668
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
movsxd rax, dword [r10 + 0xbc]
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
mov r9, qword [rcx]
imul rdx, rax
call qword [r9 + 0x90]
jmp 0x14017c670
mov rdi, qword [rbp - 0x80]
mov eax, 0xaaaaaaab
mov r14d, dword [rsp + 0x6c]
mov r8d, dword [rdi + 0x34]
lea ecx, [r8 - 8]
mul ecx
mov ebx, edx
shr ebx, 2
add ebx, 4
imul ebx, r14d
add ebx, 3
and ebx, 0xfffffffc
lea eax, [rbx + rbx*4]
lea ecx, [r8 + rax*2]
movsxd rcx, ecx
call fcn.1401cb3a0
mov qword [rbp - 0x20], rax
mov rdx, rax
test rax, rax
jne 0x14017b520
lea r14d, [rax + 7]
jmp 0x14017b449
mov rcx, qword [rbp + 0x58]
xor r12d, r12d
movsxd rax, ebx
mov qword [rbp - 0x28], rcx
mov dword [rsp + 0x60], r12d
movzx r8d, byte [rcx + 8]
movzx r11d, byte [rcx + 3]
lea r9, [rdx + rax*8]
shl r8w, 2
lea rax, [r9 + rax*2]
mov qword [rbp - 0x18], r9
mov qword [rsp + 0x78], rax
mov word [rsp + 0x50], r8w
mov dword [rsp + 0x48], r11d
test r14d, r14d
jle 0x14017b8f9
nop word [rax + rax]
mov r14, qword [rbp + r12*8 + 0x58]
mov rax, qword [rcx + 0x50]
mov rdi, qword [r14 + 0x50]
movzx ebx, word [r14 + 0x12]
movzx ecx, byte [rax]
add rbx, rdi
movzx esi, word [r14 + 0x18]
movzx r15d, word [r14 + 0x1a]
cmp byte [rdi], cl
jne 0x14017b8c6
movsxd rax, dword [rbp - 0x30]
xor edx, edx
movzx r8d, byte [r14 + 0xc]
add r8, rsi
add r8, r8
lea rcx, [r9 + rax*2]
call sub.VCRUNTIME140.dll_memset
movzx ecx, byte [r14 + 0xc]
test cl, cl
je 0x14017b642
movzx eax, word [r14 + 0x1c]
cmp si, ax
jb 0x14017b767
mov r9d, dword [rbp - 0x30]
xor r8d, r8d
mov r10, qword [rbp - 0x20]
cmp r8w, ax
jae 0x14017b60f
mov edx, eax
movzx eax, word [rbx]
add rbx, 2
ror ax, 8
movzx ecx, ax
and rcx, r15
movsxd rax, r9d
add rcx, rdi
inc r9d
mov qword [r10 + rax*8], rcx
sub rdx, 1
jne 0x14017b5e2
movzx ecx, byte [r14 + 0xc]
mov dword [rbp - 0x30], r9d
test cl, cl
je 0x14017b642
lea rdx, [r14 + 0x28]
nop word [rax + rax]
mov rax, qword [rdx]
lea rdx, [rdx + 8]
movsxd rcx, r9d
inc r8d
inc r9d
mov qword [r10 + rcx*8], rax
movzx eax, byte [r14 + 0xc]
cmp r8d, eax
jl 0x14017b620
mov dword [rbp - 0x30], r9d
movzx edx, word [r14 + 0x18]
movzx ecx, word [r14 + 0x12]
add rcx, rdi
lea r8, [rcx + rdx*2]
mov edx, dword [rbp - 0x30]
cmp rbx, r8
jae 0x14017b685
mov r9, qword [rbp - 0x20]
nop
movzx eax, word [rbx]
add rbx, 2
ror ax, 8
movzx ecx, ax
and rcx, r15
movsxd rax, edx
add rcx, rdi
inc edx
mov qword [r9 + rax*8], rcx
cmp rbx, r8
jb 0x14017b660
mov dword [rbp - 0x30], edx
mov r15d, dword [rsp + 0x60]
mov r11d, dword [rsp + 0x48]
mov dword [rbp + r12*4 + 0xc8], edx
cmp r15d, dword [rsp + 0x70]
jge 0x14017b73f
test r11b, r11b
jne 0x14017b73f
movzx ecx, word [rbp + r12*4 + 0x40]
mov rax, qword [rbp - 0x18]
mov r8d, ecx
movsxd rdi, edx
mov rdx, qword [rbp + r12*8 + 0x100]
lea rsi, [rax + rdi*2]
movsxd rbx, r13d
add r13d, ecx
add rbx, qword [rsp + 0x78]
mov word [rsi], cx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
movzx r8d, word [rsp + 0x50]
mov rdx, qword [rbp - 0x20]
lea rax, [rbx + r8]
mov qword [rdx + rdi*8], rax
sub word [rsi], r8w
cmp byte [r14 + 8], 0
jne 0x14017b711
mov rax, qword [r14 + 0x50]
mov rcx, qword [rdx + rdi*8]
inc dword [rbp - 0x30]
mov r11d, dword [rsp + 0x48]
mov eax, dword [rax + 8]
mov dword [rcx], eax
jmp 0x14017b745
cmp word [rsi], 4
jae 0x14017b735
mov rcx, qword [rsp + 0x78]
movsxd rax, r13d
add rcx, rax
mov byte [rcx], 0
lea rcx, [rcx + 1]
inc word [rsi]
inc r13d
cmp word [rsi], 4
jb 0x14017b722
inc dword [rbp - 0x30]
mov r11d, dword [rsp + 0x48]
jmp 0x14017b745
movzx r8d, word [rsp + 0x50]
movsxd r14, dword [rsp + 0x6c]
inc r15d
inc r12
mov dword [rsp + 0x60], r15d
cmp r12, r14
jge 0x14017b779
mov rcx, qword [rbp + 0x58]
mov r9, qword [rbp - 0x18]
jmp 0x14017b570
mov ecx, 0x11b18
call fcn.1401b3e90
mov r14d, eax
jmp 0x14017c0c5
mov rax, qword [rbp - 0x80]
lea r15, [rbp + 0x20]
xor r9d, r9d
movzx r8d, r8w
mov edx, r9d
mov dword [rsp + 0x70], r8d
mov ecx, r9d
mov qword [rsp + 0x78], rdx
mov r10d, dword [rax + 0x38]
lea r12, [rbp - 0x10]
add r10d, 0xfffffff4
mov dword [rsp + 0x58], ecx
add r10d, r8d
lea r13, [rbp + 0x1c]
mov dword [rsp + 0x54], r10d
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbp + rdx*4 + 0xc8]
mov rbx, qword [rbp + rdx*8 + 0x58]
mov dword [rsp + 0x60], r8d
mov rax, qword [rbx + 0x58]
mov qword [r12], rax
mov dword [r15], r8d
test ecx, ecx
je 0x14017b7f9
cmp r8d, dword [r13]
jne 0x14017b7f9
dec ecx
sub r12, 8
sub r13, 4
mov dword [rsp + 0x58], ecx
sub r15, 4
test r11b, r11b
jne 0x14017b823
mov rax, qword [rbp - 0x68]
add r12, 8
inc ecx
add r13, 4
add r15, 4
mov dword [rsp + 0x58], ecx
mov rax, qword [rax + 0x58]
mov qword [r12], rax
lea eax, [r8 + 1]
mov dword [r15], eax
mov edi, r10d
lea rax, [rbp + 0x40]
sub edi, dword [rbx + 0x14]
lea rax, [rax + rdx*4]
cmp byte [rbx + 0xc], 0
mov r14d, r9d
mov qword [rbp + 0x100], rax
mov dword [rax], edi
jbe 0x14017b88c
lea rsi, [rbx + 0x28]
mov rdx, qword [rsi]
mov rcx, rbx
call qword [rbx + 0x78]
movzx eax, ax
inc r14d
add eax, 2
lea rsi, [rsi + 8]
add edi, eax
movzx eax, byte [rbx + 0xc]
cmp r14d, eax
jl 0x14017b847
mov rax, qword [rbp + 0x100]
xor r9d, r9d
mov ecx, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x60]
mov r10d, dword [rsp + 0x54]
mov r11d, dword [rsp + 0x48]
mov dword [rax], edi
movsxd r14, dword [rsp + 0x6c]
inc ecx
mov dword [rbp + rdx*4 + 0x70], r8d
add r12, 8
inc rdx
mov dword [rsp + 0x58], ecx
add r13, 4
mov qword [rsp + 0x78], rdx
add r15, 4
cmp rdx, r14
jl 0x14017b7c0
mov rcx, qword [rbp + 0x58]
xor r12d, r12d
mov r9, qword [rbp - 0x18]
jmp 0x14017b911
lea rax, [0x140233074]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x11b00
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140176260
jmp 0x14017c0c5
mov r10d, dword [rdi + 0x38]
movzx edx, r8w
add r10d, 0xfffffff4
add r10d, edx
mov dword [rsp + 0x70], edx
mov dword [rsp + 0x54], r10d
mov edx, r14d
mov r13d, r12d
mov dword [rsp + 0x58], edx
test r14d, r14d
jle 0x14017bb21
mov ecx, dword [rbp - 0x30]
mov r15d, 1
mov r14, r12
mov edi, dword [rbp + r14 + 0x40]
cmp edi, r10d
jle 0x14017b9f1
nop
cmp r15d, edx
jl 0x14017b966
lea eax, [r15 + 1]
mov dword [rsp + 0x58], eax
cmp r14, 0xc
jg 0x14017bab7
mov dword [rbp + r14 + 0x44], r12d
mov edi, dword [rbp + r14 + 0x40]
mov dword [rbp + r14 + 0x74], ecx
movsxd rbx, dword [rbp + r14 + 0x70]
movzx eax, word [r9 + rbx*2 - 2]
lea esi, [rbx - 1]
test ax, ax
jne 0x14017b992
mov edx, esi
lea rcx, [rbp - 0x30]
call fcn.1401830a0
mov r10d, dword [rsp + 0x54]
mov r9, qword [rbp - 0x18]
mov r11d, dword [rsp + 0x48]
movzx eax, ax
add eax, 2
sub edi, eax
mov dword [rbp + r14 + 0x40], edi
test r11b, r11b
jne 0x14017b9d7
cmp ebx, dword [rbp - 0x30]
jge 0x14017b9d4
movzx eax, word [r9 + rbx*2]
test ax, ax
jne 0x14017b9c7
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.1401830a0
mov r9, qword [rbp - 0x18]
mov r11d, dword [rsp + 0x48]
mov r10d, dword [rsp + 0x54]
movzx eax, ax
add eax, 2
jmp 0x14017b9d7
mov eax, r12d
add dword [rbp + r14 + 0x44], eax
mov ecx, dword [rbp - 0x30]
mov edx, dword [rsp + 0x58]
mov dword [rbp + r14 + 0x70], esi
cmp edi, r10d
jg 0x14017b940
movsxd rbx, dword [rbp + r14 + 0x70]
cmp ebx, ecx
jge 0x14017ba72
lea rsi, [r9 + rbx*2]
nop
movzx eax, word [rsi]
test ax, ax
jne 0x14017ba1b
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.1401830a0
mov ecx, dword [rbp - 0x30]
mov r10d, dword [rsp + 0x54]
movzx eax, ax
add eax, 2
add edi, eax
cmp edi, r10d
jg 0x14017ba9a
inc ebx
mov dword [rbp + r14 + 0x40], edi
add rsi, 2
mov dword [rbp + r14 + 0x70], ebx
cmp byte [rsp + 0x48], 0
jne 0x14017ba69
cmp ebx, ecx
jge 0x14017ba66
movzx eax, word [rsi]
test ax, ax
jne 0x14017ba5e
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.1401830a0
mov ecx, dword [rbp - 0x30]
mov r10d, dword [rsp + 0x54]
movzx eax, ax
add eax, 2
jmp 0x14017ba69
mov eax, r12d
sub dword [rbp + r14 + 0x44], eax
cmp ebx, ecx
jl 0x14017ba00
mov edx, r15d
mov dword [rsp + 0x58], edx
inc r13d
inc r15d
add r14, 4
cmp r13d, edx
jge 0x14017bb1d
mov r9, qword [rbp - 0x18]
mov r11d, dword [rsp + 0x48]
jmp 0x14017b930
cmp ebx, ecx
jge 0x14017ba72
test r13d, r13d
jle 0x14017baaa
mov eax, dword [rbp + r14 + 0x6c]
jmp 0x14017baad
mov eax, r12d
cmp ebx, eax
jle 0x14017baea
mov edx, dword [rsp + 0x58]
jmp 0x14017ba79
lea rax, [0x140233074]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x11b7d
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140176260
jmp 0x14017c0c5
lea rax, [0x140233074]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x11b9e
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140176260
jmp 0x14017c0c5
mov rcx, qword [rbp + 0x58]
lea eax, [rdx - 1]
movsxd r13, eax
mov r12, r13
test eax, eax
jle 0x14017bc43
mov rdi, qword [rbp - 0x18]
lea r8, [rbp + 0x70]
mov esi, dword [rbp + r12*4 + 0x40]
sub r8, 4
mov r15d, dword [rbp + r12*4 + 0x3c]
mov qword [rsp + 0x78], r8
mov ecx, dword [r8 + r12*4]
mov dword [rsp + 0x60], ecx
lea ebx, [rcx - 1]
mov eax, ebx
sub eax, dword [rsp + 0x48]
movsxd r14, eax
inc r14
cmp word [rdi + r14*2], 0
lea edx, [rax + 1]
lea r14, [rdi + r14*2]
jne 0x14017bb7c
lea rcx, [rbp - 0x30]
call fcn.1401830a0
movsxd rax, ebx
lea rdi, [rdi + rax*2]
cmp word [rdi], 0
jne 0x14017bb94
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.1401830a0
test esi, esi
je 0x14017bbce
cmp dword [rbp + 0x180], 0
jne 0x14017bc02
mov ecx, dword [rsp + 0x58]
mov eax, 2
dec ecx
mov edx, r15d
cmp r13d, ecx
mov ecx, 0
cmove eax, ecx
lea ecx, [rsi + 2]
sub edx, eax
movzx eax, word [rdi]
sub edx, eax
movzx eax, word [r14]
add ecx, eax
cmp ecx, edx
jg 0x14017bc02
movzx eax, word [r14]
mov ecx, 0xfffffffe
mov r8, qword [rsp + 0x78]
add eax, 2
add esi, eax
mov dword [rsp + 0x60], ebx
movzx eax, word [rdi]
sub r14, 2
sub ecx, eax
sub rdi, 2
add r15d, ecx
mov dword [r8 + r12*4], ebx
mov ecx, ebx
sub ebx, 1
jns 0x14017bb83
jmp 0x14017bc0b
mov r8, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x60]
mov dword [rbp + r12*4 + 0x40], esi
mov dword [rbp + r12*4 + 0x3c], r15d
cmp r12, 1
jbe 0x14017bc22
mov eax, dword [r8 + r12*4 - 4]
jmp 0x14017bc24
xor eax, eax
cmp ecx, eax
jle 0x14017bd06
dec r13d
dec r12
test r12, r12
jg 0x14017bb32
mov rcx, qword [rbp + 0x58]
mov edx, dword [rsp + 0x58]
mov rax, qword [rcx + 0x50]
movsxd r13, edx
movzx r15d, byte [rax]
mov dword [rsp + 0x60], r15d
test edx, edx
jle 0x14017be5f
xor r12d, r12d
nop
movsxd rcx, dword [rsp + 0x6c]
cmp r12, rcx
jge 0x14017bdac
mov rax, qword [rbp + r12*8 + 0x58]
mov qword [rbp + r12*8 + 0x88], rax
mov qword [rbp + r12*8 + 0x58], 0
mov qword [rsp + 0x78], rax
mov r14, qword [rax + 0x70]
test byte [r14 + 0x34], 4
mov rcx, qword [r14 + 0x28]
je 0x14017bd62
mov esi, dword [r14 + 0x30]
cmp dword [rcx + 0x1c], esi
jb 0x14017bd62
movsxd rax, dword [rcx + 0x80]
test eax, eax
je 0x14017bd4f
xor edi, edi
test eax, eax
jle 0x14017bcef
mov rbx, qword [rcx + 0x78]
mov r15, rax
add rbx, 0x10
nop dword [rax]
cmp dword [rbx + 8], esi
jb 0x14017bce3
mov rcx, qword [rbx]
mov edx, esi
call fcn.1401ad010
test eax, eax
je 0x14017bd39
inc rdi
add rbx, 0x30
cmp rdi, r15
jl 0x14017bcd0
mov r15d, dword [rsp + 0x60]
mov dword [rsp + 0x44], 0
mov r14d, dword [rsp + 0x44]
jmp 0x14017bd95
lea rax, [0x140233074]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x11bc8
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140176260
jmp 0x14017c0c5
mov rcx, r14
call fcn.1401fefa0
mov r15d, dword [rsp + 0x60]
mov r14d, eax
mov dword [rsp + 0x44], eax
jmp 0x14017bd95
xor eax, eax
inc dword [rsp + 0x4c]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], eax
jmp 0x14017be53
mov eax, dword [rcx + 0x2c]
mov dword [rsp + 0x44], eax
test eax, eax
jne 0x14017c0bc
mov eax, dword [rcx + 0xbc]
cmp dword [rcx + 0xb8], eax
mov rcx, r14
jbe 0x14017bd89
call fcn.14019b470
jmp 0x14017bd8e
call fcn.14019c740
mov dword [rsp + 0x44], eax
mov r14d, eax
inc dword [rsp + 0x4c]
mov dword [rsp + 0x40], r14d
test r14d, r14d
jne 0x14017c0c5
jmp 0x14017be53
mov r9d, dword [rbp - 0x78]
lea r8, [rbp - 0x70]
cmp dword [rbp + 0x180], 0
lea rdx, [rsp + 0x78]
mov rdi, qword [rbp - 0x80]
mov ecx, 1
cmovne r9d, ecx
mov byte [rsp + 0x20], 0
mov rcx, rdi
call fcn.140177660
mov dword [rsp + 0x44], eax
mov r14d, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x14017c0c5
mov rbx, qword [rsp + 0x78]
mov edx, r15d
mov rcx, rbx
call fcn.140218410
inc dword [rsp + 0x4c]
mov eax, dword [rbp - 0x30]
mov qword [rbp + r12*8 + 0x88], rbx
mov dword [rbp + r12*4 + 0xc8], eax
cmp byte [rdi + 0x21], r14b
je 0x14017be4d
mov edx, dword [rbx + 4]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8b, 5
mov rax, qword [rbp - 0x68]
mov rcx, rdi
mov r9d, dword [rax + 4]
call fcn.14019f2f0
mov r14d, dword [rsp + 0x40]
mov dword [rsp + 0x44], r14d
test r14d, r14d
jne 0x14017c0c5
mov edx, dword [rbp - 0x70]
mov dword [rbp - 0x78], edx
inc r12
cmp r12, r13
jl 0x14017bc60
movsxd rdi, dword [rsp + 0x4c]
mov rsi, rdi
test edi, edi
jle 0x14017bfcb
xor r12d, r12d
mov edx, r12d
nop word [rax + rax]
mov rax, qword [rbp + rdx*8 + 0x88]
mov r8d, dword [rax + 4]
mov rax, qword [rax + 0x70]
mov dword [rbp + rdx*4 + 0xe0], r8d
mov dword [rbp + rdx*4 + 0xb0], r8d
movzx ecx, word [rax + 0x34]
mov rax, r12
mov word [rbp + rdx*2 + 0x100], cx
test rdx, rdx
jle 0x14017bed6
nop dword [rax]
nop dword [rax + rax]
cmp dword [rbp + rax*4 + 0xe0], r8d
je 0x14017c12f
inc rax
cmp rax, rdx
jl 0x14017bec0
inc rdx
cmp rdx, rsi
jl 0x14017be80
mov rdi, r12
mov r15d, 1
nop word [rax + rax]
mov r10d, r12d
mov rbx, r12
mov r11d, r15d
mov rcx, r15
cmp r15, rsi
jge 0x14017bf4e
mov r14d, dword [rsp + 0x54]
mov r9, r12
mov r13d, dword [rsp + 0x70]
nop
mov edx, dword [rbp + r9 + 0xb0]
lea rax, [rcx*4]
cmp dword [rbp + rax + 0xb0], edx
jae 0x14017bf2f
mov rbx, rcx
mov r9, rax
mov eax, r11d
cmovae eax, r10d
inc r11d
inc rcx
mov r10d, eax
cmp rcx, rsi
jl 0x14017bf10
mov dword [rsp + 0x70], r13d
mov dword [rsp + 0x54], r14d
mov r14d, dword [rbp + rbx*4 + 0xb0]
mov dword [rbp + rbx*4 + 0xb0], 0xffffffff
cmp rbx, rdi
je 0x14017bfb6
jle 0x14017bf8a
mov rax, qword [rbp - 0x80]
mov edx, dword [rax + 0x40]
mov rax, qword [rbp + rbx*8 + 0x88]
inc edx
add edx, r10d
mov rcx, qword [rax + 0x70]
mov word [rcx + 0x34], r12w
call fcn.1401cf460
mov rax, qword [rbp + rdi*8 + 0x88]
mov edx, r14d
mov rcx, qword [rax + 0x70]
movzx eax, word [rbp + rbx*2 + 0x100]
mov word [rcx + 0x34], ax
call fcn.1401cf460
mov rax, qword [rbp + rdi*8 + 0x88]
mov dword [rax + 4], r14d
inc rdi
cmp rdi, rsi
jl 0x14017bef0
mov r15d, dword [rsp + 0x60]
mov edi, dword [rsp + 0x4c]
lea r12, [rsi - 1]
mov rax, qword [rbp + r12*8 + 0x88]
mov ecx, dword [rax + 4]
mov rax, qword [rbp - 0x48]
bswap ecx
mov dword [rax], ecx
test r15b, 8
jne 0x14017c01b
cmp dword [rsp + 0x6c], edi
je 0x14017c01b
mov rcx, qword [rbp - 0x40]
lea rdx, [rbp + 0x58]
lea rax, [rbp + 0x88]
cmovge rax, rdx
mov rax, qword [rax + rcx*8]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + r12*8 + 0x88]
mov rcx, qword [rax + 0x50]
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov r10, qword [rbp - 0x80]
cmp byte [r10 + 0x21], 0
je 0x14017c318
mov rbx, qword [rbp + 0x88]
xor r14d, r14d
mov r13d, dword [rbp - 0x30]
movzx r15d, word [rbx + 0x18]
movzx eax, byte [rbx + 0xc]
add r15d, eax
test r13d, r13d
jle 0x14017c323
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x88]
mov rcx, qword [rbp - 0x20]
lea r8, [rbp + 0x70]
mov qword [rsp + 0x60], rax
xor edi, edi
mov qword [rbp - 0x78], rdx
mov r13, rbx
mov qword [rsp + 0x78], r8
mov qword [rbp - 0x70], rcx
nop word [rax + rax]
mov r12, qword [rcx]
mov r11d, dword [rsp + 0x48]
cmp r14d, r15d
jne 0x14017c19a
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r10d, dword [rsp + 0x70]
test r11b, r11b
sete dl
inc rdi
cmp rdi, rsi
jge 0x14017c162
mov rbx, qword [rbp + rdi*8 + 0x88]
jmp 0x14017c167
inc dword [rsp + 0x4c]
mov r14d, dword [rsp + 0x44]
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x14017b447
cmp dword [section..data], 0
je 0x14017c65a
mov rcx, qword [0x1402e6af0]
test rcx, rcx
je 0x14017c0f1
call qword [0x1402e1080]
mov rcx, rbx
call qword [0x1402e1038]
dec qword [0x1402e6a88]
movsxd rcx, eax
sub qword [0x1402e6a40], rcx
mov rcx, rbx
call qword [0x1402e1028]
mov rcx, qword [0x1402e6af0]
test rcx, rcx
je 0x14017b447
call qword [0x1402e1090]
jmp 0x14017b447
lea rax, [0x140233074]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x11c12
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140176260
jmp 0x14017c0c5
mov rbx, qword [rbp + rdi*8 + 0x58]
movzx eax, word [rbx + 0x18]
movzx ecx, byte [rbx + 0xc]
add eax, edx
add ecx, eax
add r15d, ecx
cmp r14d, r15d
je 0x14017c0a3
mov rax, qword [rsp + 0x60]
mov rcx, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x78]
mov dword [rsp + 0x70], r10d
mov r10, qword [rbp - 0x80]
mov dword [rsp + 0x54], r9d
cmp r14d, dword [r8]
jne 0x14017c1bd
mov r13, qword [rdx + 8]
add rdx, 8
add r8, 4
mov qword [rbp - 0x78], rdx
mov qword [rsp + 0x78], r8
test r11b, r11b
je 0x14017c2ba
cmp rdi, rsi
jge 0x14017c1df
mov eax, dword [rbp + rdi*4 + 0xe0]
cmp dword [r13 + 4], eax
jne 0x14017c1df
cmp r12, qword [rbx + 0x50]
jb 0x14017c1df
cmp r12, qword [rbx + 0x58]
jb 0x14017c2b5
cmp word [rsp + 0x50], 0
jne 0x14017c20e
mov edx, dword [r12]
lea rax, [rsp + 0x40]
mov r9d, dword [r13 + 4]
mov r8b, 5
bswap edx
mov rcx, r10
mov qword [rsp + 0x20], rax
call fcn.14019f2f0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
test ax, ax
jne 0x14017c227
mov edx, r14d
lea rcx, [rbp - 0x30]
call fcn.1401830a0
cmp ax, word [r13 + 0x10]
jbe 0x14017c2a0
cmp dword [rsp + 0x44], 0
jne 0x14017c0c0
lea r8, [rbp + 0xb0]
mov rdx, r12
mov rcx, r13
call qword [r13 + 0x80]
movzx edx, word [rbp + 0xc4]
cmp edx, dword [rbp + 0xc0]
jae 0x14017c2ac
mov rcx, qword [rbx + 0x58]
cmp rcx, r12
jb 0x14017c26e
lea rax, [r12 + rdx]
cmp rcx, rax
jb 0x14017c2e1
movzx eax, word [rbp + 0xc6]
mov r8b, 3
mov r9d, dword [r13 + 4]
mov rcx, qword [r13 + 0x48]
mov edx, dword [rax + r12 - 4]
lea rax, [rsp + 0x40]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.14019f2f0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
jmp 0x14017c2a4
mov eax, dword [rsp + 0x44]
test eax, eax
jne 0x14017c0c0
mov r8, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rsp + 0x60]
add rcx, 8
add rax, 2
inc r14d
mov qword [rbp - 0x70], rcx
mov qword [rsp + 0x60], rax
cmp r14d, dword [rbp - 0x30]
jge 0x14017c314
mov rdx, qword [rbp - 0x78]
mov r10, qword [rbp - 0x80]
jmp 0x14017c080
lea rax, [0x140233074]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x10244
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140176260
jmp 0x14017c0c5
lea r12, [rsi - 1]
mov rbx, qword [rbp + 0x88]
mov r13d, dword [rbp - 0x30]
test r12, r12
jle 0x14017c459
xor r15d, r15d
nop
movsxd rdx, dword [rbp + r15*4 + 0x70]
mov rax, qword [rbp - 0x18]
mov r14, qword [rbp + r15*8 + 0x88]
mov rcx, qword [rbp - 0x20]
movsxd rdi, dword [rbp - 0x60]
movzx eax, word [rax + rdx*2]
add rdi, qword [rbp - 0x58]
mov r9d, eax
add r9d, dword [rsp + 0x70]
cmp byte [r14 + 8], 0
mov rbx, qword [rcx + rdx*8]
jne 0x14017c372
mov rcx, qword [r14 + 0x50]
mov eax, dword [rbx]
mov dword [rcx + 8], eax
jmp 0x14017c403
cmp byte [rsp + 0x48], 0
je 0x14017c3e9
mov rdx, qword [rcx + rdx*8 - 8]
lea r8, [rbp + 0xe0]
mov rcx, r14
call qword [r14 + 0x80]
mov rdx, qword [rbp + 0xe0]
lea rcx, [rdi + 4]
mov rbx, rdi
cmp rdx, 0x7f
ja 0x14017c3b5
and dl, 0x7f
mov eax, 1
mov byte [rcx], dl
xor edi, edi
lea r9d, [rax + 4]
jmp 0x14017c403
cmp rdx, 0x3fff
ja 0x14017c3dc
mov rax, rdx
and dl, 0x7f
shr rax, 7
or al, 0x80
mov byte [rcx + 1], dl
mov byte [rcx], al
xor edi, edi
mov eax, 2
lea r9d, [rax + 4]
jmp 0x14017c403
call fcn.14019fd10
xor edi, edi
lea r9d, [rax + 4]
jmp 0x14017c403
sub rbx, 4
cmp eax, 4
jne 0x14017c403
mov rax, qword [rbp - 0x68]
mov rdx, rbx
mov rcx, rax
call qword [rax + 0x78]
movzx r9d, ax
mov rcx, qword [rbp - 0x68]
lea rax, [rsp + 0x40]
add dword [rbp - 0x60], r9d
mov r8, rbx
mov ebx, dword [rsp + 0x68]
mov edx, ebx
mov qword [rsp + 0x30], rax
mov eax, dword [r14 + 4]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call fcn.140193640
mov r14d, dword [rsp + 0x40]
test r14d, r14d
jne 0x14017c0c5
inc ebx
inc r15
mov dword [rsp + 0x68], ebx
cmp r15, r12
jl 0x14017c330
mov rbx, qword [rbp + 0x88]
jmp 0x14017c45e
mov r14d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x4c]
mov r12d, 1
sub r12d, r8d
mov qword [rbp - 0x58], r12
cmp r12d, r8d
jge 0x14017c556
mov edi, dword [rbp + 0x70]
mov r15d, dword [rsp + 0x54]
mov eax, r12d
cdq
xor eax, edx
sub eax, edx
movsxd rbx, eax
cmp byte [rbp + rbx + 0xf8], 0
jne 0x14017c53f
test r12d, r12d
jns 0x14017c4b0
mov ecx, dword [rbp + rbx*4 + 0x6c]
cmp dword [rbp + rbx*4 + 0xc4], ecx
jl 0x14017c53f
test eax, eax
jne 0x14017c4c0
xor eax, eax
mov r9d, edi
mov edx, eax
mov r8d, eax
jmp 0x14017c4fb
xor r12d, r12d
cmp eax, dword [rsp + 0x6c]
mov eax, dword [rsp + 0x48]
jge 0x14017c4de
test al, al
mov edx, r12d
sete dl
add edx, dword [rbp + rbx*4 + 0xc4]
jmp 0x14017c4e1
mov edx, r13d
mov r9d, dword [rbp + rbx*4 + 0x70]
mov r8d, r12d
mov r12, qword [rbp - 0x58]
test al, al
sete r8b
add r8d, dword [rbp + rbx*4 + 0x6c]
sub r9d, r8d
mov rcx, qword [rbp + rbx*8 + 0x88]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call fcn.140186e80
mov dword [rsp + 0x40], eax
mov r14d, eax
test eax, eax
jne 0x14017c0c5
mov rax, qword [rbp + rbx*8 + 0x88]
mov ecx, r15d
sub ecx, dword [rbp + rbx*4 + 0x40]
mov r8d, dword [rsp + 0x4c]
mov byte [rbp + rbx + 0xf8], 1
mov dword [rax + 0x14], ecx
inc r12d
mov qword [rbp - 0x58], r12
cmp r12d, r8d
jl 0x14017c481
mov rbx, qword [rbp + 0x88]
cmp dword [rbp - 0x50], 0
je 0x14017c5bb
mov rdi, qword [rbp - 0x68]
cmp word [rdi + 0x18], 0
jne 0x14017c5bb
movzx eax, byte [rdi + 9]
cmp eax, dword [rbx + 0x14]
jg 0x14017c5bb
mov edx, 0xffffffff
mov rcx, rbx
call fcn.140185f60
mov rcx, qword [rbp + 0x88]
lea r8, [rsp + 0x40]
mov rdx, rdi
mov dword [rsp + 0x40], eax
call fcn.140185120
mov r14d, dword [rsp + 0x40]
test r14d, r14d
jne 0x14017c61b
mov rcx, qword [rbp + 0x88]
mov rdx, rcx
mov r8d, dword [rcx + 4]
mov rcx, qword [rcx + 0x48]
call fcn.14018f810
mov r14d, eax
jmp 0x14017c61b
mov r10, qword [rbp - 0x80]
cmp byte [r10 + 0x21], 0
je 0x14017c61b
cmp word [rsp + 0x50], 0
jne 0x14017c61b
test rsi, rsi
jle 0x14017c61b
xor ebx, ebx
nop word [rax + rax]
mov rcx, qword [rbp + rbx*8 + 0x88]
mov r8b, 5
mov rax, qword [rcx + 0x50]
mov r9d, dword [rcx + 4]
mov rcx, r10
mov edx, dword [rax + 8]
lea rax, [rsp + 0x40]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.14019f2f0
mov r10, qword [rbp - 0x80]
inc rbx
cmp rbx, rsi
jl 0x14017c5e0
mov r14d, dword [rsp + 0x40]
movsxd rax, dword [rsp + 0x6c]
mov rbx, rax
cmp rsi, rax
jge 0x14017c0c5
nop dword [rax]
mov rcx, qword [rbp + rsi*8 + 0x58]
test r14d, r14d
jne 0x14017c64d
mov r8d, dword [rcx + 4]
mov rdx, rcx
mov rcx, qword [rcx + 0x48]
call fcn.14018f810
mov r14d, eax
inc rsi
cmp rsi, rbx
jl 0x14017c630
jmp 0x14017c0c5
mov rcx, rbx
call qword [0x1402e1028]
jmp 0x14017b447
mov rcx, r8
call fcn.1401cf530
inc rbx
cmp rbx, rdi
jl 0x14017b470
movsxd rbx, dword [rsp + 0x4c]
mov rdi, qword [rsp + 0x238]
test rbx, rbx
jle 0x14017c6fa
nop
mov r8, qword [rbp + rsi*8 + 0x88]
test r8, r8
je 0x14017c6f2
mov r8, qword [r8 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x14017c6ea
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
movsxd rax, dword [r10 + 0xbc]
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
mov r9, qword [rcx]
imul rdx, rax
call qword [r9 + 0x90]
jmp 0x14017c6f2
mov rcx, r8
call fcn.1401cf530
inc rsi
cmp rsi, rbx
jl 0x14017c690
mov rbx, qword [rsp + 0x278]
mov eax, r14d
mov r14, qword [rsp + 0x228]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140218cd0
add rsp, 0x240
pop r13
pop rsi
pop rbp
ret