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

Disassembly:
push rbp
mov rbp, rsp
push r15
mov r15, r9
push r14
push r13
mov r13, rcx
push r12
push rdi
push rsi
push rbx
mov ebx, edx
and rsp, 0xfffffffffffffff0
sub rsp, 0x50
mov qword [rsp + 0x48], r8
call fcn.14021f5a0
mov r14d, eax
test eax, eax
jne 0x14021f923
mov r12, qword [r13 + 0xa8]
mov r8d, ebx
mov rcx, r13
mov rdx, r12
call fcn.14021f200
mov rax, qword [rsp + 0x48]
lea r11, [r12 + 0x14]
movaps xmm0, xmmword [0x1403e9450]
mov qword [r12 + 0x1c], rax
mov qword [r12 + 0xc4], rax
movups xmmword [r12 + 0xd4], xmm0
test r15, r15
je 0x14021f7ea
test rax, rax
je 0x14021f6d9
xor r8d, r8d
mov rdx, r15
mov rcx, r13
mov qword [rsp + 0x40], r11
call fcn.1401438a0
mov r11, qword [rsp + 0x40]
test al, al
jne 0x14021f6d9
cmp byte [0x1403e8a08], 0
je 0x14021f6ce
mov rcx, r15
lea r9, str.bailout_overriding_meta__u_since_model_failed_freedb_maindb__s_check_for_txnid__lli_n
mov r8d, 0x3eb7
call fcn.14021c2a0
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x30], rax
lea rax, [0x1402b1509]
mov qword [rsp + 0x28], rax
lea rdx, str.mdbx_override_meta
mov ecx, 1
call fcn.14021c450
mov r14d, 0xffff87c5
jmp 0x14021f923
test byte [0x1403e8a09], 0x40
je 0x14021f6ea
mov rax, qword [r15]
mov qword [r12 + 0x14], rax
mov eax, dword [r15 + 0x10]
lea rsi, [r15 + 0x28]
mov ecx, 0x18
cmp qword [rsp + 0x48], 0
mov word [r12 + 0x24], ax
mov al, byte [r15 + 0x12]
mov byte [r12 + 0x26], al
mov al, byte [r15 + 0x13]
mov byte [r12 + 0x27], al
movups xmm1, xmmword [r15 + 0x14]
movups xmmword [r12 + 0x28], xmm1
mov eax, dword [r15 + 0x24]
mov dword [r12 + 0x38], eax
lea rax, [r12 + 0x3c]
mov rdi, rax
rep movsd dword [rdi], dword [rsi]
movups xmm2, xmmword [r15 + 0x88]
movups xmmword [r12 + 0x9c], xmm2
movups xmm3, xmmword [r15 + 0x98]
movups xmmword [r12 + 0xac], xmm3
mov rax, qword [r15 + 0xb8]
mov qword [r12 + 0xcc], rax
je 0x14021f7ea
cmp qword [r12 + 0x64], 0
jne 0x14021f77a
cmp dword [r12 + 0x44], 0xffffffff
jne 0x14021f78d
cmp qword [r12 + 0x94], 0
jne 0x14021f795
cmp dword [r12 + 0x74], 0xffffffff
je 0x14021f795
mov rax, qword [r15]
mov qword [r12 + 0x14], rax
xor r8d, r8d
mov rdx, r11
mov rcx, r13
mov qword [rsp + 0x40], r11
call fcn.1401438a0
mov r11, qword [rsp + 0x40]
test al, al
jne 0x14021f7ea
cmp byte [0x1403e8a08], 0
je 0x14021f6ce
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0x20], ebx
lea r9, str.bailout_overriding_meta__u_since_model_failed_freedb_maindb__s_check_for_txnid__lli_n
mov r8d, 0x3ecf
mov qword [rsp + 0x30], rax
lea rax, str.post
mov qword [rsp + 0x28], rax
jmp 0x14021f6bd
mov rdx, r11
mov r9d, ebx
mov r8, r12
mov rcx, r13
mov qword [r12 + 0xbc], 0xffffffffffffffff
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x48], r11
call fcn.14021cb60
mov r11, qword [rsp + 0x48]
inc eax
cmp eax, 1
ja 0x14021f6ce
test r15, r15
je 0x14021f843
mov r8d, 0xd0
mov rdx, r15
mov rcx, r11
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x14021f923
mov rdx, qword [r13 + 0x70]
mov rax, qword [rdx + 0x78]
inc rax
mov qword [rdx + 0x78], rax
test byte [r13 + 6], 8
je 0x14021f8d3
mov edx, dword [r12 + 0x38]
mov rcx, r13
lea r15, [r13 + 8]
mov r9d, 5
call fcn.14020e0e0
xor edx, edx
mov rcx, r15
mov r8, rax
call fcn.14021de30
mov r14d, eax
test eax, eax
jne 0x14021f923
movzx ecx, byte [r13 + 0x80]
mov eax, ebx
mov rsi, r12
shl rax, cl
add rax, qword [r13 + 8]
mov ecx, dword [r13 + 0x78]
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
lea edx, [rbx + 1]
mov rcx, r13
mov r9d, 5
call fcn.14020e0e0
lea rsp, [rbp - 0x38]
mov rcx, r15
xor edx, edx
pop rbx
mov r8, rax
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.14021de30
mov r15, qword [r13 + 0x38]
cmp r15, 0xffffffffffffffff
jne 0x14021f8e1
mov r15, qword [r13 + 0x10]
movzx ecx, byte [r13 + 0x80]
mov r9d, ebx
mov r8d, dword [r13 + 0x78]
mov rdx, r12
shl r9, cl
mov rcx, r15
call fcn.14021a0c0
test eax, eax
jne 0x14021f920
cmp r15, qword [r13 + 0x10]
jne 0x14021f923
lea rsp, [rbp - 0x38]
mov rcx, r15
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.14021bb30
mov r14d, eax
lea rsp, [rbp - 0x38]
mov eax, r14d
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret