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

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, qword [rcx + 0x18]
xor r15d, r15d
xor r12d, r12d
mov ebp, r8d
mov rdi, rdx
mov r14, rcx
cmp r8d, 2
jae 0x1401257ee
mov ebx, VariantTimeToDosDateTime
lea r9, [0x1402b951c]
mov ecx, ebx
lea rdx, str.database_corruption_at_line__d_of___.10s_
mov r8d, 0xe8c2
call fcn.14010fcd0
jmp 0x140125b45
test rdx, rdx
je 0x1401257fd
mov rax, qword [rdx + 0x70]
inc word [rax + 0x2e]
jmp 0x140125807
mov edx, ebp
call fcn.140119760
mov rdi, rax
mov rcx, qword [r13 + 0x70]
test byte [rcx + 0x2c], 4
mov r8, qword [rcx + 0x20]
je 0x140125838
mov edx, dword [rcx + 0x28]
cmp dword [r8 + 0x1c], edx
jb 0x140125838
cmp dword [r8 + 0x80], r12d
je 0x14012582e
call fcn.140179d60
jmp 0x140125854
mov dword [rsp + 0x80], r12d
jmp 0x140125865
mov eax, dword [r8 + 0xbc]
cmp dword [r8 + 0xb8], eax
jbe 0x14012584f
call fcn.14012e3b0
jmp 0x140125854
call fcn.14012f640
mov dword [rsp + 0x80], eax
mov ebx, eax
test eax, eax
jne 0x140125b26
mov rcx, qword [r13 + 0x50]
mov qword [rsp + 0x78], rsi
mov esi, dword [rcx + 0x24]
bswap esi
lea eax, [rsi + 1]
bswap eax
mov dword [rcx + 0x24], eax
test byte [r14 + 0x26], 4
je 0x140125907
test rdi, rdi
jne 0x1401258da
mov rcx, qword [r14]
lea r8, [rsp + 0x70]
xor r9d, r9d
mov edx, ebp
call fcn.140153e20
mov ebx, eax
test eax, eax
jne 0x1401258d2
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx + 8]
mov rdi, qword [rcx + 0x10]
mov qword [rdi + 0x50], rax
xor eax, eax
cmp ebp, 1
mov qword [rdi + 0x70], rcx
mov ecx, 0x64
mov qword [rdi + 0x48], r14
cmove eax, ecx
mov dword [rdi + 0x88], ebp
mov byte [rdi + 6], al
test ebx, ebx
jne 0x140125b21
mov rcx, qword [rdi + 0x70]
call fcn.140155cf0
mov dword [rsp + 0x80], eax
mov ebx, eax
test eax, eax
jne 0x140125b21
mov rax, qword [rdi + 0x48]
xor edx, edx
mov rcx, qword [rdi + 0x50]
mov r8d, dword [rax + 0x30]
call fcn.140249b10
cmp byte [r14 + 0x21], r12b
je 0x140125939
lea rax, [rsp + 0x80]
xor r9d, r9d
mov r8b, 2
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, r14
call fcn.1401316c0
mov ebx, dword [rsp + 0x80]
test ebx, ebx
jne 0x140125b21
test esi, esi
je 0x140125aa8
mov rax, qword [r13 + 0x50]
lea r8, [rsp + 0x70]
mov rcx, qword [r14]
xor r9d, r9d
mov r12d, dword [rax + 0x20]
bswap r12d
mov edx, r12d
call fcn.140153e20
mov ebx, eax
test eax, eax
jne 0x140125997
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx + 8]
mov r15, qword [rcx + 0x10]
mov qword [r15 + 0x50], rax
xor eax, eax
cmp r12d, 1
mov qword [r15 + 0x70], rcx
mov ecx, 0x64
mov qword [r15 + 0x48], r14
cmove eax, ecx
mov dword [r15 + 0x88], r12d
mov byte [r15 + 6], al
test ebx, ebx
jne 0x140125b21
mov rax, qword [r15 + 0x50]
mov ecx, dword [r14 + 0x34]
shr ecx, 2
mov esi, dword [rax + 4]
bswap esi
lea eax, [rcx - 2]
cmp esi, eax
jbe 0x1401259db
mov ebx, VariantTimeToDosDateTime
lea r9, [0x1402b951c]
mov ecx, ebx
lea rdx, str.database_corruption_at_line__d_of___.10s_
mov r8d, 0xe8f7
call fcn.14010fcd0
jmp 0x140125b21
lea eax, [rcx - 8]
cmp esi, eax
jae 0x140125aa8
mov rcx, qword [r15 + 0x70]
call fcn.140155cf0
mov ebx, eax
test eax, eax
jne 0x140125b21
mov rax, qword [r15 + 0x50]
lea ecx, [rsi + 1]
mov edx, ebp
bswap ecx
bswap edx
mov dword [rax + 4], ecx
lea ecx, [rsi*4 + 8]
mov rax, qword [r15 + 0x50]
mov dword [rcx + rax], edx
test rdi, rdi
je 0x140125a4c
test byte [r14 + 0x26], 4
jne 0x140125a4c
mov rdx, qword [rdi + 0x70]
movzx ecx, word [rdx + 0x2c]
test cl, 2
je 0x140125a4c
mov rax, qword [rdx + 0x20]
cmp dword [rax + 0x80], ebx
jne 0x140125a4c
mov eax, 0xfffb
and cx, ax
or cx, 0x20
mov word [rdx + 0x2c], cx
mov rsi, qword [r14 + 0x58]
xor ebx, ebx
test rsi, rsi
jne 0x140125a92
mov r12d, dword [r14 + 0x3c]
mov ecx, 0x200
call fcn.140152ef0
mov rsi, rax
test rax, rax
je 0x140125a81
lea rcx, [rax + 4]
xor edx, edx
mov r8d, 0x1fc
call fcn.140249b10
mov dword [rsi], r12d
mov qword [r14 + 0x58], rsi
test rsi, rsi
jne 0x140125a92
lea ebx, [rsi + 7]
jmp 0x140125b21
cmp ebp, dword [rsi]
ja 0x140125b21
mov edx, ebp
mov rcx, rsi
call fcn.14013b580
mov ebx, eax
jmp 0x140125b21
test rdi, rdi
jne 0x140125af8
mov rcx, qword [r14]
lea r8, [rsp + 0x70]
xor r9d, r9d
mov edx, ebp
call fcn.140153e20
mov ebx, eax
test eax, eax
jne 0x140125af4
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx + 8]
mov rdi, qword [rcx + 0x10]
mov qword [rdi + 0x50], rax
xor eax, eax
cmp ebp, 1
mov qword [rdi + 0x70], rcx
mov ecx, 0x64
mov qword [rdi + 0x48], r14
cmove eax, ecx
mov dword [rdi + 0x88], ebp
mov byte [rdi + 6], al
test ebx, ebx
jne 0x140125b21
mov rcx, qword [rdi + 0x70]
call fcn.140155cf0
mov ebx, eax
test eax, eax
jne 0x140125b21
mov rax, qword [rdi + 0x50]
bswap r12d
bswap ebp
mov dword [rax], r12d
mov rax, qword [rdi + 0x50]
mov dword [rax + 4], ebx
mov rax, qword [r13 + 0x50]
mov dword [rax + 0x20], ebp
mov rsi, qword [rsp + 0x78]
test rdi, rdi
je 0x140125b37
mov rcx, qword [rdi + 0x70]
mov byte [rdi], 0
call fcn.140155c40
test r15, r15
je 0x140125b45
mov rcx, qword [r15 + 0x70]
call fcn.140155c40
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret