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

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov r13, qword [rcx + 0x18]
xor r15d, r15d
xor r12d, r12d
mov ebp, r8d
mov rdi, rdx
mov r14, rcx
cmp r8d, 2
jb 0x1400efd9e
cmp r8d, dword [rcx + 0x3c]
ja 0x1400efd9e
mov qword [rsp + 0x88], rbx
test rdx, rdx
je 0x1400efa24
mov rax, qword [rdx + 0x70]
inc word [rax + 0x36]
mov rax, qword [rax + 0x18]
inc dword [rax + 0x18]
jmp 0x1400efa2e
mov edx, ebp
call fcn.1400e07b0
mov rdi, rax
mov rcx, qword [r13 + 0x70]
test byte [rcx + 0x34], 4
mov r8, qword [rcx + 0x28]
je 0x1400efa5f
mov edx, dword [rcx + 0x30]
cmp dword [r8 + 0x1c], edx
jb 0x1400efa5f
cmp dword [r8 + 0x80], r12d
je 0x1400efa55
call fcn.14014e010
jmp 0x1400efa83
mov dword [rsp + 0x90], r12d
jmp 0x1400efa94
mov ebx, dword [r8 + 0x2c]
test ebx, ebx
jne 0x1400efa85
mov eax, dword [r8 + 0xbc]
cmp dword [r8 + 0xb8], eax
jbe 0x1400efa7e
call fcn.1400fa3b0
jmp 0x1400efa83
call fcn.1400fb5b0
mov ebx, eax
mov dword [rsp + 0x90], ebx
test ebx, ebx
jne 0x1400efd6d
mov rcx, qword [r13 + 0x50]
mov qword [rsp + 0x40], 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 0x1400efb44
test rdi, rdi
jne 0x1400efb17
mov rax, qword [r14]
lea r8, [rsp + 0x80]
xor r9d, r9d
mov edx, ebp
mov rcx, rax
call qword [rax + 0x108]
mov ebx, eax
test eax, eax
jne 0x1400efb0f
mov rcx, qword [rsp + 0x80]
mov rdi, qword [rcx + 0x10]
cmp ebp, dword [rdi + 4]
je 0x1400efb0d
mov rax, qword [rcx + 8]
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 + 4], ebp
mov byte [rdi + 9], al
xor ebx, ebx
test ebx, ebx
jne 0x1400efd68
mov rcx, qword [rdi + 0x70]
call fcn.1401260a0
mov dword [rsp + 0x90], eax
mov ebx, eax
test eax, eax
jne 0x1400efd68
mov rax, qword [rdi + 0x48]
xor edx, edx
mov rcx, qword [rdi + 0x50]
mov r8d, dword [rax + 0x30]
call fcn.14018c010
cmp byte [r14 + 0x21], r12b
je 0x1400efb76
lea rax, [rsp + 0x90]
xor r9d, r9d
mov r8b, 2
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, r14
call fcn.1400fd940
mov ebx, dword [rsp + 0x90]
test ebx, ebx
jne 0x1400efd68
test esi, esi
je 0x1400efce7
mov rax, qword [r13 + 0x50]
lea r8, [rsp + 0x98]
xor r9d, r9d
mov r12d, dword [rax + 0x20]
mov rax, qword [r14]
bswap r12d
mov edx, r12d
mov rcx, rax
call qword [rax + 0x108]
mov ebx, eax
test eax, eax
jne 0x1400efbe3
mov rcx, qword [rsp + 0x98]
mov r15, qword [rcx + 0x10]
cmp r12d, dword [r15 + 4]
je 0x1400efbe1
mov rax, qword [rcx + 8]
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 + 4], r12d
mov byte [r15 + 9], al
xor ebx, ebx
test ebx, ebx
jne 0x1400efd68
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 0x1400efc13
mov ecx, 0x10f2e
call fcn.14010ec30
mov ebx, eax
jmp 0x1400efd68
lea eax, [rcx - 8]
cmp esi, eax
jae 0x1400efce7
mov rcx, qword [r15 + 0x70]
call fcn.1401260a0
mov ebx, eax
test eax, eax
jne 0x1400efd68
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 0x1400efc88
test byte [r14 + 0x26], 4
jne 0x1400efc88
mov rcx, qword [rdi + 0x70]
mov rdx, qword [rcx + 0x28]
cmp byte [rdx + 0x10], bl
jne 0x1400efc88
movzx eax, word [rcx + 0x34]
test al, 2
je 0x1400efc88
cmp dword [rdx + 0x80], ebx
jne 0x1400efc88
mov edx, 0xfffb
and ax, dx
or ax, 0x10
mov word [rcx + 0x34], ax
mov rsi, qword [r14 + 0x58]
xor ebx, ebx
test rsi, rsi
jne 0x1400efcce
mov r12d, dword [r14 + 0x3c]
mov ecx, 0x200
call fcn.140123530
mov rsi, rax
test rax, rax
je 0x1400efcbd
lea rcx, [rax + 4]
xor edx, edx
mov r8d, 0x1fc
call fcn.14018c010
mov dword [rsi], r12d
mov qword [r14 + 0x58], rsi
test rsi, rsi
jne 0x1400efcce
lea ebx, [rsi + 7]
jmp 0x1400efd68
cmp ebp, dword [rsi]
ja 0x1400efd68
mov edx, ebp
mov rcx, rsi
call fcn.140108f40
mov ebx, eax
jmp 0x1400efd68
test rdi, rdi
jne 0x1400efd3f
mov rax, qword [r14]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov edx, ebp
mov rcx, rax
call qword [rax + 0x108]
mov ebx, eax
test eax, eax
jne 0x1400efd3b
mov rcx, qword [rsp + 0x30]
mov rdi, qword [rcx + 0x10]
cmp ebp, dword [rdi + 4]
je 0x1400efd39
mov rax, qword [rcx + 8]
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 + 4], ebp
mov byte [rdi + 9], al
xor ebx, ebx
test ebx, ebx
jne 0x1400efd68
mov rcx, qword [rdi + 0x70]
call fcn.1401260a0
mov ebx, eax
test eax, eax
jne 0x1400efd68
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 + 0x40]
test rdi, rdi
je 0x1400efd75
mov byte [rdi], 0
mov rcx, rdi
call fcn.1400ff3f0
mov rcx, r15
call fcn.1400ff3f0
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
lea rax, [0x140219bf4]
mov r9d, 0x10ef8
lea r8, str.database_corruption
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, VariantTimeToDosDateTime
call fcn.1400d8200
mov eax, VariantTimeToDosDateTime
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret