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

Disassembly:
push rbp
push rsi
push r13
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x18014b940]
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 0x1800273da
lea eax, [rsi + 7]
jmp 0x18002897d
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 0x180027419
mov edx, esi
jmp 0x180027441
test edx, edx
jne 0x180027421
mov edx, esi
jmp 0x180027434
cmp edx, ebx
jne 0x180027432
mov eax, dword [rbp + 0x180]
lea edx, [rax - 2]
add edx, ebx
jmp 0x18002743a
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 0x180027468
movzx ecx, byte [r9 + 9]
add rcx, 8
jmp 0x180027484
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.180076db0
mov dword [rsp + 0x44], eax
mov r14d, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x180027648
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 0x180027506
call fcn.1800295c0
mov dword [rsp + 0x44], eax
mov r14d, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x18002765f
mov eax, ebx
sub r15, 4
dec ebx
sub rdi, 8
test eax, eax
je 0x180027742
mov r14, qword [rbp - 0x68]
movzx edx, byte [r14 + 0xc]
test dl, dl
je 0x180027562
mov eax, dword [rsp + 0x68]
movzx ecx, word [r14 + 0x1c]
add eax, ebx
cmp eax, ecx
jne 0x180027562
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 0x180027617
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 0x1800275f8
mov rax, qword [rbp - 0x68]
mov ecx, esi
sub ecx, dword [rax + 0x50]
lea eax, [r14 + rcx]
cmp eax, dword [rdx + 0x38]
jg 0x180027677
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 0x1800275fc
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.1800337b0
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.180076db0
mov dword [rsp + 0x44], eax
mov r14d, eax
mov dword [rsp + 0x40], eax
test eax, eax
je 0x1800274e0
lea eax, [rbx + 1]
xor edx, edx
movsxd r8, eax
lea rcx, [rbp + 0x58]
shl r8, 3
call sub.VCRUNTIME140.dll_memset
jmp 0x1800276b9
movsxd r8, ebx
lea rcx, [rbp + 0x58]
xor edx, edx
lea r8, [r8*8]
call sub.VCRUNTIME140.dll_memset
jmp 0x1800276b9
lea rax, [0x180131c04]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x119c2
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.1801003c0
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 0x1800288ec
mov rbx, rsi
nop dword [rax]
mov r8, qword [rbp + rbx*8 + 0x58]
test r8, r8
je 0x1800288e0
mov r8, qword [r8 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x1800288d8
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 0x1800288e0
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.1800ca1d0
mov qword [rbp - 0x20], rax
mov rdx, rax
test rax, rax
jne 0x180027790
lea r14d, [rax + 7]
jmp 0x1800276b9
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 0x180027b69
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 0x180027b36
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 0x1800278b2
movzx eax, word [r14 + 0x1c]
cmp si, ax
jb 0x1800279d7
mov r9d, dword [rbp - 0x30]
xor r8d, r8d
mov r10, qword [rbp - 0x20]
cmp r8w, ax
jae 0x18002787f
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 0x180027852
movzx ecx, byte [r14 + 0xc]
mov dword [rbp - 0x30], r9d
test cl, cl
je 0x1800278b2
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 0x180027890
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 0x1800278f5
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 0x1800278d0
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 0x1800279af
test r11b, r11b
jne 0x1800279af
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 0x180027981
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 0x1800279b5
cmp word [rsi], 4
jae 0x1800279a5
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 0x180027992
inc dword [rbp - 0x30]
mov r11d, dword [rsp + 0x48]
jmp 0x1800279b5
movzx r8d, word [rsp + 0x50]
movsxd r14, dword [rsp + 0x6c]
inc r15d
inc r12
mov dword [rsp + 0x60], r15d
cmp r12, r14
jge 0x1800279e9
mov rcx, qword [rbp + 0x58]
mov r9, qword [rbp - 0x18]
jmp 0x1800277e0
mov ecx, 0x11a1d
call fcn.1800a37c0
mov r14d, eax
jmp 0x180028335
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 0x180027a69
cmp r8d, dword [r13]
jne 0x180027a69
dec ecx
sub r12, 8
sub r13, 4
mov dword [rsp + 0x58], ecx
sub r15, 4
test r11b, r11b
jne 0x180027a93
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 0x180027afc
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 0x180027ab7
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 0x180027a30
mov rcx, qword [rbp + 0x58]
xor r12d, r12d
mov r9, qword [rbp - 0x18]
jmp 0x180027b81
lea rax, [0x180131c04]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x11a05
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.1801003c0
jmp 0x180028335
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 0x180027d91
mov ecx, dword [rbp - 0x30]
mov r15d, 1
mov r14, r12
mov edi, dword [rbp + r14 + 0x40]
cmp edi, r10d
jle 0x180027c61
nop
cmp r15d, edx
jl 0x180027bd6
lea eax, [r15 + 1]
mov dword [rsp + 0x58], eax
cmp r14, 0xc
jg 0x180027d27
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 0x180027c02
mov edx, esi
lea rcx, [rbp - 0x30]
call fcn.18002f880
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 0x180027c47
cmp ebx, dword [rbp - 0x30]
jge 0x180027c44
movzx eax, word [r9 + rbx*2]
test ax, ax
jne 0x180027c37
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.18002f880
mov r9, qword [rbp - 0x18]
mov r11d, dword [rsp + 0x48]
mov r10d, dword [rsp + 0x54]
movzx eax, ax
add eax, 2
jmp 0x180027c47
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 0x180027bb0
movsxd rbx, dword [rbp + r14 + 0x70]
cmp ebx, ecx
jge 0x180027ce2
lea rsi, [r9 + rbx*2]
nop
movzx eax, word [rsi]
test ax, ax
jne 0x180027c8b
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.18002f880
mov ecx, dword [rbp - 0x30]
mov r10d, dword [rsp + 0x54]
movzx eax, ax
add eax, 2
add edi, eax
cmp edi, r10d
jg 0x180027d0a
inc ebx
mov dword [rbp + r14 + 0x40], edi
add rsi, 2
mov dword [rbp + r14 + 0x70], ebx
cmp byte [rsp + 0x48], 0
jne 0x180027cd9
cmp ebx, ecx
jge 0x180027cd6
movzx eax, word [rsi]
test ax, ax
jne 0x180027cce
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.18002f880
mov ecx, dword [rbp - 0x30]
mov r10d, dword [rsp + 0x54]
movzx eax, ax
add eax, 2
jmp 0x180027cd9
mov eax, r12d
sub dword [rbp + r14 + 0x44], eax
cmp ebx, ecx
jl 0x180027c70
mov edx, r15d
mov dword [rsp + 0x58], edx
inc r13d
inc r15d
add r14, 4
cmp r13d, edx
jge 0x180027d8d
mov r9, qword [rbp - 0x18]
mov r11d, dword [rsp + 0x48]
jmp 0x180027ba0
cmp ebx, ecx
jge 0x180027ce2
test r13d, r13d
jle 0x180027d1a
mov eax, dword [rbp + r14 + 0x6c]
jmp 0x180027d1d
mov eax, r12d
cmp ebx, eax
jle 0x180027d5a
mov edx, dword [rsp + 0x58]
jmp 0x180027ce9
lea rax, [0x180131c04]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x11a82
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.1801003c0
jmp 0x180028335
lea rax, [0x180131c04]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x11aa3
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.1801003c0
jmp 0x180028335
mov rcx, qword [rbp + 0x58]
lea eax, [rdx - 1]
movsxd r13, eax
mov r12, r13
test eax, eax
jle 0x180027eb3
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 0x180027dec
lea rcx, [rbp - 0x30]
call fcn.18002f880
movsxd rax, ebx
lea rdi, [rdi + rax*2]
cmp word [rdi], 0
jne 0x180027e04
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.18002f880
test esi, esi
je 0x180027e3e
cmp dword [rbp + 0x180], 0
jne 0x180027e72
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 0x180027e72
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 0x180027df3
jmp 0x180027e7b
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 0x180027e92
mov eax, dword [r8 + r12*4 - 4]
jmp 0x180027e94
xor eax, eax
cmp ecx, eax
jle 0x180027f76
dec r13d
dec r12
test r12, r12
jg 0x180027da2
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 0x1800280cf
xor r12d, r12d
nop
movsxd rcx, dword [rsp + 0x6c]
cmp r12, rcx
jge 0x18002801c
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 0x180027fd2
mov esi, dword [r14 + 0x30]
cmp dword [rcx + 0x1c], esi
jb 0x180027fd2
movsxd rax, dword [rcx + 0x80]
test eax, eax
je 0x180027fbf
xor edi, edi
test eax, eax
jle 0x180027f5f
mov rbx, qword [rcx + 0x78]
mov r15, rax
add rbx, 0x10
nop dword [rax]
cmp dword [rbx + 8], esi
jb 0x180027f53
mov rcx, qword [rbx]
mov edx, esi
call fcn.18009ca20
test eax, eax
je 0x180027fa9
inc rdi
add rbx, 0x30
cmp rdi, r15
jl 0x180027f40
mov r15d, dword [rsp + 0x60]
mov dword [rsp + 0x44], 0
mov r14d, dword [rsp + 0x44]
jmp 0x180028005
lea rax, [0x180131c04]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x11acd
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.1801003c0
jmp 0x180028335
mov rcx, r14
call fcn.180104780
mov r15d, dword [rsp + 0x60]
mov r14d, eax
mov dword [rsp + 0x44], eax
jmp 0x180028005
xor eax, eax
inc dword [rsp + 0x4c]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], eax
jmp 0x1800280c3
mov eax, dword [rcx + 0x2c]
mov dword [rsp + 0x44], eax
test eax, eax
jne 0x18002832c
mov eax, dword [rcx + 0xbc]
cmp dword [rcx + 0xb8], eax
mov rcx, r14
jbe 0x180027ff9
call fcn.180085b00
jmp 0x180027ffe
call fcn.180086da0
mov dword [rsp + 0x44], eax
mov r14d, eax
inc dword [rsp + 0x4c]
mov dword [rsp + 0x40], r14d
test r14d, r14d
jne 0x180028335
jmp 0x1800280c3
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.180023c20
mov dword [rsp + 0x44], eax
mov r14d, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x180028335
mov rbx, qword [rsp + 0x78]
mov edx, r15d
mov rcx, rbx
call fcn.18011deb0
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 0x1800280bd
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.18008aa50
mov r14d, dword [rsp + 0x40]
mov dword [rsp + 0x44], r14d
test r14d, r14d
jne 0x180028335
mov edx, dword [rbp - 0x70]
mov dword [rbp - 0x78], edx
inc r12
cmp r12, r13
jl 0x180027ed0
movsxd rdi, dword [rsp + 0x4c]
mov rsi, rdi
test edi, edi
jle 0x18002823b
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 0x180028146
nop dword [rax]
nop dword [rax + rax]
cmp dword [rbp + rax*4 + 0xe0], r8d
je 0x18002839f
inc rax
cmp rax, rdx
jl 0x180028130
inc rdx
cmp rdx, rsi
jl 0x1800280f0
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 0x1800281be
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 0x18002819f
mov rbx, rcx
mov r9, rax
mov eax, r11d
cmovae eax, r10d
inc r11d
inc rcx
mov r10d, eax
cmp rcx, rsi
jl 0x180028180
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 0x180028226
jle 0x1800281fa
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.1800ce2b0
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.1800ce2b0
mov rax, qword [rbp + rdi*8 + 0x88]
mov dword [rax + 4], r14d
inc rdi
cmp rdi, rsi
jl 0x180028160
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 0x18002828b
cmp dword [rsp + 0x6c], edi
je 0x18002828b
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 0x180028588
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 0x180028593
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 0x18002840a
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r10d, dword [rsp + 0x70]
test r11b, r11b
sete dl
inc rdi
cmp rdi, rsi
jge 0x1800283d2
mov rbx, qword [rbp + rdi*8 + 0x88]
jmp 0x1800283d7
inc dword [rsp + 0x4c]
mov r14d, dword [rsp + 0x44]
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x1800276b7
cmp dword [0x180147090], 0
je 0x1800288ca
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x180028361
call qword [0x180147110]
mov rcx, rbx
call qword [0x1801470c8]
dec qword [0x18014bdb8]
movsxd rcx, eax
sub qword [0x18014bd70], rcx
mov rcx, rbx
call qword [0x1801470b8]
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x1800276b7
call qword [0x180147120]
jmp 0x1800276b7
lea rax, [0x180131c04]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x11b17
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.1801003c0
jmp 0x180028335
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 0x180028313
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 0x18002842d
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 0x18002852a
cmp rdi, rsi
jge 0x18002844f
mov eax, dword [rbp + rdi*4 + 0xe0]
cmp dword [r13 + 4], eax
jne 0x18002844f
cmp r12, qword [rbx + 0x50]
jb 0x18002844f
cmp r12, qword [rbx + 0x58]
jb 0x180028525
cmp word [rsp + 0x50], 0
jne 0x18002847e
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.18008aa50
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
test ax, ax
jne 0x180028497
mov edx, r14d
lea rcx, [rbp - 0x30]
call fcn.18002f880
cmp ax, word [r13 + 0x10]
jbe 0x180028510
cmp dword [rsp + 0x44], 0
jne 0x180028330
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 0x18002851c
mov rcx, qword [rbx + 0x58]
cmp rcx, r12
jb 0x1800284de
lea rax, [r12 + rdx]
cmp rcx, rax
jb 0x180028551
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.18008aa50
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
jmp 0x180028514
mov eax, dword [rsp + 0x44]
test eax, eax
jne 0x180028330
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 0x180028584
mov rdx, qword [rbp - 0x78]
mov r10, qword [rbp - 0x80]
jmp 0x1800282f0
lea rax, [0x180131c04]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x1014d
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.1801003c0
jmp 0x180028335
lea r12, [rsi - 1]
mov rbx, qword [rbp + 0x88]
mov r13d, dword [rbp - 0x30]
test r12, r12
jle 0x1800286c9
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 0x1800285e2
mov rcx, qword [r14 + 0x50]
mov eax, dword [rbx]
mov dword [rcx + 8], eax
jmp 0x180028673
cmp byte [rsp + 0x48], 0
je 0x180028659
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 0x180028625
and dl, 0x7f
mov eax, 1
mov byte [rcx], dl
xor edi, edi
lea r9d, [rax + 4]
jmp 0x180028673
cmp rdx, 0x3fff
ja 0x18002864c
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 0x180028673
call fcn.18006a360
xor edi, edi
lea r9d, [rax + 4]
jmp 0x180028673
sub rbx, 4
cmp eax, 4
jne 0x180028673
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.1800797e0
mov r14d, dword [rsp + 0x40]
test r14d, r14d
jne 0x180028335
inc ebx
inc r15
mov dword [rsp + 0x68], ebx
cmp r15, r12
jl 0x1800285a0
mov rbx, qword [rbp + 0x88]
jmp 0x1800286ce
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 0x1800287c6
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 0x1800287af
test r12d, r12d
jns 0x180028720
mov ecx, dword [rbp + rbx*4 + 0x6c]
cmp dword [rbp + rbx*4 + 0xc4], ecx
jl 0x1800287af
test eax, eax
jne 0x180028730
xor eax, eax
mov r9d, edi
mov edx, eax
mov r8d, eax
jmp 0x18002876b
xor r12d, r12d
cmp eax, dword [rsp + 0x6c]
mov eax, dword [rsp + 0x48]
jge 0x18002874e
test al, al
mov edx, r12d
sete dl
add edx, dword [rbp + rbx*4 + 0xc4]
jmp 0x180028751
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.1800339c0
mov dword [rsp + 0x40], eax
mov r14d, eax
test eax, eax
jne 0x180028335
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 0x1800286f1
mov rbx, qword [rbp + 0x88]
cmp dword [rbp - 0x50], 0
je 0x18002882b
mov rdi, qword [rbp - 0x68]
cmp word [rdi + 0x18], 0
jne 0x18002882b
movzx eax, byte [rdi + 9]
cmp eax, dword [rbx + 0x14]
jg 0x18002882b
mov edx, 0xffffffff
mov rcx, rbx
call fcn.180032780
mov rcx, qword [rbp + 0x88]
lea r8, [rsp + 0x40]
mov rdx, rdi
mov dword [rsp + 0x40], eax
call fcn.180031900
mov r14d, dword [rsp + 0x40]
test r14d, r14d
jne 0x18002888b
mov rcx, qword [rbp + 0x88]
mov rdx, rcx
mov r8d, dword [rcx + 4]
mov rcx, qword [rcx + 0x48]
call fcn.18003c8d0
mov r14d, eax
jmp 0x18002888b
mov r10, qword [rbp - 0x80]
cmp byte [r10 + 0x21], 0
je 0x18002888b
cmp word [rsp + 0x50], 0
jne 0x18002888b
test rsi, rsi
jle 0x18002888b
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.18008aa50
mov r10, qword [rbp - 0x80]
inc rbx
cmp rbx, rsi
jl 0x180028850
mov r14d, dword [rsp + 0x40]
movsxd rax, dword [rsp + 0x6c]
mov rbx, rax
cmp rsi, rax
jge 0x180028335
nop dword [rax]
mov rcx, qword [rbp + rsi*8 + 0x58]
test r14d, r14d
jne 0x1800288bd
mov r8d, dword [rcx + 4]
mov rdx, rcx
mov rcx, qword [rcx + 0x48]
call fcn.18003c8d0
mov r14d, eax
inc rsi
cmp rsi, rbx
jl 0x1800288a0
jmp 0x180028335
mov rcx, rbx
call qword [0x1801470b8]
jmp 0x1800276b7
mov rcx, r8
call fcn.1800ce380
inc rbx
cmp rbx, rdi
jl 0x1800276e0
movsxd rbx, dword [rsp + 0x4c]
mov rdi, qword [rsp + 0x238]
test rbx, rbx
jle 0x18002896a
nop
mov r8, qword [rbp + rsi*8 + 0x88]
test r8, r8
je 0x180028962
mov r8, qword [r8 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x18002895a
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 0x180028962
mov rcx, r8
call fcn.1800ce380
inc rsi
cmp rsi, rbx
jl 0x180028900
mov rbx, qword [rsp + 0x278]
mov eax, r14d
mov r14, qword [rsp + 0x228]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.18011eb70
add rsp, 0x240
pop r13
pop rsi
pop rbp
ret