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

Disassembly:
push rbp
push rsi
push r13
push r14
lea rbp, [rsp - 0xf8]
sub rsp, 0x1f8
mov rax, qword [0x1400e6010]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov r10, rcx
mov dword [rbp + 0x20], r9d
xor r9d, r9d
mov qword [rbp - 0x38], rcx
xor ecx, ecx
mov qword [rbp + 0x28], r8
mov dword [rsp + 0x54], r9d
mov r14d, r9d
mov r11, qword [r10 + 0x48]
mov r13d, r9d
mov qword [rbp - 0x78], r11
mov esi, r9d
mov dword [rbp - 0x20], r9d
mov dword [rbp + 0xc8], ecx
mov byte [rbp + 0xcc], cl
mov dword [rsp + 0x5c], r9d
mov dword [rbp - 0x60], r9d
mov qword [rsp + 0x48], r9
test r8, r8
jne 0x14003654c
lea eax, [rcx + 7]
jmp 0x140037a35
movzx ecx, word [r10 + 0x16]
movzx r8d, byte [r10 + 0xc]
mov qword [rsp + 0x238], rbx
mov qword [rsp + 0x1f0], rdi
mov qword [rsp + 0x1e8], r12
lea ebx, [r8 + rcx]
mov qword [rsp + 0x1e0], r15
cmp ebx, 2
jae 0x140036584
mov edx, r9d
jmp 0x1400365ad
test edx, edx
jne 0x14003658d
mov edx, r9d
jmp 0x1400365a0
cmp edx, ebx
jne 0x14003659e
mov eax, dword [rbp + 0x140]
lea edx, [rax - 2]
add edx, ebx
jmp 0x1400365a6
dec edx
mov eax, dword [rbp + 0x140]
mov ebx, 2
sub ebx, eax
mov eax, edx
mov dword [rsp + 0x78], edx
sub eax, r8d
mov dword [rsp + 0x74], ebx
add eax, ebx
lea r12d, [rbx + 1]
mov dword [rbp - 0x1c], r12d
cmp eax, ecx
jne 0x1400365d3
movzx ecx, byte [r10 + 9]
add rcx, 8
jmp 0x1400365ef
add eax, eax
movsxd rcx, eax
mov rax, qword [r10 + 0x60]
movzx edx, word [rcx + rax]
movzx eax, word [r10 + 0x18]
ror dx, 8
movzx ecx, dx
and rcx, rax
add rcx, qword [r10 + 0x50]
lea r8, [rbp + 0x88]
mov qword [rbp], rcx
movsxd rdi, ebx
mov dword [rsp + 0x20], r9d
mov edx, dword [rcx]
mov rcx, r11
bswap edx
lea r15, [rdi*8]
mov dword [rbp - 0x40], edx
add r8, r15
mov dword [rbp - 0x30], edx
mov qword [rbp + 0x38], r15
call fcn.14002ef80
movsxd rcx, r12d
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x14003788a
lea r12, [rbp - 0x18]
lea r12, [r12 + rdi*4]
mov rdi, qword [rbp - 0x38]
lea r8, [rdi + 0x78]
nop
mov rax, qword [rbp + r15 + 0x88]
lea r12, [r12 - 4]
mov dword [rsp + 0x7c], ebx
lea r15, [r15 - 8]
mov qword [rbp + 0x30], r8
movzx edx, word [rax + 0x16]
movzx ecx, byte [rax + 0xc]
mov eax, ebx
add ecx, r14d
dec ebx
lea r14d, [rdx + 1]
add r14d, ecx
mov dword [rsp + 0x50], r14d
test eax, eax
je 0x14003680d
movzx edx, byte [rdi + 0xc]
test dl, dl
je 0x1400366d3
mov eax, dword [rsp + 0x78]
movzx ecx, word [rdi + 0x1a]
add eax, ebx
cmp eax, ecx
jne 0x1400366d3
mov rdx, qword [rdi + 0x28]
mov rcx, rdi
mov qword [rbp + r15 - 0x70], rdx
mov eax, dword [rdx]
bswap eax
mov dword [rbp - 0x40], eax
mov dword [rbp - 0x30], eax
call qword [r8]
movzx eax, ax
mov dword [r12], eax
lea rax, [rdi + 0x78]
mov qword [rbp + 0x30], rax
mov byte [rdi + 0xc], sil
jmp 0x140036789
mov rax, qword [rdi + 0x60]
mov ecx, dword [rsp + 0x78]
sub ecx, edx
add ecx, ebx
add ecx, ecx
movsxd rcx, ecx
movzx edx, word [rcx + rax]
movzx eax, word [rdi + 0x18]
mov rdi, qword [rdi + 0x50]
ror dx, 8
movzx ecx, dx
and rcx, rax
add rdi, rcx
mov rcx, qword [rbp - 0x38]
mov rdx, rdi
mov qword [rbp + r15 - 0x70], rdi
mov eax, dword [rdi]
bswap eax
mov dword [rbp - 0x40], eax
mov dword [rbp - 0x30], eax
call qword [r8]
mov rdx, qword [rbp - 0x78]
movzx r14d, ax
mov dword [r12], r14d
test byte [rdx + 0x26], 0xc
je 0x140036764
mov rax, qword [rbp - 0x38]
mov ecx, edi
sub ecx, dword [rax + 0x50]
lea eax, [r14 + rcx]
cmp eax, dword [rdx + 0x34]
jg 0x1400367c3
movsxd rcx, ecx
mov r8d, r14d
add rcx, qword [rbp + 0x28]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp + 0x28]
sub rax, qword [rcx + 0x50]
add rax, rdi
mov qword [rbp + r15 - 0x70], rax
mov rdi, qword [rbp - 0x38]
lea r9, [rsp + 0x40]
mov edx, dword [rsp + 0x78]
mov r8d, r14d
mov rcx, rdi
movzx eax, byte [rdi + 0xc]
sub edx, eax
add edx, ebx
call fcn.140035590
mov r14d, dword [rsp + 0x50]
mov edx, dword [rbp - 0x40]
lea r8, [rbp + 0x88]
mov rcx, qword [rbp - 0x78]
xor r9d, r9d
movsxd rax, ebx
mov dword [rsp + 0x20], esi
lea r8, [r8 + rax*8]
call fcn.14002ef80
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x14003788a
mov r8, qword [rbp + 0x30]
jmp 0x140036650
lea rax, [0x1400d7054]
mov r15d, 0xb
mov ecx, r15d
mov qword [rsp + 0x20], rax
mov r9d, 0x10f06
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140018f60
movsxd r8, dword [rsp + 0x7c]
lea rcx, [rbp + 0x88]
shl r8, 3
xor edx, edx
call sub.VCRUNTIME140.dll_memset
jmp 0x1400378a7
mov rdi, qword [rbp - 0x78]
lea ebx, [r14 + 3]
and ebx, 0xfffffffc
mov eax, dword [rdi + 0x30]
lea ecx, [rbx + rbx*4]
lea ecx, [rax + rcx*2]
movsxd rcx, ecx
call fcn.140016080
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x50], rax
test rax, rax
jne 0x140036845
mov rsi, qword [rsp + 0x68]
lea r15d, [rax + 7]
jmp 0x1400378b1
mov rcx, qword [rbp + 0x88]
xor r11d, r11d
movsxd rax, ebx
mov rbx, qword [rsp + 0x48]
mov qword [rbp - 0x58], rcx
movzx r8d, byte [rcx + 8]
shl r8w, 2
lea r9, [rbx + rax*8]
mov word [rsp + 0x58], r8w
lea rax, [r9 + rax*2]
mov qword [rbp - 0x48], r9
mov qword [rbp - 0x80], rax
movzx eax, byte [rcx + 3]
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x64], r11d
cmp qword [rsp + 0x68], rsi
jle 0x140036b79
mov r12d, r11d
nop word [rax + rax]
mov r15, qword [rbp + r12*8 + 0x88]
mov rax, qword [rcx + 0x50]
mov rdi, qword [r15 + 0x50]
movzx ebx, word [r15 + 0x12]
movzx ecx, byte [rax]
add rbx, rdi
movzx r14d, word [r15 + 0x18]
cmp byte [rdi], cl
jne 0x140036b46
movzx eax, byte [r15 + 0xc]
xor edx, edx
movzx r8d, word [r15 + 0x16]
add r8, rax
movsxd rax, esi
add r8, r8
lea rcx, [r9 + rax*2]
call sub.VCRUNTIME140.dll_memset
cmp byte [r15 + 0xc], 0
jbe 0x140036964
movzx eax, word [r15 + 0x1a]
xor r8d, r8d
mov r9, qword [rsp + 0x48]
cmp r8w, ax
jae 0x14003692c
mov edx, eax
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 dword [rbp - 0x60], esi
mov qword [r9 + rax*8], rcx
sub rdx, 1
jne 0x140036902
mov dword [rsp + 0x5c], esi
cmp byte [r15 + 0xc], r8b
jbe 0x140036964
lea rdx, [r15 + 0x28]
nop word [rax + rax]
mov rax, qword [rdx]
lea rdx, [rdx + 8]
movsxd rcx, esi
inc r8d
inc esi
mov dword [rbp - 0x60], esi
mov qword [r9 + rcx*8], rax
movzx eax, byte [r15 + 0xc]
cmp r8d, eax
jl 0x140036940
mov dword [rsp + 0x5c], esi
movzx ecx, word [r15 + 0x12]
movzx edx, word [r15 + 0x16]
add rcx, rdi
lea r8, [rcx + rdx*2]
cmp rbx, r8
jae 0x1400369a9
mov rdx, qword [rsp + 0x48]
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 dword [rbp - 0x60], esi
mov qword [rdx + rax*8], rcx
cmp rbx, r8
jb 0x140036980
mov dword [rsp + 0x5c], esi
mov edx, dword [rsp + 0x64]
mov dword [rbp + r12*4 + 0x40], esi
cmp edx, dword [rsp + 0x74]
jge 0x140036a74
cmp byte [rsp + 0x70], 0
jne 0x140036a74
movzx ecx, word [rbp + r12*4 - 0x18]
mov rax, qword [rbp - 0x48]
mov r8d, ecx
mov rdx, qword [rbp + r12*8 - 0x70]
movsxd rbx, r13d
add r13d, ecx
add rbx, qword [rbp - 0x80]
movsxd rdi, esi
lea r14, [rax + rdi*2]
mov word [r14], cx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
movzx r8d, word [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
lea rax, [rbx + r8]
mov qword [rcx + rdi*8], rax
movzx eax, word [r14]
sub ax, r8w
mov word [r14], ax
cmp byte [r15 + 8], 0
jne 0x140036a38
mov rax, qword [r15 + 0x50]
inc esi
mov rcx, qword [rcx + rdi*8]
mov edx, dword [rsp + 0x64]
mov dword [rsp + 0x5c], esi
mov eax, dword [rax + 8]
mov dword [rcx], eax
mov dword [rbp - 0x60], esi
jmp 0x140036a7a
cmp ax, 4
jae 0x140036a65
mov rcx, qword [rbp - 0x80]
movsxd rax, r13d
add rcx, rax
nop dword [rax + rax]
mov byte [rcx], 0
lea rcx, [rcx + 1]
inc word [r14]
inc r13d
cmp word [r14], 4
jb 0x140036a50
mov edx, dword [rsp + 0x64]
inc esi
mov dword [rsp + 0x5c], esi
mov dword [rbp - 0x60], esi
jmp 0x140036a7a
movzx r8d, word [rsp + 0x58]
inc edx
inc r12
mov dword [rsp + 0x64], edx
cmp r12, qword [rsp + 0x68]
jge 0x140036a9a
mov rcx, qword [rbp + 0x88]
mov r9, qword [rbp - 0x48]
jmp 0x1400368a0
mov r13, qword [rbp - 0x78]
lea rdx, [rbp + 0x40]
movzx ecx, r8w
add r13, 0x34
mov dword [rsp + 0x64], ecx
xor r12d, r12d
mov qword [rbp - 0x80], r13
mov r14d, dword [r13]
mov r13, qword [rsp + 0x68]
add r14d, 0xfffffff4
add r14d, ecx
mov r8, r13
shl r8, 2
lea rcx, [rbp + 8]
mov dword [rsp + 0x60], r14d
call sub.VCRUNTIME140.dll_memcpy
xor r11d, r11d
nop dword [rax]
mov rbx, qword [rbp + r12*8 + 0x88]
mov edi, r14d
mov r15d, r11d
movzx eax, word [rbx + 0x14]
sub edi, eax
cmp byte [rbx + 0xc], 0
mov dword [rbp + r12*4 - 0x18], edi
jbe 0x140036b31
lea r14, [rbx + 0x28]
mov rdx, qword [r14]
mov rcx, rbx
call qword [rbx + 0x78]
movzx eax, ax
inc r15d
add eax, 2
lea r14, [r14 + 8]
add edi, eax
movzx eax, byte [rbx + 0xc]
cmp r15d, eax
jl 0x140036b03
mov r14d, dword [rsp + 0x60]
xor r11d, r11d
mov dword [rbp + r12*4 - 0x18], edi
inc r12
cmp r12, r13
jl 0x140036ae0
mov rcx, qword [rbp + 0x88]
mov r9, qword [rbp - 0x48]
jmp 0x140036b99
lea rax, [0x1400d7054]
mov r15d, 0xb
mov ecx, r15d
mov qword [rsp + 0x20], rax
mov r9d, 0x10f47
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140018f60
jmp 0x1400378a7
mov r14d, dword [rdi + 0x34]
lea rax, [rdi + 0x34]
movzx edx, r8w
add r14d, 0xfffffff4
add r14d, edx
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x64], edx
mov eax, dword [rbp - 0x1c]
lea r8, [rbp + 8]
sub r8, 4
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x7c], r11d
mov edx, eax
mov qword [rbp - 0x70], r8
test eax, eax
jle 0x140036e1d
mov r12d, 1
mov r13, r11
mov dword [rsp + 0x50], r12d
nop dword [rax]
mov edi, dword [rbp + r13 - 0x18]
cmp edi, r14d
jle 0x140036ca2
lea r14, [rbp - 0x14]
cmp r12d, edx
jl 0x140036c08
lea eax, [r12 + 1]
mov dword [rsp + 0x74], eax
cmp r13, 0xc
jg 0x140036d81
mov dword [r14 + r13], r11d
mov edi, dword [rbp + r13 - 0x18]
mov dword [rbp + r13 + 0xc], esi
movsxd rbx, dword [rbp + r13 + 8]
movzx eax, word [r9 + rbx*2 - 2]
lea r12d, [rbx - 1]
test ax, ax
jne 0x140036c36
mov edx, r12d
lea rcx, [rbp - 0x60]
call fcn.1400359e0
mov esi, dword [rbp - 0x60]
xor r11d, r11d
mov r9, qword [rbp - 0x48]
mov dword [rsp + 0x5c], esi
movzx eax, ax
add eax, 2
sub edi, eax
cmp byte [rsp + 0x70], 0
mov dword [rbp + r13 - 0x18], edi
jne 0x140036c79
cmp ebx, esi
jge 0x140036c76
movzx eax, word [r9 + rbx*2]
test ax, ax
jne 0x140036c6e
mov edx, ebx
lea rcx, [rbp - 0x60]
call fcn.1400359e0
mov esi, dword [rbp - 0x60]
mov r9, qword [rbp - 0x48]
mov dword [rsp + 0x5c], esi
movzx eax, ax
add eax, 2
jmp 0x140036c79
mov eax, r11d
add dword [r14 + r13], eax
lea r15, [rbp + 8]
mov edx, dword [rsp + 0x74]
add r15, r13
mov r11d, 0
mov dword [r15], r12d
mov r12d, dword [rsp + 0x50]
cmp edi, dword [rsp + 0x60]
jg 0x140036be2
jmp 0x140036ca9
lea r15, [rbp + 8]
add r15, r13
movsxd rbx, dword [r15]
cmp ebx, esi
jge 0x140036d2e
lea r14, [rbx + rbx]
movzx eax, word [r14 + r9]
test ax, ax
jne 0x140036cd4
mov edx, ebx
lea rcx, [rbp - 0x60]
call fcn.1400359e0
mov esi, dword [rbp - 0x60]
mov r9, qword [rbp - 0x48]
mov dword [rsp + 0x5c], esi
movzx eax, ax
add eax, 2
add edi, eax
cmp edi, dword [rsp + 0x60]
jg 0x140036d60
inc ebx
mov dword [rbp + r13 - 0x18], edi
add r14, 2
mov dword [r15], ebx
cmp byte [rsp + 0x70], 0
jne 0x140036d25
cmp ebx, esi
jge 0x140036d23
movzx eax, word [r14 + r9]
test ax, ax
jne 0x140036d1b
mov edx, ebx
lea rcx, [rbp - 0x60]
call fcn.1400359e0
mov esi, dword [rbp - 0x60]
mov r9, qword [rbp - 0x48]
mov dword [rsp + 0x5c], esi
movzx eax, ax
add eax, 2
jmp 0x140036d25
xor eax, eax
sub dword [rbp + r13 - 0x14], eax
cmp ebx, esi
jl 0x140036cb4
mov edx, r12d
mov dword [rsp + 0x74], edx
mov eax, dword [rsp + 0x7c]
inc r12d
inc eax
mov dword [rsp + 0x50], r12d
add r13, 4
mov dword [rsp + 0x7c], eax
xor r11d, r11d
cmp eax, edx
jge 0x140036e03
mov r14d, dword [rsp + 0x60]
jmp 0x140036bd0
cmp ebx, esi
jge 0x140036d2e
cmp dword [rsp + 0x7c], 0
jle 0x140036d75
mov rax, qword [rbp - 0x70]
mov eax, dword [rax + r13]
jmp 0x140036d77
xor eax, eax
cmp ebx, eax
jle 0x140036dc2
mov edx, dword [rsp + 0x74]
jmp 0x140036d35
lea rax, [0x1400d7054]
mov r15d, 0xb
mov ecx, r15d
mov qword [rsp + 0x20], rax
mov r9d, 0x10fb4
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140018f60
mov rax, qword [rbp - 0x50]
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
jmp 0x1400378b1
lea rax, [0x1400d7054]
mov r15d, 0xb
mov ecx, r15d
mov qword [rsp + 0x20], rax
mov r9d, 0x10fd5
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140018f60
mov rax, qword [rbp - 0x50]
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
jmp 0x1400378b1
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp + 0x88]
mov r8, qword [rbp - 0x70]
mov qword [rsp + 0x48], rdx
mov edx, dword [rsp + 0x74]
jmp 0x140036e21
mov qword [rbp - 0x70], r8
lea eax, [rdx - 1]
mov dword [rsp + 0x50], eax
movsxd r12, eax
test eax, eax
jle 0x140036f61
nop dword [rax]
nop word [rax + rax]
mov r13d, dword [r8 + r12*4]
mov esi, dword [rbp + r12*4 - 0x18]
mov r15d, dword [rbp + r12*4 - 0x1c]
lea ebx, [r13 - 1]
mov edx, ebx
sub edx, dword [rsp + 0x70]
inc edx
movsxd rax, edx
lea r14, [rax + rax]
cmp word [r14 + r9], 0
jne 0x140036e76
lea rcx, [rbp - 0x60]
call fcn.1400359e0
mov r9, qword [rbp - 0x48]
movsxd rax, ebx
lea rdi, [rax + rax]
nop dword [rax]
cmp word [rdi + r9], 0
jne 0x140036e97
mov edx, ebx
lea rcx, [rbp - 0x60]
call fcn.1400359e0
mov r9, qword [rbp - 0x48]
test esi, esi
je 0x140036ed5
cmp dword [rbp + 0x140], 0
jne 0x140036f0c
movzx eax, word [rdi + r9]
mov edx, r15d
mov ecx, dword [rsp + 0x74]
sub edx, eax
dec ecx
mov eax, 2
cmp dword [rsp + 0x50], ecx
mov ecx, 0
cmove eax, ecx
movzx ecx, word [r14 + r9]
add ecx, 2
sub edx, eax
add ecx, esi
cmp ecx, edx
jg 0x140036f0c
movzx eax, word [r14 + r9]
mov ecx, 0xfffffffe
mov r8, qword [rbp - 0x70]
add eax, 2
add esi, eax
sub r14, 2
movzx eax, word [rdi + r9]
mov r13d, ebx
sub ecx, eax
sub rdi, 2
add r15d, ecx
mov dword [r8 + r12*4], ebx
sub ebx, 1
jns 0x140036e80
jmp 0x140036f10
mov r8, qword [rbp - 0x70]
xor r11d, r11d
mov dword [rbp + r12*4 - 0x18], esi
mov dword [rbp + r12*4 - 0x1c], r15d
cmp r12, 1
jbe 0x140036f2a
mov eax, dword [r8 + r12*4 - 4]
jmp 0x140036f2d
mov eax, r11d
cmp r13d, eax
jle 0x140036fcf
dec dword [rsp + 0x50]
dec r12
test r12, r12
jg 0x140036e40
mov rax, qword [rbp - 0x50]
mov esi, dword [rbp - 0x60]
mov rcx, qword [rbp + 0x88]
mov edx, dword [rsp + 0x74]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x5c], esi
mov rax, qword [rcx + 0x50]
movsxd r14, edx
movzx r12d, byte [rax]
mov dword [rsp + 0x50], r12d
test edx, edx
jle 0x14003710d
mov rbx, r11
mov r13d, 1
cmp rbx, qword [rsp + 0x68]
jge 0x140037067
mov rax, qword [rbp + rbx*8 + 0x88]
mov qword [rbp + rbx*8 + 0xa0], rax
mov qword [rbp + rbx*8 + 0x88], r11
mov qword [rbp - 0x70], rax
mov rcx, qword [rax + 0x70]
test byte [rcx + 0x34], 4
mov rdx, qword [rcx + 0x28]
je 0x140037024
mov eax, dword [rcx + 0x30]
cmp dword [rdx + 0x1c], eax
jb 0x140037024
cmp dword [rdx + 0x80], 0
je 0x140037010
call fcn.1400269a0
jmp 0x14003704b
lea rax, [0x1400d7054]
mov r15d, 0xb
mov ecx, r15d
mov qword [rsp + 0x20], rax
mov r9d, 0x10fff
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140018f60
mov rax, qword [rbp - 0x50]
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
jmp 0x1400378b1
inc dword [rsp + 0x54]
mov eax, r11d
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], eax
jmp 0x140037101
mov r15d, dword [rdx + 0x2c]
test r15d, r15d
jne 0x14003735f
mov eax, dword [rdx + 0xbc]
cmp dword [rdx + 0xb8], eax
jbe 0x140037046
call fcn.140028960
jmp 0x14003704b
call fcn.140028850
inc dword [rsp + 0x54]
mov r15d, eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x1400378a7
jmp 0x1400370fe
mov r9d, dword [rbp - 0x40]
lea r8, [rbp - 0x30]
cmp dword [rbp + 0x140], 0
lea rdx, [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
cmovne r9d, r13d
mov byte [rsp + 0x20], 0
call fcn.140033bf0
mov dword [rsp + 0x44], eax
mov r15d, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x1400378a7
mov rdi, qword [rbp - 0x70]
mov edx, r12d
mov rcx, rdi
call fcn.14002edc0
mov rcx, qword [rbp - 0x78]
inc dword [rsp + 0x54]
mov qword [rbp + rbx*8 + 0xa0], rdi
mov dword [rbp + rbx*4 + 0x40], esi
cmp byte [rcx + 0x21], r15b
je 0x1400370f8
mov edx, dword [rdi + 4]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8b, 5
mov rax, qword [rbp - 0x38]
mov r9d, dword [rax + 4]
call fcn.14002dab0
mov r15d, dword [rsp + 0x40]
mov dword [rsp + 0x44], r15d
test r15d, r15d
jne 0x1400378a7
mov edx, dword [rbp - 0x30]
mov dword [rbp - 0x40], edx
xor r11d, r11d
inc rbx
cmp rbx, r14
jl 0x140036f82
movsxd rbx, dword [rsp + 0x54]
mov r14, rbx
test ebx, ebx
jle 0x140037285
mov rdx, r11
mov rax, qword [rbp + rdx*8 + 0xa0]
mov r8d, dword [rax + 4]
mov rax, qword [rax + 0x70]
mov dword [rbp + rdx*4 + 0x70], r8d
mov dword [rbp + rdx*4 + 0x58], r8d
movzx ecx, word [rax + 0x34]
mov rax, r11
mov word [rbp + rdx*2 - 0x30], cx
test rdx, rdx
jle 0x140037163
nop dword [rax + rax]
cmp dword [rbp + rax*4 + 0x70], r8d
je 0x140037368
inc rax
cmp rax, rdx
jl 0x140037150
inc rdx
cmp rdx, r14
jl 0x140037120
mov eax, dword [rsp + 0x64]
mov rdi, r11
mov r15d, dword [rsp + 0x60]
mov r12d, 1
mov r13, qword [rbp - 0x80]
mov rsi, qword [rbp - 0x78]
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x60], r15d
mov qword [rbp - 0x70], r11
nop dword [rax]
nop word [rax + rax]
mov ecx, r11d
mov rbx, r11
mov r10d, r12d
mov rax, r12
cmp r12, r14
jge 0x1400371ff
mov edi, dword [rsp + 0x64]
mov rdx, r11
nop dword [rax + rax]
mov r8d, dword [rbp + rdx + 0x58]
mov r11d, ecx
lea rcx, [rax*4]
cmp dword [rbp + rcx + 0x58], r8d
jae 0x1400371dd
mov rbx, rax
mov rdx, rcx
mov ecx, r10d
cmovae ecx, r11d
inc r10d
inc rax
cmp rax, r14
jl 0x1400371c0
mov dword [rsp + 0x64], edi
xor r11d, r11d
mov rdi, qword [rbp - 0x70]
mov dword [rsp + 0x60], r15d
mov r15d, dword [rbp + rbx*4 + 0x58]
mov dword [rbp + rbx*4 + 0x58], 0xffffffff
cmp rbx, rdi
je 0x140037259
jle 0x140037230
mov edx, dword [rsi + 0x3c]
mov rax, qword [rbp + rbx*8 + 0xa0]
inc edx
add edx, ecx
mov rcx, qword [rax + 0x70]
mov word [rcx + 0x34], r11w
call fcn.140021f50
mov rax, qword [rbp + rdi*8 + 0xa0]
mov edx, r15d
mov rcx, qword [rax + 0x70]
movzx eax, word [rbp + rbx*2 - 0x30]
mov word [rcx + 0x34], ax
call fcn.140021f50
mov rax, qword [rbp + rdi*8 + 0xa0]
mov dword [rax + 4], r15d
mov r15d, dword [rsp + 0x60]
inc rdi
mov qword [rbp - 0x70], rdi
mov r11d, 0
cmp rdi, r14
jl 0x1400371a0
mov esi, dword [rsp + 0x5c]
mov r12d, dword [rsp + 0x50]
mov ebx, dword [rsp + 0x54]
mov qword [rbp - 0x80], r13
lea r13, [r14 - 1]
mov rax, qword [rbp + r13*8 + 0xa0]
mov ecx, dword [rax + 4]
mov rax, qword [rbp]
bswap ecx
mov dword [rax], ecx
test r12b, 8
jne 0x1400372d7
cmp dword [rbp - 0x1c], ebx
je 0x1400372d7
mov rcx, qword [rbp + 0x38]
lea rdx, [rbp + 0x88]
lea rax, [rbp + 0xa0]
cmovge rax, rdx
mov rax, qword [rax + rcx]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + r13*8 + 0xa0]
mov rcx, qword [rax + 0x50]
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov rax, qword [rbp - 0x78]
xor ecx, ecx
cmp byte [rax + 0x21], cl
je 0x140037517
mov rbx, qword [rbp + 0xa0]
mov edi, ecx
mov r10, qword [rbp - 0x80]
movzx r9d, word [rbx + 0x16]
movzx eax, byte [rbx + 0xc]
mov r10d, dword [r10]
add r9d, eax
mov r13, qword [rbx + 0x50]
mov dword [rsp + 0x7c], r9d
mov dword [rsp + 0x50], r10d
test esi, esi
jle 0x140037513
mov r11, qword [rsp + 0x48]
lea rdx, [rbp + 0xa0]
lea r8, [rbp + 8]
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x30], r8
mov r12d, ecx
mov eax, ecx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x80], rcx
nop dword [rax]
mov r15, qword [rcx + r11]
cmp edi, r9d
jne 0x1400373d1
inc r12
cmp r12, r14
jge 0x14003739b
mov rdx, qword [rbp + r12*8 + 0xa0]
jmp 0x1400373a3
inc dword [rsp + 0x54]
jmp 0x1400378a7
lea rax, [0x1400d7054]
mov r15d, 0xb
mov ecx, r15d
mov qword [rsp + 0x20], rax
mov r9d, 0x11049
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140018f60
jmp 0x1400378a7
mov rdx, qword [rbp + r12*8 + 0x88]
movzx eax, word [rdx + 0x16]
xor ecx, ecx
cmp byte [rsp + 0x70], cl
mov r13, qword [rdx + 0x50]
sete cl
add ecx, eax
movzx eax, byte [rdx + 0xc]
mov rdx, qword [rbp - 0x40]
add r9d, eax
mov rax, qword [rbp - 0x70]
add r9d, ecx
mov rcx, qword [rbp - 0x80]
mov dword [rsp + 0x7c], r9d
cmp edi, dword [r8]
jne 0x1400373f5
mov rbx, qword [rdx + 8]
add rdx, 8
add r8, 4
mov qword [rbp - 0x40], rdx
cmp byte [rsp + 0x70], 0
mov qword [rbp - 0x30], r8
je 0x1400374ee
cmp r12, r14
jge 0x140037418
mov eax, dword [rbp + r12*4 + 0x70]
cmp dword [rbx + 4], eax
jne 0x140037418
cmp r15, r13
jb 0x140037418
movsxd rax, r10d
add rax, r13
cmp r15, rax
jb 0x1400374ea
cmp word [rsp + 0x58], 0
jne 0x140037447
mov edx, dword [r15]
lea rax, [rsp + 0x40]
mov r9d, dword [rbx + 4]
mov r8b, 5
mov rcx, qword [rbp - 0x78]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.14002dab0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov rax, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x48]
movzx eax, word [rax + rcx]
test ax, ax
jne 0x14003746f
mov edx, edi
lea rcx, [rbp - 0x60]
call fcn.1400359e0
mov rsi, qword [rbp - 0x50]
mov qword [rsp + 0x48], rsi
mov esi, dword [rbp - 0x60]
cmp ax, word [rbx + 0x10]
jbe 0x1400374ca
cmp dword [rsp + 0x44], 0
jne 0x1400378a2
lea r8, [rbp + 0x58]
mov rdx, r15
mov rcx, rbx
call qword [rbx + 0x80]
movzx eax, word [rbp + 0x6c]
cmp eax, dword [rbp + 0x68]
jae 0x1400374d8
movzx eax, word [rbp + 0x6e]
mov r8b, 3
mov r9d, dword [rbx + 4]
mov rcx, qword [rbx + 0x48]
mov edx, dword [rax + r15 - 4]
lea rax, [rsp + 0x40]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.14002dab0
mov r15d, dword [rsp + 0x40]
mov dword [rsp + 0x44], r15d
jmp 0x1400374cf
mov r15d, dword [rsp + 0x44]
test r15d, r15d
jne 0x1400378a7
mov r11, qword [rsp + 0x48]
mov r10d, dword [rsp + 0x50]
mov r8, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x40]
add rcx, 8
mov r9d, dword [rsp + 0x7c]
add rax, 2
inc edi
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x70], rax
cmp edi, esi
jl 0x140037340
xor ecx, ecx
lea r13, [r14 - 1]
test r13, r13
jle 0x140037643
mov r12, rcx
movsxd rdx, dword [rbp + r12*4 + 8]
mov rax, qword [rbp - 0x48]
mov r15, qword [rbp + r12*8 + 0xa0]
mov rcx, qword [rsp + 0x48]
movsxd rdi, dword [rbp - 0x20]
movzx eax, word [rax + rdx*2]
add rdi, qword [rbp + 0x28]
mov r9d, eax
add r9d, dword [rsp + 0x64]
cmp byte [r15 + 8], 0
mov rbx, qword [rcx + rdx*8]
jne 0x140037566
mov rcx, qword [r15 + 0x50]
mov eax, dword [rbx]
mov dword [rcx + 8], eax
jmp 0x1400375f1
cmp byte [rsp + 0x70], 0
je 0x1400375d7
mov rdx, qword [rcx + rdx*8 - 8]
lea r8, [rbp + 0x70]
mov rcx, r15
call qword [r15 + 0x80]
mov rdx, qword [rbp + 0x70]
lea rcx, [rdi + 4]
mov rbx, rdi
cmp rdx, 0x7f
ja 0x1400375a3
and dl, 0x7f
mov eax, 1
mov byte [rcx], dl
xor edi, edi
lea r9d, [rax + 4]
jmp 0x1400375f1
cmp rdx, 0x3fff
ja 0x1400375ca
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 0x1400375f1
call fcn.14001a6d0
xor edi, edi
lea r9d, [rax + 4]
jmp 0x1400375f1
sub rbx, 4
cmp eax, 4
jne 0x1400375f1
mov rax, qword [rbp + 0x30]
mov rdx, rbx
mov rcx, qword [rbp - 0x38]
call qword [rax]
movzx r9d, ax
mov rcx, qword [rbp - 0x38]
lea rax, [rsp + 0x40]
add dword [rbp - 0x20], r9d
mov r8, rbx
mov ebx, dword [rsp + 0x78]
mov edx, ebx
mov qword [rsp + 0x30], rax
mov eax, dword [r15 + 4]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call fcn.1400356d0
mov r15d, dword [rsp + 0x40]
mov dword [rsp + 0x44], r15d
test r15d, r15d
jne 0x1400378a7
inc ebx
inc r12
mov dword [rsp + 0x78], ebx
cmp r12, r13
jl 0x140037523
mov r10d, dword [rsp + 0x54]
mov r9d, 1
sub r9d, r10d
mov qword [rbp], r9
cmp r9d, r10d
jge 0x14003776b
mov r12d, dword [rbp + 8]
xor r13d, r13d
nop word [rax + rax]
mov eax, r9d
lea r15, [rbp + 0xc8]
cdq
mov r8d, eax
xor r8d, edx
sub r8d, edx
movsxd rcx, r8d
add r15, rcx
cmp byte [r15], 0
jne 0x140037752
test r9d, r9d
jns 0x1400376a7
mov eax, dword [rbp + rcx*4 + 4]
cmp dword [rbp + rcx*4 + 0x3c], eax
jl 0x140037752
mov rax, rcx
test r8d, r8d
jne 0x1400376c6
xor eax, eax
lea rbx, [rcx*4]
mov esi, eax
mov r8d, eax
xor r13d, r13d
mov r9d, r12d
jmp 0x140037703
lea rax, [rax*4 - 4]
mov edx, dword [rsp + 0x70]
cmp r8d, dword [rbp - 0x1c]
jge 0x1400376e5
test dl, dl
mov esi, r13d
sete sil
add esi, dword [rbp + rax + 0x40]
test dl, dl
lea rbx, [rcx*4]
mov r9d, dword [rbp + rbx + 8]
mov r8d, r13d
sete r8b
add r8d, dword [rbp + rax + 8]
sub r9d, r8d
lea rax, [rbp - 0x60]
mov edx, esi
lea rdi, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
lea rdi, [rdi + rcx*8]
mov rcx, qword [rdi]
call fcn.140035df0
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x1400377dd
mov rax, qword [rdi]
movzx ecx, word [rsp + 0x60]
sub cx, word [rbp + rbx - 0x18]
mov esi, dword [rbp - 0x60]
mov r9, qword [rbp]
mov r10d, dword [rsp + 0x54]
mov word [rax + 0x14], cx
mov byte [r15], 1
inc r9d
mov qword [rbp], r9
cmp r9d, r10d
jl 0x140037670
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x48], rax
cmp dword [rbp + 0x20], 0
je 0x1400377f5
mov rbx, qword [rbp - 0x38]
cmp word [rbx + 0x16], 0
jne 0x1400377f5
mov rcx, qword [rbp + 0xa0]
movzx eax, byte [rbx + 9]
cmp ax, word [rcx + 0x14]
ja 0x1400377f5
mov edx, 0xffffffff
call fcn.14002e240
mov rcx, qword [rbp + 0xa0]
lea r8, [rsp + 0x40]
mov rdx, rbx
mov dword [rsp + 0x40], eax
call fcn.1400363f0
mov r15d, dword [rsp + 0x40]
test r15d, r15d
jne 0x14003784f
mov rcx, qword [rbp + 0xa0]
mov rdx, rcx
mov r8d, dword [rcx + 4]
mov rcx, qword [rcx + 0x48]
call fcn.1400348e0
mov r15d, eax
jmp 0x14003784f
mov rax, qword [rbp - 0x50]
mov r15d, dword [rsp + 0x44]
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
jmp 0x1400378b1
mov rcx, qword [rbp - 0x78]
cmp byte [rcx + 0x21], 0
je 0x14003784a
cmp word [rsp + 0x58], 0
jne 0x14003784a
test r14, r14
jle 0x14003784a
xor ebx, ebx
nop
mov r9, qword [rbp + rbx*8 + 0xa0]
mov r8b, 5
mov rax, qword [r9 + 0x50]
mov r9d, dword [r9 + 4]
mov edx, dword [rax + 8]
lea rax, [rsp + 0x40]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.14002dab0
mov rcx, qword [rbp - 0x78]
inc rbx
cmp rbx, r14
jl 0x140037810
mov r15d, dword [rsp + 0x40]
jmp 0x14003784f
mov r15d, dword [rsp + 0x44]
mov rsi, qword [rsp + 0x68]
cmp r14, rsi
jge 0x1400378ac
nop dword [rax]
mov rcx, qword [rbp + r14*8 + 0x88]
test r15d, r15d
jne 0x140037880
mov r8d, dword [rcx + 4]
mov rdx, rcx
mov rcx, qword [rcx + 0x48]
call fcn.1400348e0
mov r15d, eax
inc r14
cmp r14, rsi
jl 0x140037860
jmp 0x1400378ac
lea eax, [rbx + 1]
xor edx, edx
movsxd r8, eax
lea rcx, [rbp + 0x88]
shl r8, 3
call sub.VCRUNTIME140.dll_memset
mov r15d, dword [rsp + 0x44]
mov rsi, qword [rsp + 0x68]
mov rax, qword [rsp + 0x48]
mov r12, qword [rsp + 0x1e8]
test rax, rax
je 0x14003791d
cmp dword [0x1400e60a0], 0
je 0x140037914
mov rcx, qword [0x1400e8c28]
test rcx, rcx
je 0x1400378d9
call qword [0x1400e6130]
mov rcx, qword [rsp + 0x48]
call qword [0x1400e60e8]
mov rcx, qword [rsp + 0x48]
dec qword [0x1400e89b8]
movsxd rdx, eax
sub qword [0x1400e8970], rdx
call qword [0x1400e60d8]
mov rcx, qword [0x1400e8c28]
test rcx, rcx
je 0x14003791d
call qword [0x1400e6140]
jmp 0x14003791d
mov rcx, rax
call qword [0x1400e60d8]
xor edi, edi
test rsi, rsi
jle 0x14003799a
mov ebx, edi
nop word [rax + rax]
mov r8, qword [rbp + rbx*8 + 0x88]
test r8, r8
je 0x140037992
mov r8, qword [r8 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x14003798a
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 0x140037992
mov rcx, r8
call fcn.140021de0
inc rbx
cmp rbx, rsi
jl 0x140037930
movsxd rbx, dword [rsp + 0x54]
test rbx, rbx
jle 0x140037a1a
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbp + rdi*8 + 0xa0]
test r8, r8
je 0x140037a12
mov r8, qword [r8 + 0x70]
test byte [r8 + 0x34], 0x20
je 0x140037a0a
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 0x140037a12
mov rcx, r8
call fcn.140021de0
inc rdi
cmp rdi, rbx
jl 0x1400379b0
mov rdi, qword [rsp + 0x1f0]
mov eax, r15d
mov r15, qword [rsp + 0x1e0]
mov rbx, qword [rsp + 0x238]
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.1400c69d0
add rsp, 0x1f8
pop r14
pop r13
pop rsi
pop rbp
ret