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

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x180191008]
xor rax, rsp
mov qword [rbp + 0xe8], rax
xor edi, edi
mov dword [rbp - 0x48], r9d
xorps xmm0, xmm0
mov qword [rbp - 0x40], r8
mov r9, r8
mov qword [rsp + 0x78], rcx
mov r8, rcx
mov dword [rsp + 0x70], edx
xor ecx, ecx
mov dword [rsp + 0x50], edi
mov dword [rbp - 0x70], edi
mov eax, edx
mov dword [rbp + 0xe0], ecx
mov r13d, edi
mov r10, qword [r8 + 0x48]
mov r14d, edi
mov qword [rsp + 0x68], r10
mov r12d, edi
mov byte [rbp + 0xe4], cl
mov qword [rbp + 0x30], rcx
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
test r9, r9
jne 0x18004b527
lea eax, [rdi + 7]
jmp 0x18004ca42
movzx ecx, word [r8 + 0x18]
movzx edx, byte [r8 + 0xc]
mov qword [rsp + 0x248], rbx
mov qword [rsp + 0x1f8], rsi
mov qword [rsp + 0x1f0], r15
lea ebx, [rdx + rcx]
cmp ebx, 2
jae 0x18004b55a
mov r9d, edi
mov dword [rsp + 0x44], edi
jmp 0x18004b595
test eax, eax
jne 0x18004b567
mov r9d, edi
mov dword [rsp + 0x44], edi
jmp 0x18004b588
cmp eax, ebx
jne 0x18004b57f
mov eax, dword [rbp + 0x150]
lea r9d, [rax - 2]
add r9d, ebx
mov dword [rsp + 0x44], r9d
jmp 0x18004b58e
lea r9d, [rax - 1]
mov dword [rsp + 0x44], r9d
mov eax, dword [rbp + 0x150]
mov ebx, 2
sub ebx, eax
mov eax, r9d
mov dword [rsp + 0x58], ebx
sub eax, edx
lea r11d, [rbx + 1]
add eax, ebx
mov dword [rsp + 0x4c], r11d
cmp eax, ecx
jne 0x18004b5b8
movzx ecx, byte [r8 + 9]
add rcx, 8
jmp 0x18004b5d4
add eax, eax
movsxd rcx, eax
mov rax, qword [r8 + 0x60]
movzx edx, word [rcx + rax]
movzx eax, word [r8 + 0x1a]
ror dx, 8
movzx ecx, dx
and rcx, rax
add rcx, qword [r8 + 0x50]
lea r15, [rbp + 0x40]
movsxd rax, ebx
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x38], rax
mov edi, dword [rcx]
bswap edi
mov dword [rbp - 0x78], edi
lea r15, [r15 + rax*4]
mov dword [rbp - 0x74], edi
lea rsi, [rax*8]
nop dword [rax]
test r14d, r14d
jne 0x18004c901
movsxd rax, ebx
lea r8, [rbp + 0x58]
xor r9d, r9d
mov edx, edi
mov rcx, r10
lea r8, [r8 + rax*8]
call fcn.180043d70
mov dword [rsp + 0x34], eax
mov r14d, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x18004c901
mov rcx, qword [rbp + rsi + 0x58]
cmp dword [rcx + 0x14], r12d
jge 0x18004b657
call fcn.180043900
mov dword [rsp + 0x34], eax
mov r14d, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x18004b78b
mov rax, qword [rbp + rsi + 0x58]
add r13d, 4
sub r15, 4
sub rsi, 8
movzx ecx, word [rax + 0x18]
mov eax, ebx
add r13d, ecx
dec ebx
test eax, eax
je 0x18004b7a6
mov r8, qword [rsp + 0x78]
movzx edx, byte [r8 + 0xc]
test dl, dl
je 0x18004b6cb
mov eax, dword [rsp + 0x44]
movzx ecx, word [r8 + 0x1c]
add eax, ebx
cmp eax, ecx
jne 0x18004b6cb
mov rdx, qword [r8 + 0x28]
mov rcx, r8
mov qword [rbp + rsi - 0x68], rdx
mov edi, dword [rdx]
bswap edi
mov dword [rbp - 0x78], edi
mov dword [rbp - 0x74], edi
call qword [r8 + 0x78]
mov rcx, qword [rsp + 0x78]
mov r10, qword [rsp + 0x68]
movzx eax, ax
mov dword [r15], eax
mov byte [rcx + 0xc], r12b
jmp 0x18004b600
mov rax, qword [r8 + 0x60]
mov ecx, dword [rsp + 0x44]
sub ecx, edx
add ecx, ebx
add ecx, ecx
movsxd rcx, ecx
movzx edx, word [rcx + rax]
mov rcx, r8
movzx eax, word [r8 + 0x1a]
ror dx, 8
movzx edi, dx
and rdi, rax
add rdi, qword [r8 + 0x50]
mov rdx, rdi
mov qword [rbp + rsi - 0x68], rdi
mov eax, dword [rdi]
bswap eax
mov dword [rbp - 0x78], eax
mov dword [rbp - 0x74], eax
call qword [r8 + 0x78]
mov rdx, qword [rsp + 0x68]
movzx r14d, ax
mov dword [r15], r14d
test byte [rdx + 0x28], 0xc
je 0x18004b758
mov rax, qword [rsp + 0x78]
mov ecx, edi
sub ecx, dword [rax + 0x50]
lea eax, [r14 + rcx]
cmp eax, dword [rdx + 0x38]
jg 0x18004b758
movsxd rcx, ecx
mov r8d, r14d
add rcx, qword [rbp - 0x40]
mov rdx, rdi
call fcn.18013fe80
mov rcx, qword [rsp + 0x78]
mov rax, qword [rbp - 0x40]
sub rax, qword [rcx + 0x50]
add rax, rdi
mov qword [rbp + rsi - 0x68], rax
mov rdi, qword [rsp + 0x78]
lea r9, [rsp + 0x30]
mov edx, dword [rsp + 0x44]
mov r8d, r14d
mov rcx, rdi
movzx eax, byte [rdi + 0xc]
sub edx, eax
add edx, ebx
call fcn.180049f20
mov r10, qword [rsp + 0x68]
mov r14d, dword [rsp + 0x30]
mov edi, dword [rbp - 0x78]
jmp 0x18004b600
movsxd r8, ebx
lea rcx, [rbp + 0x58]
xor edx, edx
lea r8, [r8*8]
call fcn.18013d7a0
jmp 0x18004c91d
mov rsi, qword [rsp + 0x68]
lea ebx, [r13 + 3]
and ebx, 0xfffffffc
mov eax, dword [rsi + 0x34]
lea ecx, [rbx + rbx*4]
lea ecx, [rax + rcx*2]
movsxd rcx, ecx
call fcn.18002a230
xor edi, edi
mov qword [rbp - 0x20], rax
mov r8, rax
test rax, rax
jne 0x18004b7da
lea r14d, [rax + 7]
jmp 0x18004c930
mov rcx, qword [rbp + 0x58]
mov edx, dword [rsp + 0x4c]
movsxd rax, ebx
mov qword [rbp - 0x28], rcx
movzx r10d, byte [rcx + 8]
movzx r11d, byte [rcx + 2]
lea r9, [r8 + rax*8]
shl r10w, 2
mov qword [rbp - 0x18], r9
lea rax, [r9 + rax*2]
mov qword [rsp + 0x60], rax
mov word [rsp + 0x40], r10w
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x54], edi
test edx, edx
jle 0x18004bbe1
mov esi, dword [rbp - 0x30]
mov r13, rdi
mov qword [rbp - 0x80], rdi
nop word [rax + rax]
mov r15, qword [rbp + r13*8 + 0x58]
mov rax, qword [rcx + 0x50]
mov rdi, qword [r15 + 0x50]
movzx ebx, word [r15 + 0x12]
movzx ecx, byte [rax]
add rbx, rdi
movzx r13d, word [r15 + 0x18]
movzx r14d, word [r15 + 0x1a]
cmp byte [rdi], cl
jne 0x18004bbae
movzx r8d, byte [r15 + 0xc]
xor edx, edx
movsxd rax, esi
add r8, r13
add r8, r8
lea rcx, [r9 + rax*2]
call fcn.18013d7a0
movzx ecx, byte [r15 + 0xc]
test cl, cl
je 0x18004b900
movzx eax, word [r15 + 0x1c]
cmp r13w, ax
jb 0x18004ba3f
mov r9, qword [rbp - 0x20]
xor r8d, r8d
cmp r8w, ax
jae 0x18004b8cb
mov edx, eax
nop
movzx eax, word [rbx]
add rbx, 2
ror ax, 8
movzx ecx, ax
and rcx, r14
movsxd rax, esi
add rcx, rdi
inc esi
mov qword [r9 + rax*8], rcx
sub rdx, 1
jne 0x18004b8a0
movzx ecx, byte [r15 + 0xc]
mov dword [rbp - 0x30], esi
test cl, cl
je 0x18004b900
lea rdx, [r15 + 0x28]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdx]
lea rdx, [rdx + 8]
movsxd rcx, esi
inc r8d
inc esi
mov qword [r9 + rcx*8], rax
movzx eax, byte [r15 + 0xc]
cmp r8d, eax
jl 0x18004b8e0
mov dword [rbp - 0x30], esi
movzx ecx, word [r15 + 0x12]
movzx edx, word [r15 + 0x18]
add rcx, rdi
lea r8, [rcx + rdx*2]
cmp rbx, r8
jae 0x18004b945
mov rdx, qword [rbp - 0x20]
nop word [rax + rax]
movzx eax, word [rbx]
add rbx, 2
ror ax, 8
movzx ecx, ax
and rcx, r14
movsxd rax, esi
add rcx, rdi
inc esi
mov qword [rdx + rax*8], rcx
cmp rbx, r8
jb 0x18004b920
mov dword [rbp - 0x30], esi
mov r13, qword [rbp - 0x80]
mov edx, dword [rsp + 0x54]
mov r11d, dword [rsp + 0x38]
mov dword [rbp + r13*4 + 0xb0], esi
cmp edx, dword [rsp + 0x58]
jge 0x18004ba15
test r11b, r11b
jne 0x18004ba15
movzx ecx, word [rbp + r13*4 + 0x40]
mov rax, qword [rbp - 0x18]
mov r8d, ecx
mov rdx, qword [rbp + r13*8 - 0x68]
movsxd rbx, r12d
add r12d, ecx
add rbx, qword [rsp + 0x60]
movsxd rdi, esi
lea r14, [rax + rdi*2]
mov word [r14], cx
mov rcx, rbx
call fcn.18013fe80
movzx r10d, word [rsp + 0x40]
mov r8, qword [rbp - 0x20]
lea rax, [rbx + r10]
mov qword [r8 + rdi*8], rax
sub word [r14], r10w
cmp byte [r15 + 8], 0
jne 0x18004b9d7
mov rax, qword [r15 + 0x50]
inc esi
mov rcx, qword [r8 + rdi*8]
mov edx, dword [rsp + 0x54]
mov r11d, dword [rsp + 0x38]
mov eax, dword [rax + 8]
mov dword [rcx], eax
mov dword [rbp - 0x30], esi
jmp 0x18004ba1b
cmp word [r14], 4
jae 0x18004ba05
mov rcx, qword [rsp + 0x60]
movsxd rax, r12d
add rcx, rax
nop dword [rax]
mov byte [rcx], 0
lea rcx, [rcx + 1]
inc word [r14]
inc r12d
cmp word [r14], 4
jb 0x18004b9f0
mov edx, dword [rsp + 0x54]
inc esi
mov r11d, dword [rsp + 0x38]
mov dword [rbp - 0x30], esi
jmp 0x18004ba1b
movzx r10d, word [rsp + 0x40]
movsxd rcx, dword [rsp + 0x4c]
inc edx
inc r13
mov dword [rsp + 0x54], edx
mov qword [rbp - 0x80], r13
cmp r13, rcx
jge 0x18004ba72
mov rcx, qword [rbp + 0x58]
mov r9, qword [rbp - 0x18]
jmp 0x18004b830
lea rax, [0x18016efc4]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x130fa
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.18002d3c0
jmp 0x18004c91d
mov rax, qword [rsp + 0x68]
lea r15, [rbp + 0x20]
movzx r8d, r10w
lea r12, [rbp - 0x10]
xor r9d, r9d
mov dword [rsp + 0x54], r8d
mov edx, r9d
lea r13, [rbp + 0x1c]
mov r10d, dword [rax + 0x38]
mov ecx, r9d
add r10d, 0xfffffff4
mov qword [rsp + 0x60], rdx
add r10d, r8d
mov dword [rsp + 0x3c], ecx
mov dword [rsp + 0x48], r10d
nop
mov r8d, dword [rbp + rdx*4 + 0xb0]
mov rbx, qword [rbp + rdx*8 + 0x58]
mov dword [rsp + 0x58], r8d
mov rax, qword [rbx + 0x58]
mov qword [r12], rax
mov dword [r15], r8d
test ecx, ecx
je 0x18004bae9
cmp r8d, dword [r13]
jne 0x18004bae9
dec ecx
sub r12, 8
sub r13, 4
mov dword [rsp + 0x3c], ecx
sub r15, 4
test r11b, r11b
jne 0x18004bb14
mov rax, qword [rsp + 0x78]
add r12, 8
inc ecx
add r13, 4
add r15, 4
mov dword [rsp + 0x3c], 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 - 0x68], rax
mov dword [rax], edi
jbe 0x18004bb77
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 0x18004bb35
mov rax, qword [rbp - 0x68]
xor r9d, r9d
mov ecx, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x60]
mov r8d, dword [rsp + 0x58]
mov r10d, dword [rsp + 0x48]
mov r11d, dword [rsp + 0x38]
mov dword [rax], edi
mov dword [rbp + rdx*4 + 0x70], r8d
inc ecx
movsxd r8, dword [rsp + 0x4c]
inc rdx
add r12, 8
mov qword [rsp + 0x60], rdx
add r13, 4
mov dword [rsp + 0x3c], ecx
add r15, 4
cmp rdx, r8
jl 0x18004bab0
mov rcx, qword [rbp + 0x58]
mov r9, qword [rbp - 0x18]
jmp 0x18004bbf9
lea rax, [0x18016efc4]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x130e2
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.18002d3c0
jmp 0x18004c91d
movzx edx, r10w
mov r10d, dword [rsi + 0x38]
add r10d, 0xfffffff4
mov dword [rsp + 0x54], edx
add r10d, edx
mov dword [rsp + 0x48], r10d
mov eax, dword [rsp + 0x4c]
xor r12d, r12d
mov dword [rsp + 0x3c], eax
mov edx, eax
mov r13d, r12d
test eax, eax
jle 0x18004be0f
mov ecx, dword [rbp - 0x30]
lea r15d, [r12 + 1]
mov esi, r12d
nop dword [rax]
mov ebx, dword [rbp + rsi + 0x40]
cmp ebx, r10d
jle 0x18004bcdf
nop dword [rax]
cmp r15d, edx
jl 0x18004bc54
lea eax, [r15 + 1]
mov dword [rsp + 0x3c], eax
cmp rsi, 0xc
jg 0x18004bda5
mov dword [rbp + rsi + 0x44], r12d
mov ebx, dword [rbp + rsi + 0x40]
mov dword [rbp + rsi + 0x74], ecx
movsxd rdi, dword [rbp + rsi + 0x70]
movzx eax, word [r9 + rdi*2 - 2]
lea r14d, [rdi - 1]
test ax, ax
jne 0x18004bc82
mov edx, r14d
lea rcx, [rbp - 0x30]
call fcn.18004a680
mov r10d, dword [rsp + 0x48]
mov r9, qword [rbp - 0x18]
mov r11d, dword [rsp + 0x38]
movzx eax, ax
add eax, 2
sub ebx, eax
mov dword [rbp + rsi + 0x40], ebx
test r11b, r11b
jne 0x18004bcc6
cmp edi, dword [rbp - 0x30]
jge 0x18004bcc3
movzx eax, word [r9 + rdi*2]
test ax, ax
jne 0x18004bcb6
mov edx, edi
lea rcx, [rbp - 0x30]
call fcn.18004a680
mov r9, qword [rbp - 0x18]
mov r11d, dword [rsp + 0x38]
mov r10d, dword [rsp + 0x48]
movzx eax, ax
add eax, 2
jmp 0x18004bcc6
mov eax, r12d
add dword [rbp + rsi + 0x44], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rbp - 0x30]
mov dword [rbp + rsi + 0x70], r14d
cmp ebx, r10d
jg 0x18004bc30
movsxd rdi, dword [rbp + rsi + 0x70]
cmp edi, ecx
jge 0x18004bd61
lea r14, [r9 + rdi*2]
nop dword [rax]
movzx eax, word [r14]
test ax, ax
jne 0x18004bd0c
mov edx, edi
lea rcx, [rbp - 0x30]
call fcn.18004a680
mov ecx, dword [rbp - 0x30]
mov r10d, dword [rsp + 0x48]
movzx eax, ax
add eax, 2
add ebx, eax
cmp ebx, r10d
jg 0x18004bd89
inc edi
mov dword [rbp + rsi + 0x40], ebx
add r14, 2
mov dword [rbp + rsi + 0x70], edi
cmp byte [rsp + 0x38], r12b
jne 0x18004bd59
cmp edi, ecx
jge 0x18004bd56
movzx eax, word [r14]
test ax, ax
jne 0x18004bd4e
mov edx, edi
lea rcx, [rbp - 0x30]
call fcn.18004a680
mov ecx, dword [rbp - 0x30]
mov r10d, dword [rsp + 0x48]
movzx eax, ax
add eax, 2
jmp 0x18004bd59
mov eax, r12d
sub dword [rbp + rsi + 0x44], eax
cmp edi, ecx
jl 0x18004bcf0
mov edx, r15d
mov dword [rsp + 0x3c], edx
inc r13d
inc r15d
add rsi, 4
cmp r13d, edx
jge 0x18004be0b
mov r9, qword [rbp - 0x18]
mov r11d, dword [rsp + 0x38]
jmp 0x18004bc20
cmp edi, ecx
jge 0x18004bd61
test r13d, r13d
jle 0x18004bd98
mov eax, dword [rbp + rsi + 0x6c]
jmp 0x18004bd9b
mov eax, r12d
cmp edi, eax
jle 0x18004bdd8
mov edx, dword [rsp + 0x3c]
jmp 0x18004bd68
lea rax, [0x18016efc4]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x1315f
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.18002d3c0
jmp 0x18004c91d
lea rax, [0x18016efc4]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x13180
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.18002d3c0
jmp 0x18004c91d
mov rcx, qword [rbp + 0x58]
lea eax, [rdx - 1]
movsxd r12, eax
mov qword [rbp - 0x68], r12
mov dword [rsp + 0x58], eax
test eax, eax
jle 0x18004bf58
nop word [rax + rax]
mov rsi, qword [rbp - 0x18]
lea rcx, [r12*4]
mov edi, dword [rbp + rcx + 0x40]
lea r8, [rbp + 0x70]
mov r15d, dword [rbp + rcx + 0x3c]
sub r8, 4
mov qword [rbp - 0x80], rcx
mov qword [rsp + 0x60], r8
mov r13d, dword [r8 + rcx]
lea ebx, [r13 - 1]
mov eax, ebx
sub eax, dword [rsp + 0x38]
movsxd r14, eax
inc r14
cmp word [rsi + r14*2], 0
lea edx, [rax + 1]
lea r14, [rsi + r14*2]
jne 0x18004be82
lea rcx, [rbp - 0x30]
call fcn.18004a680
mov r12d, dword [rsp + 0x58]
movsxd rax, ebx
lea rsi, [rsi + rax*2]
nop
movzx eax, word [rsi]
test ax, ax
jne 0x18004bea3
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.18004a680
movzx edx, word [r14]
movzx r8d, ax
test edi, edi
je 0x18004bedf
cmp dword [rbp + 0x150], 0
jne 0x18004bf0c
mov ecx, dword [rsp + 0x3c]
add edx, edi
dec ecx
mov eax, 2
cmp r12d, ecx
mov ecx, 0
cmove eax, ecx
mov ecx, r15d
sub ecx, eax
lea eax, [rdx + 2]
sub ecx, r8d
cmp eax, ecx
jg 0x18004bf0c
mov rcx, qword [rbp - 0x80]
lea edi, [rdx + 2]
mov eax, 0xfffffffe
sub rsi, 2
sub eax, r8d
sub r14, 2
mov r8, qword [rsp + 0x60]
add r15d, eax
mov r13d, ebx
mov dword [r8 + rcx], ebx
sub ebx, 1
jns 0x18004be90
jmp 0x18004bf15
mov r8, qword [rsp + 0x60]
mov rcx, qword [rbp - 0x80]
mov r12, qword [rbp - 0x68]
mov dword [rbp + rcx + 0x40], edi
xor edi, edi
mov dword [rbp + rcx + 0x3c], r15d
cmp r12, 1
jbe 0x18004bf31
mov eax, dword [r8 + rcx - 4]
jmp 0x18004bf33
mov eax, edi
cmp r13d, eax
jle 0x18004bfca
dec dword [rsp + 0x58]
dec r12
mov qword [rbp - 0x68], r12
test r12, r12
jg 0x18004be30
mov rcx, qword [rbp + 0x58]
mov edx, dword [rsp + 0x3c]
mov rax, qword [rcx + 0x50]
xor r12d, r12d
movsxd r15, edx
mov esi, r12d
movzx edi, byte [rax]
mov dword [rsp + 0x3c], edi
test edx, edx
jle 0x18004c15d
mov r13d, dword [rbp - 0x78]
mov ebx, r12d
nop dword [rax + rax]
movsxd rcx, dword [rsp + 0x4c]
cmp rbx, rcx
jge 0x18004c06c
mov rdi, qword [rbp + rbx*8 + 0x58]
mov qword [rbp + rbx*8 + 0x88], rdi
mov qword [rbp + rbx*8 + 0x58], r12
mov qword [rbp - 0x68], rdi
mov rcx, qword [rdi + 0x70]
test byte [rcx + 0x34], 4
mov rdx, qword [rcx + 0x28]
je 0x18004c007
mov eax, dword [rcx + 0x30]
cmp dword [rdx + 0x20], eax
jb 0x18004c007
cmp dword [rdx + 0x80], r12d
je 0x18004bffd
call fcn.18003b460
jmp 0x18004c02f
lea rax, [0x18016efc4]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x131ac
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.18002d3c0
jmp 0x18004c91f
mov r14d, r12d
mov dword [rsp + 0x34], r12d
jmp 0x18004c036
mov r14d, dword [rdx + 0x30]
mov dword [rsp + 0x34], r14d
test r14d, r14d
jne 0x18004c036
mov eax, dword [rdx + 0xc8]
cmp dword [rdx + 0xb8], eax
jbe 0x18004c02a
call fcn.18003d0d0
jmp 0x18004c02f
call fcn.18003d020
mov r14d, eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x70]
mov ecx, r12d
sub eax, dword [rsp + 0x44]
inc dword [rsp + 0x50]
cmp esi, eax
mov dword [rsp + 0x30], r14d
mov rax, qword [rdi + 0x70]
sete cl
inc ecx
cmp dword [rax + 0x38], ecx
jne 0x18004c121
test r14d, r14d
jne 0x18004c91d
jmp 0x18004c10e
cmp dword [rbp + 0x150], r12d
lea r8, [rbp - 0x74]
mov eax, 1
mov byte [rsp + 0x20], r12b
cmovne r13d, eax
lea rdx, [rbp - 0x68]
mov r9d, r13d
mov r13, qword [rsp + 0x68]
mov rcx, r13
call fcn.180048880
mov dword [rsp + 0x34], eax
mov r14d, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x18004c91d
mov edx, edi
mov rdi, qword [rbp - 0x68]
mov rcx, rdi
call fcn.180043c70
inc dword [rsp + 0x50]
mov eax, dword [rbp - 0x30]
mov qword [rbp + rbx*8 + 0x88], rdi
mov dword [rbp + rbx*4 + 0xb0], eax
cmp byte [r13 + 0x21], r12b
je 0x18004c10a
mov edx, dword [rdi + 4]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8b, 5
mov rax, qword [rsp + 0x78]
mov rcx, r13
mov r9d, dword [rax + 4]
call fcn.1800426b0
mov r14d, dword [rsp + 0x30]
mov dword [rsp + 0x34], r14d
test r14d, r14d
jne 0x18004c91d
mov r13d, dword [rbp - 0x74]
inc esi
inc rbx
cmp rbx, r15
jge 0x18004c15d
mov edi, dword [rsp + 0x3c]
jmp 0x18004bf80
test r14d, r14d
jne 0x18004c91d
lea rax, [0x18016efc4]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x131cd
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.18002d3c0
jmp 0x18004c91d
movsxd r9, dword [rsp + 0x50]
mov r15, r9
test r9d, r9d
jle 0x18004c18a
mov rdx, r12
nop dword [rax]
mov rax, qword [rbp + rdx*8 + 0x88]
mov ecx, dword [rax + 4]
mov dword [rbp + rdx*4 + 0xc8], ecx
inc rdx
cmp rdx, r15
jl 0x18004c170
lea r8d, [r9 - 1]
mov r11d, r12d
mov dword [rsp + 0x58], r8d
test r8d, r8d
jle 0x18004c2c5
lea rbx, [rbp + 0x88]
mov r13d, 1
mov qword [rbp - 0x68], rbx
mov eax, r8d
nop dword [rax]
nop word [rax + rax]
lea r8d, [r11 + 1]
mov r10d, r11d
mov dword [rsp + 0x70], r8d
mov r9d, r8d
lea r12, [r13 - 1]
mov r8, r13
cmp r13, r15
jge 0x18004c2a4
nop
mov rax, qword [rbp + r12*8 + 0x88]
mov edx, dword [rax + 4]
mov rax, qword [rbp + r8*8 + 0x88]
mov ecx, dword [rax + 4]
cmp ecx, edx
mov rax, r8
cmovae rax, r12
mov r12, rax
mov eax, r9d
cmovae eax, r10d
inc r9d
inc r8
mov r10d, eax
cmp r8, r15
jl 0x18004c1e0
cmp eax, r11d
je 0x18004c2a0
mov rcx, qword [rbx]
xor edx, edx
mov eax, dword [0x180191f78]
mov r8, qword [rbp + r12*8 + 0x88]
mov r9, qword [rsp + 0x68]
mov r14d, dword [rcx + 4]
mov rcx, qword [rcx + 0x70]
mov esi, dword [r8 + 4]
div dword [r9 + 0x34]
movzx ebx, word [rcx + 0x34]
lea edx, [rax + 1]
mov rax, qword [r8 + 0x70]
movzx edi, word [rax + 0x34]
mov word [rcx + 0x34], di
call fcn.180036ef0
mov rax, qword [rbp + r12*8 + 0x88]
mov edx, r14d
mov rcx, qword [rax + 0x70]
mov word [rcx + 0x34], bx
call fcn.180036ef0
mov rbx, qword [rbp - 0x68]
mov edx, esi
mov rax, qword [rbx]
mov rcx, qword [rax + 0x70]
mov word [rcx + 0x34], di
call fcn.180036ef0
mov rax, qword [rbx]
mov dword [rax + 4], esi
mov rax, qword [rbp + r12*8 + 0x88]
mov dword [rax + 4], r14d
mov eax, dword [rsp + 0x58]
mov r11d, dword [rsp + 0x70]
add rbx, 8
inc r13
mov qword [rbp - 0x68], rbx
cmp r11d, eax
jl 0x18004c1c0
mov r9d, dword [rsp + 0x50]
xor r12d, r12d
test byte [rsp + 0x3c], 8
lea r13, [r15 - 1]
mov rax, qword [rbp + r13*8 + 0x88]
mov ecx, dword [rax + 4]
mov rax, qword [rbp - 0x50]
bswap ecx
mov dword [rax], ecx
jne 0x18004c317
cmp dword [rsp + 0x4c], r9d
je 0x18004c317
mov rcx, qword [rbp - 0x38]
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 + r13*8 + 0x88]
mov rcx, qword [rax + 0x50]
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov r10, qword [rsp + 0x68]
cmp byte [r10 + 0x21], 0
je 0x18004c54c
mov rbx, qword [rbp + 0x88]
mov r14d, r12d
movzx esi, word [rbx + 0x18]
movzx eax, byte [rbx + 0xc]
add esi, eax
cmp dword [rbp - 0x30], 0
jle 0x18004c556
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x88]
mov rcx, qword [rbp - 0x20]
lea r8, [rbp + 0x70]
mov qword [rsp + 0x70], rax
mov rdi, r12
mov qword [rbp - 0x80], rdx
mov r13, rbx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x58], rcx
mov r12, qword [rcx]
mov r11d, dword [rsp + 0x38]
cmp r14d, esi
jne 0x18004c3d7
mov r9d, dword [rsp + 0x48]
xor edx, edx
mov r10d, dword [rsp + 0x54]
test r11b, r11b
sete dl
inc rdi
cmp rdi, r15
jge 0x18004c3a2
mov rbx, qword [rbp + rdi*8 + 0x88]
jmp 0x18004c3a7
mov rbx, qword [rbp + rdi*8 + 0x58]
movzx eax, word [rbx + 0x18]
movzx ecx, byte [rbx + 0xc]
add eax, edx
add ecx, eax
add esi, ecx
cmp r14d, esi
je 0x18004c390
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rbp - 0x80]
mov dword [rsp + 0x54], r10d
mov r10, qword [rsp + 0x68]
mov dword [rsp + 0x48], r9d
cmp r14d, dword [r8]
jne 0x18004c3fa
mov r13, qword [rdx + 8]
add rdx, 8
add r8, 4
mov qword [rbp - 0x80], rdx
mov qword [rsp + 0x60], r8
test r11b, r11b
je 0x18004c4ec
cmp rdi, r15
jge 0x18004c41c
mov eax, dword [rbp + rdi*4 + 0xc8]
cmp dword [r13 + 4], eax
jne 0x18004c41c
cmp r12, qword [rbx + 0x50]
jb 0x18004c41c
cmp r12, qword [rbx + 0x58]
jb 0x18004c4e7
cmp word [rsp + 0x40], 0
jne 0x18004c44b
mov edx, dword [r12]
lea rax, [rsp + 0x30]
mov r9d, dword [r13 + 4]
mov r8b, 5
bswap edx
mov rcx, r10
mov qword [rsp + 0x20], rax
call fcn.1800426b0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax]
test ax, ax
jne 0x18004c464
mov edx, r14d
lea rcx, [rbp - 0x30]
call fcn.18004a680
cmp ax, word [r13 + 0x10]
jbe 0x18004c4d1
cmp dword [rsp + 0x34], 0
jne 0x18004c918
lea r8, [rbp - 0x68]
mov rdx, r12
mov rcx, r13
call qword [r13 + 0x80]
movzx edx, word [rbp - 0x54]
cmp edx, dword [rbp - 0x58]
jae 0x18004c4dd
mov rcx, qword [rbx + 0x58]
cmp r12, rcx
jae 0x18004c4a2
lea rax, [r12 + rdx]
cmp rax, rcx
ja 0x18004c515
movzx eax, word [rbp - 0x52]
mov r8b, 3
mov r9d, dword [r13 + 4]
mov rcx, qword [r13 + 0x48]
mov edx, dword [rax + r12 - 4]
lea rax, [rsp + 0x30]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.1800426b0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
jmp 0x18004c4d5
mov eax, dword [rsp + 0x34]
test eax, eax
jne 0x18004c918
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x70]
add rcx, 8
add rax, 2
inc r14d
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x70], rax
cmp r14d, dword [rbp - 0x30]
jge 0x18004c548
mov rdx, qword [rbp - 0x80]
mov r10, qword [rsp + 0x68]
jmp 0x18004c371
lea rax, [0x18016efc4]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x1169d
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.18002d3c0
jmp 0x18004c91d
lea r13, [r15 - 1]
mov rbx, qword [rbp + 0x88]
xor r12d, r12d
test r13, r13
jle 0x18004c6e1
nop
movsxd rdi, dword [rbp + r12*4 + 0x70]
mov rcx, qword [rbp - 0x18]
mov r14, qword [rbp + r12*8 + 0x88]
mov r10, qword [rbp - 0x20]
movsxd rsi, dword [rbp - 0x70]
movzx ecx, word [rcx + rdi*2]
add rsi, qword [rbp - 0x40]
mov r9d, ecx
add r9d, dword [rsp + 0x54]
cmp byte [r14 + 8], 0
mov rbx, qword [r10 + rdi*8]
jne 0x18004c5a2
mov rcx, qword [r14 + 0x50]
mov eax, dword [rbx]
mov dword [rcx + 8], eax
jmp 0x18004c638
cmp byte [rsp + 0x38], 0
je 0x18004c61d
dec edi
lea r8, [rbp + 0xc8]
movsxd rdx, edi
mov rcx, r14
mov rdx, qword [r10 + rdx*8]
call qword [r14 + 0x80]
mov rdx, qword [rbp + 0xc8]
lea rcx, [rsi + 4]
mov rbx, rsi
cmp rdx, 0x7f
ja 0x18004c5e9
and dl, 0x7f
mov eax, 1
mov byte [rcx], dl
xor esi, esi
lea r9d, [rax + 4]
jmp 0x18004c638
cmp rdx, 0x3fff
ja 0x18004c610
mov rax, rdx
and dl, 0x7f
shr rax, 7
or al, 0x80
mov byte [rcx + 1], dl
mov byte [rcx], al
xor esi, esi
mov eax, 2
lea r9d, [rax + 4]
jmp 0x18004c638
call fcn.1800304c0
xor esi, esi
lea r9d, [rax + 4]
jmp 0x18004c638
sub rbx, 4
cmp ecx, 4
jne 0x18004c638
mov rax, qword [rsp + 0x78]
mov rdx, rbx
mov rcx, rax
call qword [rax + 0x78]
movzx r9d, ax
add dword [rbp - 0x70], r9d
xor eax, eax
nop
cmp dword [rbp + rax*4 + 0x20], edi
jg 0x18004c64f
inc rax
cmp rax, 6
jl 0x18004c640
mov rcx, qword [rbp + rax*8 - 0x10]
cmp rbx, rcx
jae 0x18004c664
movsxd rax, r9d
add rax, rbx
cmp rax, rcx
ja 0x18004c6ae
mov eax, dword [r14 + 4]
mov r8, rbx
mov ebx, dword [rsp + 0x44]
mov edx, ebx
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call fcn.18004a050
mov dword [rsp + 0x30], eax
mov r14d, eax
test eax, eax
jne 0x18004c91d
inc ebx
inc r12
mov dword [rsp + 0x44], ebx
cmp r12, r13
jl 0x18004c560
mov rbx, qword [rbp + 0x88]
jmp 0x18004c6e6
lea rax, [0x18016efc4]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x13295
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.18002d3c0
jmp 0x18004c91d
mov r14d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x50]
mov r12d, 1
sub r12d, r8d
mov qword [rbp - 0x50], r12
cmp r12d, r8d
jge 0x18004c7e4
mov edi, dword [rbp + 0x70]
mov esi, dword [rsp + 0x48]
nop dword [rax + rax]
mov eax, r12d
cdq
xor eax, edx
sub eax, edx
movsxd rbx, eax
cmp byte [rbp + rbx + 0xe0], 0
jne 0x18004c7cd
test r12d, r12d
jns 0x18004c73f
mov ecx, dword [rbp + rbx*4 + 0x6c]
cmp dword [rbp + rbx*4 + 0xac], ecx
jl 0x18004c7cd
test eax, eax
jne 0x18004c74f
xor eax, eax
mov r9d, edi
mov edx, eax
mov r8d, eax
jmp 0x18004c78a
xor r12d, r12d
cmp eax, dword [rsp + 0x4c]
mov eax, dword [rsp + 0x38]
jge 0x18004c76d
test al, al
mov edx, r12d
sete dl
add edx, dword [rbp + rbx*4 + 0xac]
jmp 0x18004c770
mov edx, dword [rbp - 0x30]
mov r9d, dword [rbp + rbx*4 + 0x70]
mov r8d, r12d
mov r12, qword [rbp - 0x50]
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.18004ace0
mov dword [rsp + 0x30], eax
mov r14d, eax
test eax, eax
jne 0x18004c91d
mov rax, qword [rbp + rbx*8 + 0x88]
mov ecx, esi
sub ecx, dword [rbp + rbx*4 + 0x40]
mov r8d, dword [rsp + 0x50]
mov byte [rbp + rbx + 0xe0], 1
mov dword [rax + 0x14], ecx
inc r12d
mov qword [rbp - 0x50], r12
cmp r12d, r8d
jl 0x18004c710
mov rbx, qword [rbp + 0x88]
cmp dword [rbp - 0x48], 0
je 0x18004c89a
mov rdi, qword [rsp + 0x78]
cmp word [rdi + 0x18], 0
jne 0x18004c89a
movzx eax, byte [rdi + 9]
cmp eax, dword [rbx + 0x14]
jg 0x18004c89a
mov edx, 0xffffffff
mov rcx, rbx
call fcn.180043000
mov rcx, qword [rbp + 0x88]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov dword [rsp + 0x30], eax
call fcn.18004b3a0
mov r14d, dword [rsp + 0x30]
test r14d, r14d
jne 0x18004c854
mov rcx, qword [rbp + 0x88]
mov rdx, rcx
mov r8d, dword [rcx + 4]
mov rcx, qword [rcx + 0x48]
call fcn.180049230
mov r14d, eax
xor edi, edi
movsxd rax, dword [rsp + 0x4c]
mov rbx, rax
cmp r15, rax
jge 0x18004c91f
nop word [rax + rax]
mov rcx, qword [rbp + r15*8 + 0x58]
test r14d, r14d
jne 0x18004c88d
mov r8d, dword [rcx + 4]
mov rdx, rcx
mov rcx, qword [rcx + 0x48]
call fcn.180049230
mov r14d, eax
inc r15
cmp r15, rbx
jl 0x18004c870
jmp 0x18004c91f
mov r10, qword [rsp + 0x68]
cmp byte [r10 + 0x21], 0
je 0x18004c854
xor edi, edi
cmp word [rsp + 0x40], di
jne 0x18004c856
test r15, r15
jle 0x18004c856
mov ebx, edi
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 + 0x30]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.1800426b0
mov r10, qword [rsp + 0x68]
inc rbx
cmp rbx, r15
jl 0x18004c8c0
mov r14d, dword [rsp + 0x30]
jmp 0x18004c856
lea eax, [rbx + 1]
xor edx, edx
movsxd r8, eax
lea rcx, [rbp + 0x58]
shl r8, 3
call fcn.18013d7a0
jmp 0x18004c91d
mov r14d, dword [rsp + 0x34]
xor edi, edi
mov rax, qword [rbp - 0x20]
test rax, rax
je 0x18004c930
mov rcx, rax
call fcn.18002a420
movsxd rax, dword [rsp + 0x4c]
mov r15, qword [rsp + 0x1f0]
mov rsi, rax
test eax, eax
jle 0x18004c9b4
mov rbx, rdi
nop word [rax + rax]
mov r8, qword [rbp + rbx*8 + 0x58]
test r8, r8
je 0x18004c9ac
mov r8, qword [r8 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x18004c9a4
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
imul rdx, qword [r10 + 0xc8]
mov r9, qword [rcx]
call qword [r9 + 0x90]
jmp 0x18004c9ac
mov rcx, r8
call fcn.180036d10
inc rbx
cmp rbx, rsi
jl 0x18004c950
movsxd rbx, dword [rsp + 0x50]
mov rsi, qword [rsp + 0x1f8]
test rbx, rbx
jle 0x18004ca37
nop word [rax + rax]
mov r8, qword [rbp + rdi*8 + 0x88]
test r8, r8
je 0x18004ca2f
mov r8, qword [r8 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x18004ca27
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
imul rdx, qword [r10 + 0xc8]
mov r9, qword [rcx]
call qword [r9 + 0x90]
jmp 0x18004ca2f
mov rcx, r8
call fcn.180036d10
inc rdi
cmp rdi, rbx
jl 0x18004c9d0
mov rbx, qword [rsp + 0x248]
mov eax, r14d
mov rcx, qword [rbp + 0xe8]
xor rcx, rsp
call fcn.18013b850
add rsp, 0x200
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret