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

Disassembly:
push rbp
push rsi
push r14
push r15
lea rbp, [rsp - 0xf8]
sub rsp, 0x1f8
mov rax, qword [0x1401750a0]
xor rax, rsp
mov qword [rbp + 0xd8], rax
xor r15d, r15d
mov dword [rbp - 0x20], r9d
mov r9, rcx
mov qword [rbp - 0x38], rcx
xor ecx, ecx
mov qword [rbp - 0x18], r8
mov dword [rsp + 0x40], r15d
mov r14d, r15d
mov dword [rsp + 0x68], r15d
mov esi, r15d
mov r10, qword [r9 + 0x48]
mov qword [rbp - 0x68], r10
mov dword [rbp - 0x30], r15d
mov dword [rbp + 0xc0], ecx
mov byte [rbp + 0xc4], cl
mov dword [rsp + 0x78], r15d
mov dword [rbp - 0x60], r15d
mov qword [rsp + 0x50], r15
test r8, r8
jne 0x14004f6ae
lea eax, [rcx + 7]
jmp 0x140050a8e
movzx ecx, word [r9 + 0x12]
movzx r8d, byte [r9 + 1]
mov qword [rsp + 0x238], rbx
mov qword [rsp + 0x1f0], rdi
mov qword [rsp + 0x1e8], r12
lea ebx, [r8 + rcx]
mov qword [rsp + 0x1e0], r13
cmp ebx, 2
jae 0x14004f6e6
mov edx, r15d
jmp 0x14004f70f
test edx, edx
jne 0x14004f6ef
mov edx, r15d
jmp 0x14004f702
cmp edx, ebx
jne 0x14004f700
mov eax, dword [rbp + 0x140]
lea edx, [rax - 2]
add edx, ebx
jmp 0x14004f708
dec edx
mov eax, dword [rbp + 0x140]
mov ebx, 2
sub ebx, eax
mov eax, edx
mov dword [rbp - 0x80], edx
sub eax, r8d
mov dword [rbp - 0x78], ebx
add eax, ebx
lea r11d, [rbx + 1]
mov dword [rsp + 0x64], r11d
cmp eax, ecx
jne 0x14004f734
movzx ecx, byte [r9 + 5]
add rcx, 8
jmp 0x14004f750
add eax, eax
movsxd rcx, eax
mov rax, qword [r9 + 0x60]
movzx edx, word [rcx + rax]
movzx eax, word [r9 + 0x14]
ror dx, 8
movzx ecx, dx
and rcx, rax
add rcx, qword [r9 + 0x50]
lea r13, [rbp + 8]
mov qword [rbp - 0x10], rcx
mov edi, dword [rcx]
movsxd rcx, ebx
bswap edi
mov dword [rbp - 0x70], edi
mov dword [rbp - 0x40], edi
lea r13, [r13 + rcx*4]
mov qword [rbp], rcx
lea r12, [rcx*8]
lea rcx, [0x140147114]
mov dword [rsp + 0x70], ebx
cmp edi, dword [r10 + 0x3c]
jbe 0x14004f7b8
mov qword [rsp + 0x20], rcx
lea r8, str.database_corruption
mov ecx, VariantTimeToDosDateTime
lea rdx, str._s_at_line__d_of___.10s_
mov r9d, 0xeb54
call fcn.140037580
mov eax, VariantTimeToDosDateTime
jmp 0x14004f84b
mov rcx, qword [r10]
lea r8, [rbp - 0x28]
xor r9d, r9d
mov edx, edi
call fcn.140043590
mov dword [rsp + 0x44], eax
test eax, eax
jne 0x14004f84f
mov rdx, qword [rbp - 0x28]
mov rax, qword [rdx + 0x10]
mov qword [rbp + r12 + 0x38], rax
cmp byte [rax], sil
jne 0x14004f848
mov rcx, qword [rdx + 0x10]
cmp edi, dword [rcx + 0x88]
je 0x14004f81f
mov rax, qword [rdx + 8]
cmp edi, 1
mov qword [rcx + 0x50], rax
mov rax, qword [rbp - 0x68]
mov qword [rcx + 0x48], rax
mov eax, r15d
mov qword [rcx + 0x70], rdx
mov edx, 0x64
cmove eax, edx
mov dword [rcx + 0x88], edi
mov byte [rcx + 5], al
mov rax, qword [rbp + r12 + 0x38]
mov rcx, rax
call fcn.140048fb0
mov dword [rsp + 0x44], eax
test eax, eax
je 0x14004f848
mov rcx, qword [rbp + r12 + 0x38]
test rcx, rcx
je 0x14004f84f
mov rcx, qword [rcx + 0x70]
call fcn.140043af0
mov eax, dword [rsp + 0x44]
jmp 0x14004f84f
mov eax, r15d
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
test eax, eax
jne 0x1400509e0
mov rax, qword [rbp + r12 + 0x38]
sub r13, 4
sub r12, 8
movzx edx, word [rax + 0x12]
movzx ecx, byte [rax + 1]
mov eax, ebx
add ecx, r14d
dec ebx
lea r14d, [rdx + 1]
add r14d, ecx
mov dword [rsp + 0x58], r14d
test eax, eax
je 0x14004f9f0
mov r8, qword [rbp - 0x38]
mov edx, dword [rbp - 0x80]
movzx ecx, word [r8 + 0x16]
lea eax, [rdx + rbx]
cmp eax, ecx
jne 0x14004f8d9
cmp byte [r8 + 1], sil
je 0x14004f8d9
mov rdx, qword [r8 + 0x20]
mov rcx, r8
mov qword [rbp + r12 + 0xc8], rdx
mov edi, dword [rdx]
bswap edi
mov dword [rbp - 0x70], edi
mov dword [rbp - 0x40], edi
call qword [r8 + 0x78]
mov r10, qword [rbp - 0x68]
movzx eax, ax
mov dword [r13], eax
mov rax, qword [rbp - 0x38]
mov byte [rax + 1], sil
jmp 0x14004f77a
movzx eax, byte [r8 + 1]
mov ecx, edx
sub ecx, eax
mov rax, qword [r8 + 0x60]
add ecx, ebx
add ecx, ecx
movsxd rcx, ecx
movzx edx, word [rcx + rax]
mov rcx, r8
movzx eax, word [r8 + 0x14]
ror dx, 8
movzx r14d, dx
and r14, rax
add r14, qword [r8 + 0x50]
mov rdx, r14
mov qword [rbp + r12 + 0xc8], r14
mov eax, dword [r14]
bswap eax
mov dword [rbp - 0x70], eax
mov edi, eax
mov dword [rbp - 0x40], eax
call qword [r8 + 0x78]
mov rdx, qword [rbp - 0x68]
movzx r15d, ax
mov dword [r13], r15d
test byte [rdx + 0x26], 4
je 0x14004f974
mov rax, qword [rbp - 0x38]
mov ecx, r14d
sub ecx, dword [rax + 0x50]
lea eax, [r15 + rcx]
cmp eax, dword [rdx + 0x34]
jg 0x14004f9a1
movsxd rcx, ecx
mov r8d, r15d
add rcx, qword [rbp - 0x18]
mov rdx, r14
call fcn.1400df6a0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x18]
sub rax, qword [rcx + 0x50]
add rax, r14
mov qword [rbp + r12 + 0xc8], rax
jmp 0x14004f978
mov rcx, qword [rbp - 0x38]
movzx eax, byte [rcx + 1]
lea r9, [rsp + 0x48]
mov edx, dword [rbp - 0x80]
mov r8d, r15d
sub edx, eax
add edx, ebx
call fcn.14004e720
mov r10, qword [rbp - 0x68]
xor r15d, r15d
mov r14d, dword [rsp + 0x58]
jmp 0x14004f77a
lea rax, [0x140147114]
mov r9d, 0xff43
lea r8, str.database_corruption
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, VariantTimeToDosDateTime
call fcn.140037580
movsxd r8, dword [rsp + 0x70]
lea rcx, [rbp + 0x38]
shl r8, 3
xor edx, edx
mov r15d, VariantTimeToDosDateTime
call fcn.1400dfb10
xor r13d, r13d
mov r14d, esi
jmp 0x140050a0f
mov rax, qword [rbp - 0x68]
lea ebx, [r14 + 3]
and ebx, 0xfffffffc
mov eax, dword [rax + 0x30]
lea ecx, [rbx + rbx*4]
lea ecx, [rax + rcx*2]
call fcn.140034e80
xor r13d, r13d
mov qword [rsp + 0x50], rax
mov qword [rbp - 0x50], rax
test rax, rax
jne 0x14004fa26
lea r15d, [rax + 7]
mov r14d, esi
jmp 0x140050a14
mov ecx, dword [rsp + 0x64]
mov r12d, r13d
movsxd rax, ebx
mov rbx, qword [rsp + 0x50]
mov dword [rsp + 0x58], r13d
lea rdx, [rbx + rax*8]
lea rax, [rax + rax*4]
mov qword [rbp - 0x48], rdx
lea rax, [rbx + rax*2]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x38]
mov qword [rbp - 0x58], rax
movzx r8d, byte [rax + 4]
movzx eax, byte [rax + 3]
shl r8w, 2
mov word [rsp + 0x5c], r8w
mov dword [rsp + 0x60], eax
test ecx, ecx
jg 0x14004fbe4
mov rax, qword [rbp - 0x68]
movzx ecx, r8w
mov r8d, dword [rsp + 0x64]
mov eax, dword [rax + 0x34]
add eax, 0xfffffff4
add ecx, eax
mov dword [rsp + 0x68], ecx
test r8d, r8d
jle 0x14004fb0c
mov r12, r13
nop dword [rax + rax]
mov rbx, qword [rbp + r12*8 + 0x38]
mov edi, ecx
movzx eax, word [rbx + 0x10]
sub edi, eax
mov dword [rbp + r12*4 + 8], edi
js 0x14004fe5c
cmp byte [rbx + 1], 0
mov r15d, r13d
jbe 0x14004faf4
lea r14, [rbx + 0x20]
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 + 1]
cmp r15d, eax
jl 0x14004fac5
mov ecx, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x64]
mov dword [rbp + r12*4 + 8], edi
mov eax, dword [rbp + r12*4 + 0x90]
mov dword [rbp + r12*4 + 0x20], eax
inc r12
movsxd rax, r8d
cmp r12, rax
jl 0x14004faa0
mov dword [rsp + 0x70], r13d
mov edx, r8d
mov dword [rbp - 0x78], edx
test r8d, r8d
jle 0x14004ffda
mov r12d, 1
mov r14, r13
nop dword [rax]
mov ebx, dword [rbp + r14 + 8]
cmp ebx, ecx
jle 0x14004feab
nop dword [rax]
cmp r12d, edx
jl 0x14004fb66
lea eax, [r12 + 1]
mov dword [rbp - 0x78], eax
cmp r14, 0xc
jg 0x14004ff88
mov dword [rbp + r14 + 0xc], r13d
mov ebx, dword [rbp + r14 + 8]
mov dword [rbp + r14 + 0x24], esi
movsxd rdi, dword [rbp + r14 + 0x20]
mov rcx, qword [rbp - 0x48]
mov rax, rdi
lea r15d, [rdi - 1]
movzx eax, word [rcx + rdi*2 - 2]
test ax, ax
jne 0x14004fb97
mov edx, r15d
lea rcx, [rbp - 0x60]
call fcn.14004eba0
mov esi, dword [rbp - 0x60]
mov rcx, qword [rbp - 0x48]
mov dword [rsp + 0x78], esi
movzx eax, ax
add eax, 2
sub ebx, eax
cmp byte [rsp + 0x60], 0
mov dword [rbp + r14 + 8], ebx
jne 0x14004fe94
cmp edi, esi
jge 0x14004fe91
mov rax, rdi
movzx eax, word [rcx + rdi*2]
test ax, ax
jne 0x14004fbd5
mov edx, edi
lea rcx, [rbp - 0x60]
call fcn.14004eba0
mov esi, dword [rbp - 0x60]
mov dword [rsp + 0x78], esi
movzx eax, ax
add eax, 2
jmp 0x14004fe94
mov rdx, qword [rbp - 0x48]
mov r15, qword [rbp + r13*8 + 0x38]
mov rax, qword [rbp + 0x38]
mov rdi, qword [r15 + 0x50]
mov rcx, qword [rax + 0x50]
movzx ebx, word [r15 + 0xe]
movzx r14d, word [r15 + 0x14]
add rbx, rdi
movzx eax, byte [rcx]
cmp byte [rdi], al
jne 0x14004fe21
movzx eax, word [r15 + 0x12]
movzx r8d, byte [r15 + 1]
add r8, rax
movsxd rax, esi
add r8, r8
lea rcx, [rdx + rax*2]
xor edx, edx
call fcn.1400dfb10
movzx eax, byte [r15 + 1]
xor r10d, r10d
test al, al
je 0x14004fcb4
movzx ecx, word [r15 + 0x16]
mov r9, qword [rsp + 0x50]
cmp r10w, cx
jae 0x14004fc83
movzx edx, cx
nop word [rax + rax]
movzx eax, word [rbx]
add rbx, 2
ror ax, 8
movzx ecx, ax
movzx eax, r14w
and rcx, rax
movsxd rax, esi
add rcx, rdi
inc esi
mov dword [rbp - 0x60], esi
mov qword [r9 + rax*8], rcx
sub rdx, 1
jne 0x14004fc50
movzx eax, byte [r15 + 1]
mov dword [rsp + 0x78], esi
mov r8d, r10d
test al, al
je 0x14004fcb4
lea rdx, [r15 + 0x20]
nop
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 + 1]
cmp r8d, eax
jl 0x14004fc90
mov dword [rsp + 0x78], esi
movzx edx, word [r15 + 0x12]
movzx ecx, word [r15 + 0xe]
add rcx, rdi
lea rax, [rcx + rdx*2]
mov rdx, r10
mov r8, rax
sub r8, rbx
inc r8
shr r8, 1
cmp rbx, rax
cmova r8, r10
test r8, r8
je 0x14004fd20
mov r9, qword [rsp + 0x50]
nop word [rax + rax]
movzx eax, word [rbx]
lea rbx, [rbx + 2]
ror ax, 8
inc rdx
movzx ecx, ax
movzx eax, r14w
and rcx, rax
movsxd rax, esi
add rcx, rdi
inc esi
mov dword [rbp - 0x60], esi
mov qword [r9 + rax*8], rcx
cmp rdx, r8
jb 0x14004fcf0
mov dword [rsp + 0x78], esi
mov dword [rbp + r13*4 + 0x90], esi
cmp r12d, dword [rbp - 0x78]
jge 0x14004fdfa
cmp byte [rsp + 0x60], 0
jne 0x14004fdfa
movzx ecx, word [rbp + r13*4 + 8]
movsxd r12, dword [rsp + 0x68]
mov r8d, ecx
mov rax, qword [rbp - 0x48]
mov rbx, r12
add rbx, qword [rsp + 0x70]
add r12d, ecx
mov rdx, qword [rbp + r13*8 + 0xc8]
movsxd rdi, esi
lea r14, [rax + rdi*2]
mov dword [rsp + 0x68], r12d
mov word [r14], cx
mov rcx, rbx
call fcn.1400df6a0
movzx r8d, word [rsp + 0x5c]
lea rax, [rbx + r8]
mov rbx, qword [rsp + 0x50]
mov qword [rbx + rdi*8], rax
sub word [r14], r8w
cmp byte [r15 + 4], 0
jne 0x14004fdb5
mov rax, qword [r15 + 0x50]
inc esi
mov rcx, qword [rbx + rdi*8]
mov r12d, dword [rsp + 0x58]
mov dword [rsp + 0x78], esi
mov eax, dword [rax + 8]
mov dword [rcx], eax
mov dword [rbp - 0x60], esi
jmp 0x14004fe00
cmp word [r14], 4
jae 0x14004fdea
mov rcx, qword [rsp + 0x70]
movsxd rax, r12d
add rcx, rax
nop word [rax + rax]
mov byte [rcx], 0
lea rcx, [rcx + 1]
inc word [r14]
inc r12d
cmp word [r14], 4
jb 0x14004fdd0
mov dword [rsp + 0x68], r12d
mov r12d, dword [rsp + 0x58]
inc esi
mov dword [rsp + 0x78], esi
mov dword [rbp - 0x60], esi
jmp 0x14004fe00
movzx r8d, word [rsp + 0x5c]
movsxd rcx, dword [rsp + 0x64]
inc r12d
inc r13
mov dword [rsp + 0x58], r12d
cmp r13, rcx
jl 0x14004fbe0
xor r13d, r13d
jmp 0x14004fa77
lea rax, [0x140147114]
mov r9d, 0xff86
lea r8, str.database_corruption
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, VariantTimeToDosDateTime
call fcn.140037580
xor r13d, r13d
mov r15d, VariantTimeToDosDateTime
mov r14d, r13d
jmp 0x140050a0f
lea rax, [0x140147114]
mov r9d, 0xffe8
lea r8, str.database_corruption
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, VariantTimeToDosDateTime
call fcn.140037580
mov r15d, VariantTimeToDosDateTime
jmp 0x140050a0a
mov eax, r13d
add dword [rbp + r14 + 0xc], eax
mov edx, dword [rbp - 0x78]
mov dword [rbp + r14 + 0x20], r15d
cmp ebx, dword [rsp + 0x68]
jg 0x14004fb40
mov edi, dword [rbp + r14 + 0x20]
cmp edi, esi
jge 0x14004ff46
mov rcx, qword [rbp - 0x48]
nop dword [rax]
movsxd rax, edi
movsxd r15, edi
movzx eax, word [rcx + rax*2]
test ax, ax
jne 0x14004fee5
mov edx, edi
lea rcx, [rbp - 0x60]
call fcn.14004eba0
mov esi, dword [rbp - 0x60]
mov rcx, qword [rbp - 0x48]
mov dword [rsp + 0x78], esi
movzx eax, ax
add eax, 2
add ebx, eax
cmp ebx, dword [rsp + 0x68]
jg 0x14004ff6a
inc edi
mov dword [rbp + r14 + 8], ebx
cmp byte [rsp + 0x60], 0
mov dword [rbp + r14 + 0x20], edi
jne 0x14004ff39
cmp edi, esi
jge 0x14004ff36
mov rax, r15
movzx eax, word [rcx + r15*2 + 2]
test ax, ax
jne 0x14004ff2e
mov edx, edi
lea rcx, [rbp - 0x60]
call fcn.14004eba0
mov esi, dword [rbp - 0x60]
mov rcx, qword [rbp - 0x48]
mov dword [rsp + 0x78], esi
movzx eax, ax
add eax, 2
jmp 0x14004ff39
mov eax, r13d
sub dword [rbp + r14 + 0xc], eax
cmp edi, esi
jl 0x14004fec0
mov edx, r12d
mov dword [rbp - 0x78], edx
mov eax, dword [rsp + 0x70]
inc r12d
inc eax
add r14, 4
mov dword [rsp + 0x70], eax
cmp eax, edx
jge 0x14004ffce
mov ecx, dword [rsp + 0x68]
jmp 0x14004fb30
cmp edi, esi
jge 0x14004ff46
cmp dword [rsp + 0x70], 0
jle 0x14004ff7c
mov eax, dword [rbp + r14 + 0x1c]
jmp 0x14004ff7f
mov eax, r13d
cmp edi, eax
jle 0x14004ffc6
mov edx, dword [rbp - 0x78]
jmp 0x14004ff4c
mov r9d, 0xfff4
lea rax, [0x140147114]
mov ecx, VariantTimeToDosDateTime
lea r8, str.database_corruption
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140037580
mov r15d, VariantTimeToDosDateTime
mov rax, qword [rbp - 0x50]
mov r14d, dword [rsp + 0x40]
jmp 0x140050a14
mov r9d, 0x10015
jmp 0x14004ff8e
mov rdx, qword [rbp - 0x50]
mov qword [rsp + 0x50], rdx
mov edx, dword [rbp - 0x78]
lea eax, [rdx - 1]
movsxd rcx, eax
mov qword [rbp - 0x28], rcx
mov dword [rsp + 0x58], eax
test eax, eax
jle 0x14005016d
mov r9, qword [rbp - 0x48]
lea rax, [rbp + 0x20]
lea rdx, [rbp + 8]
sub rax, rdx
add rax, 0xfffffffffffffffc
mov qword [rbp + 0xc8], rax
nop word [rax + rax]
mov r8d, dword [rbp + rcx*4 + 0x1c]
lea rax, [rbp + 8]
mov r14d, dword [rax + rcx*4]
lea rax, [rax + rcx*4]
mov r12d, dword [rbp + rcx*4 + 4]
mov qword [rsp + 0x78], rax
lea rax, [rbp + rcx*4 + 4]
mov qword [rbp - 8], rax
lea ebx, [r8 - 1]
lea rax, [rbp + rcx*4 + 0x1c]
mov dword [rsp + 0x70], r8d
mov qword [rsp + 0x50], rax
mov eax, ebx
sub eax, dword [rsp + 0x60]
lea edx, [rax + 1]
cdqe
lea r15, [rax*2 + 2]
cmp word [r15 + r9], 0
jne 0x140050074
lea rcx, [rbp - 0x60]
call fcn.14004eba0
mov r8d, dword [rsp + 0x70]
mov r9, qword [rbp - 0x48]
movsxd rax, ebx
lea rsi, [rax + rax]
nop dword [rax + rax]
cmp word [rsi + r9], 0
mov edi, r8d
mov r8d, ebx
jne 0x1400500a0
mov edx, ebx
lea rcx, [rbp - 0x60]
call fcn.14004eba0
mov r9, qword [rbp - 0x48]
mov r8d, ebx
test r14d, r14d
je 0x1400500df
cmp dword [rbp + 0x140], 0
jne 0x140050113
movzx eax, word [rsi + r9]
mov edx, r12d
mov ecx, dword [rbp - 0x78]
sub edx, eax
dec ecx
mov eax, 2
cmp dword [rsp + 0x58], ecx
mov ecx, 0
cmove eax, ecx
lea ecx, [r14 + 2]
sub edx, eax
movzx eax, word [r15 + r9]
add ecx, eax
cmp ecx, edx
jg 0x140050113
movzx eax, word [r15 + r9]
mov ecx, 0xfffffffe
add eax, 2
sub r15, 2
add r14d, eax
mov edi, ebx
movzx eax, word [rsi + r9]
sub rsi, 2
sub ecx, eax
mov rax, qword [rsp + 0x50]
add r12d, ecx
mov dword [rax], ebx
sub ebx, 1
jns 0x140050080
mov rax, qword [rsp + 0x78]
xor r13d, r13d
mov rcx, qword [rbp - 0x28]
mov dword [rax], r14d
mov rax, qword [rbp - 8]
mov dword [rax], r12d
cmp rcx, 1
jle 0x14005013b
mov rdx, qword [rbp + 0xc8]
mov eax, dword [rdx + rax]
jmp 0x14005013e
mov eax, r13d
cmp edi, eax
jle 0x1400501e5
dec dword [rsp + 0x58]
dec rcx
mov qword [rbp - 0x28], rcx
test rcx, rcx
jg 0x140050010
mov rax, qword [rbp - 0x50]
mov esi, dword [rbp - 0x60]
mov edx, dword [rbp - 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x78], esi
mov rax, qword [rbp + 0x38]
movsxd r14, edx
mov rcx, qword [rax + 0x50]
movzx r12d, byte [rcx]
mov dword [rsp + 0x58], r12d
test edx, edx
jle 0x1400502db
mov edi, dword [rbp - 0x70]
mov rbx, r13
nop
movsxd rcx, dword [rsp + 0x64]
cmp rbx, rcx
jge 0x140050232
mov rax, qword [rbp + rbx*8 + 0x38]
mov qword [rbp + rbx*8 + 0x50], rax
mov qword [rbp + rbx*8 + 0x38], r13
mov qword [rbp - 0x28], rax
mov rcx, qword [rax + 0x70]
mov rdx, qword [rcx + 0x20]
mov r15d, dword [rdx + 0x30]
mov dword [rsp + 0x44], r15d
test r15d, r15d
jne 0x14005021b
test byte [rcx + 0x2c], 4
je 0x1400501fa
mov eax, dword [rcx + 0x28]
cmp dword [rdx + 0x20], eax
jb 0x1400501fa
cmp dword [rdx + 0x80], r15d
je 0x1400501f0
call fcn.140042600
jmp 0x140050214
mov r9d, 0x1003f
jmp 0x14004ff8e
mov r15d, r13d
mov dword [rsp + 0x44], r13d
jmp 0x14005021b
mov eax, dword [rdx + 0xbc]
cmp dword [rdx + 0xb8], eax
jbe 0x14005020f
call fcn.140044090
jmp 0x140050214
call fcn.140043e50
mov r15d, eax
mov dword [rsp + 0x44], eax
inc dword [rsp + 0x40]
mov dword [rsp + 0x48], r15d
test r15d, r15d
jne 0x140050a0a
jmp 0x1400502cf
cmp dword [rbp + 0x140], 0
lea r8, [rbp - 0x40]
mov rcx, qword [rbp - 0x68]
lea rdx, [rbp - 0x28]
mov eax, 1
mov byte [rsp + 0x20], 0
cmovne edi, eax
mov r9d, edi
call fcn.14004d5d0
mov dword [rsp + 0x44], eax
mov r15d, eax
mov dword [rsp + 0x48], eax
test eax, eax
jne 0x140050a0a
mov rdi, qword [rbp - 0x28]
mov edx, r12d
mov rcx, rdi
call fcn.140049230
mov rcx, qword [rbp - 0x68]
inc dword [rsp + 0x40]
mov qword [rbp + rbx*8 + 0x50], rdi
mov dword [rbp + rbx*4 + 0x90], esi
cmp byte [rcx + 0x21], r15b
je 0x1400502cc
mov edx, dword [rdi + 0x88]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8b, 5
mov rax, qword [rbp - 0x38]
mov r9d, dword [rax + 0x88]
call fcn.1400482b0
mov r15d, dword [rsp + 0x48]
mov dword [rsp + 0x44], r15d
test r15d, r15d
jne 0x140050a0a
mov edi, dword [rbp - 0x40]
inc rbx
cmp rbx, r14
jl 0x140050190
movsxd r14, dword [rsp + 0x40]
mov rdi, r14
test r14d, r14d
jle 0x14005040a
mov rdx, r13
nop
mov rax, qword [rbp + rdx*8 + 0x50]
mov r8d, dword [rax + 0x88]
mov rax, qword [rax + 0x70]
mov dword [rbp + rdx*4 + 0xa8], r8d
mov dword [rbp + rdx*4 + 0x78], r8d
movzx ecx, word [rax + 0x2c]
mov rax, r13
mov word [rbp + rdx*2 + 0xc8], cx
test rdx, rdx
jle 0x140050337
cmp dword [rbp + rax*4 + 0xa8], r8d
je 0x1400504cd
inc rax
cmp rax, rdx
jl 0x140050321
inc rdx
cmp rdx, rdi
jl 0x1400502f0
mov rsi, qword [rbp - 0x68]
mov r14, r13
mov r12d, 1
nop dword [rax]
mov r10d, r13d
mov rbx, r13
mov r9d, r12d
mov r8, r12
cmp r12, rdi
jge 0x140050398
nop dword [rax]
nop word [rax + rax]
mov edx, dword [rbp + rbx*4 + 0x78]
mov rax, r8
cmp dword [rbp + r8*4 + 0x78], edx
cmovae rax, rbx
mov rbx, rax
mov eax, r9d
cmovae eax, r10d
inc r9d
inc r8
mov r10d, eax
cmp r8, rdi
jl 0x140050370
mov r15d, dword [rbp + rbx*4 + 0x78]
mov dword [rbp + rbx*4 + 0x78], 0xffffffff
cmp rbx, r14
je 0x1400503f0
jle 0x1400503c7
mov rax, qword [rbp + rbx*8 + 0x50]
mov edx, dword [rsi + 0x3c]
inc edx
add edx, r10d
mov rcx, qword [rax + 0x70]
mov word [rcx + 0x2c], r13w
call fcn.14003e580
mov rax, qword [rbp + r14*8 + 0x50]
mov edx, r15d
mov rcx, qword [rax + 0x70]
movzx eax, word [rbp + rbx*2 + 0xc8]
mov word [rcx + 0x2c], ax
call fcn.14003e580
mov rax, qword [rbp + r14*8 + 0x50]
mov dword [rax + 0x88], r15d
inc r14
cmp r14, rdi
jl 0x140050350
mov esi, dword [rsp + 0x78]
mov r12d, dword [rsp + 0x58]
mov r14d, dword [rsp + 0x40]
lea r8, [rdi - 1]
mov rax, qword [rbp + r8*8 + 0x50]
mov ecx, dword [rax + 0x88]
mov rax, qword [rbp - 0x10]
bswap ecx
mov dword [rax], ecx
test r12b, 8
jne 0x140050455
cmp dword [rsp + 0x64], r14d
je 0x140050455
mov rcx, qword [rbp]
lea rdx, [rbp + 0x38]
lea rax, [rbp + 0x50]
cmovge rax, rdx
mov rax, qword [rax + rcx*8]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + r8*8 + 0x50]
mov rcx, qword [rax + 0x50]
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov rcx, qword [rbp - 0x68]
cmp byte [rcx + 0x21], 0
je 0x140050697
mov rbx, qword [rbp + 0x50]
mov r10d, dword [rcx + 0x34]
xor ecx, ecx
mov dword [rbp - 0x70], r10d
mov r14d, ecx
movzx r9d, word [rbx + 0x12]
movzx eax, byte [rbx + 1]
mov r13, qword [rbx + 0x50]
add r9d, eax
mov dword [rsp + 0x58], r9d
test esi, esi
jle 0x14005069d
mov r11, qword [rsp + 0x50]
lea rdx, [rbp + 0x50]
lea r8, [rbp + 0x20]
mov qword [rsp + 0x78], rdx
mov qword [rbp - 0x78], r8
mov r12d, ecx
mov eax, ecx
mov qword [rsp + 0x70], rcx
mov qword [rbp - 0x40], rcx
mov r15, qword [rcx + r11]
cmp r14d, r9d
jne 0x140050537
inc r12
cmp r12, rdi
jge 0x140050502
mov rdx, qword [rbp + r12*8 + 0x50]
jmp 0x140050507
lea rax, [0x140147114]
mov r9d, 0x10089
lea r8, str.database_corruption
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, VariantTimeToDosDateTime
call fcn.140037580
mov r15d, VariantTimeToDosDateTime
jmp 0x140050a0f
mov rdx, qword [rbp + r12*8 + 0x38]
movzx eax, word [rdx + 0x12]
xor ecx, ecx
cmp byte [rsp + 0x60], cl
mov r13, qword [rdx + 0x50]
sete cl
add ecx, eax
movzx eax, byte [rdx + 1]
mov rdx, qword [rsp + 0x78]
add r9d, eax
mov rax, qword [rsp + 0x70]
add r9d, ecx
mov rcx, qword [rbp - 0x40]
mov dword [rsp + 0x58], r9d
cmp r14d, dword [r8]
jne 0x14005055c
mov rbx, qword [rdx + 8]
add rdx, 8
add r8, 4
mov qword [rsp + 0x78], rdx
cmp byte [rsp + 0x60], 0
mov qword [rbp - 0x78], r8
je 0x14005066c
cmp r12, rdi
jge 0x140050585
mov eax, dword [rbp + r12*4 + 0xa8]
cmp dword [rbx + 0x88], eax
jne 0x140050585
cmp r15, r13
jb 0x140050585
movsxd rax, r10d
add rax, r13
cmp r15, rax
jb 0x140050667
cmp word [rsp + 0x5c], 0
jne 0x1400505b7
mov edx, dword [r15]
lea rax, [rsp + 0x48]
mov r9d, dword [rbx + 0x88]
mov r8b, 5
mov rcx, qword [rbp - 0x68]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.1400482b0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rbp - 0x48]
movzx eax, word [rax + rcx]
test ax, ax
jne 0x1400505e1
mov edx, r14d
lea rcx, [rbp - 0x60]
call fcn.14004eba0
mov rsi, qword [rbp - 0x50]
mov qword [rsp + 0x50], rsi
mov esi, dword [rbp - 0x60]
cmp ax, word [rbx + 0xc]
jbe 0x140050648
cmp dword [rsp + 0x44], 0
jne 0x140050a02
lea r8, [rbp + 0x78]
mov rdx, r15
mov rcx, rbx
call qword [rbx + 0x80]
movzx eax, word [rbp + 0x8c]
cmp eax, dword [rbp + 0x88]
jae 0x140050656
movzx eax, word [rbp + 0x8e]
mov r8b, 3
mov r9d, dword [rbx + 0x88]
mov rcx, qword [rbx + 0x48]
mov edx, dword [rax + r15 - 4]
lea rax, [rsp + 0x48]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.1400482b0
mov r15d, dword [rsp + 0x48]
mov dword [rsp + 0x44], r15d
jmp 0x14005064d
mov r15d, dword [rsp + 0x44]
test r15d, r15d
jne 0x140050a07
mov r11, qword [rsp + 0x50]
mov r10d, dword [rbp - 0x70]
mov r8, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
add rcx, 8
mov r9d, dword [rsp + 0x58]
add rax, 2
inc r14d
mov qword [rbp - 0x40], rcx
mov qword [rsp + 0x70], rax
cmp r14d, esi
jl 0x1400504b5
lea r8, [rdi - 1]
mov rbx, qword [rbp + 0x50]
xor ecx, ecx
test r8, r8
jle 0x1400507d9
mov r12, rcx
lea r13, [rdi - 1]
nop dword [rax]
movsxd rdx, dword [rbp + r12*4 + 0x20]
mov rax, qword [rbp - 0x48]
mov r15, qword [rbp + r12*8 + 0x50]
mov rcx, qword [rsp + 0x50]
movzx r9d, word [rsp + 0x5c]
movzx eax, word [rax + rdx*2]
movsxd r14, dword [rbp - 0x30]
add r9d, eax
add r14, qword [rbp - 0x18]
cmp byte [r15 + 4], 0
mov rbx, qword [rcx + rdx*8]
jne 0x1400506f1
mov rcx, qword [r15 + 0x50]
mov eax, dword [rbx]
mov dword [rcx + 8], eax
jmp 0x140050785
cmp byte [rsp + 0x60], 0
je 0x14005076b
mov rdx, qword [rcx + rdx*8 - 8]
lea r8, [rbp + 0xa8]
mov rcx, r15
call qword [r15 + 0x80]
mov rdx, qword [rbp + 0xa8]
lea rcx, [r14 + 4]
mov rbx, r14
cmp rdx, 0x7f
ja 0x140050735
and dl, 0x7f
mov eax, 1
mov byte [rcx], dl
xor r14d, r14d
lea r9d, [rax + 4]
jmp 0x140050785
cmp rdx, 0x3fff
ja 0x14005075d
mov rax, rdx
and dl, 0x7f
shr rax, 7
or al, 0x80
mov byte [rcx + 1], dl
mov byte [rcx], al
xor r14d, r14d
mov eax, 2
lea r9d, [rax + 4]
jmp 0x140050785
call fcn.140038e60
xor r14d, r14d
lea r9d, [rax + 4]
jmp 0x140050785
sub rbx, 4
cmp eax, 4
jne 0x140050785
mov rax, qword [rbp - 0x38]
mov rdx, rbx
mov rcx, rax
call qword [rax + 0x78]
movzx r9d, ax
mov rcx, qword [rbp - 0x38]
lea rax, [rsp + 0x48]
add dword [rbp - 0x30], r9d
mov r8, rbx
mov ebx, dword [rbp - 0x80]
mov edx, ebx
mov qword [rsp + 0x30], rax
mov eax, dword [r15 + 0x88]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
call fcn.14004e880
mov r15d, dword [rsp + 0x48]
test r15d, r15d
jne 0x140050a07
inc ebx
inc r12
mov dword [rbp - 0x80], ebx
cmp r12, r13
jl 0x1400506b0
mov rbx, qword [rbp + 0x50]
jmp 0x1400507de
mov r15d, dword [rsp + 0x44]
mov r14d, dword [rsp + 0x40]
mov r12d, 1
sub r12d, r14d
cmp r12d, r14d
jge 0x1400508d3
mov r14d, dword [rbp + 0x20]
nop dword [rax]
mov eax, r12d
cdq
xor eax, edx
sub eax, edx
movsxd rbx, eax
cmp byte [rbp + rbx + 0xc0], 0
jne 0x1400508b3
test r12d, r12d
jns 0x14005082f
mov ecx, dword [rbp + rbx*4 + 0x1c]
cmp dword [rbp + rbx*4 + 0x8c], ecx
jl 0x1400508b3
xor r13d, r13d
test eax, eax
jne 0x140050841
mov esi, r13d
mov r8d, r13d
mov r9d, r14d
jmp 0x140050871
cmp eax, dword [rsp + 0x64]
mov eax, dword [rsp + 0x60]
jge 0x14005085b
test al, al
mov esi, r13d
sete sil
add esi, dword [rbp + rbx*4 + 0x8c]
mov r9d, dword [rbp + rbx*4 + 0x20]
test al, al
mov r8d, r13d
sete r8b
add r8d, dword [rbp + rbx*4 + 0x1c]
sub r9d, r8d
mov rcx, qword [rbp + rbx*8 + 0x50]
lea rax, [rbp - 0x60]
mov edx, esi
mov qword [rsp + 0x20], rax
call fcn.14004efa0
mov dword [rsp + 0x48], eax
mov r15d, eax
test eax, eax
jne 0x14004ffb8
mov rax, qword [rbp + rbx*8 + 0x50]
movzx ecx, word [rsp + 0x68]
sub cx, word [rbp + rbx*4 + 8]
mov esi, dword [rbp - 0x60]
mov word [rax + 0x10], cx
mov byte [rbp + rbx + 0xc0], 1
inc r12d
cmp r12d, dword [rsp + 0x40]
jl 0x140050800
mov rax, qword [rbp - 0x50]
mov rbx, qword [rbp + 0x50]
mov r14d, dword [rsp + 0x40]
mov qword [rsp + 0x50], rax
cmp dword [rbp - 0x20], 0
je 0x14005097d
mov rsi, qword [rbp - 0x38]
cmp word [rsi + 0x12], 0
jne 0x14005097d
movzx eax, byte [rsi + 5]
cmp ax, word [rbx + 0x10]
ja 0x14005097d
mov rcx, rbx
call fcn.1400488b0
mov rcx, qword [rbp + 0x50]
lea r8, [rsp + 0x48]
mov rdx, rsi
mov dword [rsp + 0x48], eax
call fcn.14004f540
mov r15d, dword [rsp + 0x48]
test r15d, r15d
jne 0x14005093b
mov rcx, qword [rbp + 0x50]
mov rdx, rcx
mov r8d, dword [rcx + 0x88]
mov rcx, qword [rcx + 0x48]
call fcn.14004dd60
mov r15d, eax
xor r13d, r13d
movsxd rax, dword [rsp + 0x64]
mov rbx, rax
cmp rdi, rax
jge 0x140050a0f
nop
mov rcx, qword [rbp + rdi*8 + 0x38]
test r15d, r15d
jne 0x140050970
mov r8d, dword [rcx + 0x88]
mov rdx, rcx
mov rcx, qword [rcx + 0x48]
call fcn.14004dd60
mov r15d, eax
inc rdi
cmp rdi, rbx
jl 0x140050950
jmp 0x140050a0f
mov r10, qword [rbp - 0x68]
cmp byte [r10 + 0x21], 0
je 0x14005093b
xor r13d, r13d
cmp word [rsp + 0x5c], r13w
jne 0x14005093e
test rdi, rdi
jle 0x14005093e
mov ebx, r13d
nop dword [rax + rax]
mov rcx, qword [rbp + rbx*8 + 0x50]
mov r8b, 5
mov rax, qword [rcx + 0x50]
mov r9d, dword [rcx + 0x88]
mov rcx, r10
mov edx, dword [rax + 8]
lea rax, [rsp + 0x48]
bswap edx
mov qword [rsp + 0x20], rax
call fcn.1400482b0
mov r10, qword [rbp - 0x68]
inc rbx
cmp rbx, rdi
jl 0x1400509a0
mov r15d, dword [rsp + 0x48]
jmp 0x14005093e
lea eax, [rbx + 1]
xor edx, edx
movsxd r8, eax
lea rcx, [rbp + 0x38]
shl r8, 3
call fcn.1400dfb10
mov r15d, dword [rsp + 0x44]
xor r13d, r13d
mov r14d, esi
jmp 0x140050a0f
mov r15d, dword [rsp + 0x44]
xor r13d, r13d
mov r14d, dword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
mov rcx, rax
call fcn.140034fc0
movsxd rax, dword [rsp + 0x64]
mov r12, qword [rsp + 0x1e8]
mov rdi, rax
test eax, eax
jle 0x140050a4e
mov rbx, r13
mov rcx, qword [rbp + rbx*8 + 0x38]
test rcx, rcx
je 0x140050a46
mov rcx, qword [rcx + 0x70]
call fcn.140043af0
inc rbx
cmp rbx, rdi
jl 0x140050a33
mov rdi, qword [rsp + 0x1f0]
movsxd rbx, r14d
test r14d, r14d
jle 0x140050a7b
nop
mov rcx, qword [rbp + r13*8 + 0x50]
test rcx, rcx
je 0x140050a73
mov rcx, qword [rcx + 0x70]
call fcn.140043af0
inc r13
cmp r13, rbx
jl 0x140050a60
mov r13, qword [rsp + 0x1e0]
mov eax, r15d
mov rbx, qword [rsp + 0x238]
mov rcx, qword [rbp + 0xd8]
xor rcx, rsp
call fcn.1400dd420
add rsp, 0x1f8
pop r15
pop r14
pop rsi
pop rbp
ret