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

Disassembly:
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15, r9
mov r14d, r8d
mov esi, edx
mov r12, rcx
cmp edx, dword [rcx + 0x3c]
jbe 0x140051a0c
lea rax, [0x140147114]
mov edi, VariantTimeToDosDateTime
mov ecx, edi
mov qword [rsp + 0x20], rax
mov r9d, 0x10480
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140037580
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rcx, qword [rcx]
lea r8, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x88], rbx
call fcn.140043590
mov edi, eax
test eax, eax
jne 0x140051a7e
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rcx + 0x10]
cmp byte [rbx], al
jne 0x140051a8b
cmp esi, dword [rbx + 0x88]
je 0x140051a65
mov rax, qword [rcx + 8]
mov qword [rbx + 0x50], rax
xor eax, eax
cmp esi, 1
mov qword [rbx + 0x70], rcx
mov ecx, 0x64
mov qword [rbx + 0x48], r12
cmove eax, ecx
mov dword [rbx + 0x88], esi
mov byte [rbx + 5], al
mov rcx, rbx
call fcn.140048fb0
mov edi, eax
test eax, eax
je 0x140051a8b
mov rcx, qword [rbx + 0x70]
call fcn.140043af0
jmp 0x140051a83
mov rbx, qword [rsp + 0x70]
test edi, edi
jne 0x140051c38
cmp byte [rbx + 8], 0
je 0x140051ac2
lea rax, [0x140147114]
mov edi, VariantTimeToDosDateTime
mov ecx, edi
mov qword [rsp + 0x20], rax
mov r9d, 0x10485
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140037580
jmp 0x140051c2b
movzx eax, word [rbx + 0x12]
xor esi, esi
mov qword [rsp + 0x38], rbp
mov ebp, esi
mov qword [rsp + 0x30], r13
movzx r13d, byte [rbx + 5]
mov byte [rbx + 8], 1
cmp si, ax
jae 0x140051b62
mov r14d, esi
nop dword [rax]
mov rax, qword [rbx + 0x60]
movzx ecx, word [r14 + rax]
movzx eax, word [rbx + 0x14]
ror cx, 8
movzx esi, cx
and rsi, rax
add rsi, qword [rbx + 0x50]
cmp byte [rbx + 4], 0
jne 0x140051b30
mov edx, dword [rsi]
mov r9, r15
bswap edx
mov r8d, 1
mov rcx, r12
call fcn.1400519b0
mov edi, eax
test eax, eax
jne 0x140051c21
lea r8, [rsp + 0x78]
mov rdx, rsi
mov rcx, rbx
call fcn.14004e160
mov edi, eax
test eax, eax
jne 0x140051c21
movzx eax, word [rbx + 0x12]
inc ebp
add r14, 2
cmp ebp, eax
jl 0x140051af0
mov r14d, dword [rsp + 0x80]
xor esi, esi
cmp byte [rbx + 4], 0
jne 0x140051b93
mov rax, qword [rbx + 0x50]
mov r9, r15
movzx ecx, r13b
mov r8d, 1
mov edx, dword [rax + rcx + 8]
mov rcx, r12
bswap edx
call fcn.1400519b0
mov edi, eax
test eax, eax
jne 0x140051c21
jmp 0x140051b9e
test r15, r15
je 0x140051b9e
movzx eax, ax
add dword [r15], eax
test r14d, r14d
je 0x140051bba
mov r8d, dword [rbx + 0x88]
mov rdx, rbx
mov rcx, qword [rbx + 0x48]
call fcn.14004dd60
mov edi, eax
jmp 0x140051c21
mov rcx, qword [rbx + 0x70]
mov rdx, qword [rcx + 0x20]
mov edi, dword [rdx + 0x30]
test edi, edi
jne 0x140051c21
test byte [rcx + 0x2c], 4
je 0x140051bea
mov eax, dword [rcx + 0x28]
cmp dword [rdx + 0x20], eax
jb 0x140051bea
cmp dword [rdx + 0x80], edi
je 0x140051be6
call fcn.140042600
jmp 0x140051c04
mov edi, esi
jmp 0x140051c0a
mov eax, dword [rdx + 0xbc]
cmp dword [rdx + 0xb8], eax
jbe 0x140051bff
call fcn.140044090
jmp 0x140051c04
call fcn.140043e50
mov edi, eax
test eax, eax
jne 0x140051c21
mov rax, qword [rbx + 0x50]
movzx ecx, r13b
movzx edx, byte [rax + rcx]
mov rcx, rbx
or edx, 8
call fcn.140049230
mov rbp, qword [rsp + 0x38]
mov r13, qword [rsp + 0x30]
mov rcx, qword [rbx + 0x70]
mov byte [rbx + 8], 0
call fcn.140043af0
mov rbx, qword [rsp + 0x88]
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret