Function at 0x1402218d0
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.140221880
mov r14d, eax
test eax, eax
jne 0x140221c03
mov r12, qword [r13 + 0xa8]
mov r8d, ebx
mov rcx, r13
mov rdx, r12
call fcn.1402214e0
mov rax, qword [rsp + 0x48]
lea r11, [r12 + 0x14]
movaps xmm0, xmmword [0x1403ec470]
mov qword [r12 + 0x1c], rax
mov qword [r12 + 0xc4], rax
movups xmmword [r12 + 0xd4], xmm0
test r15, r15
je 0x140221aca
test rax, rax
je 0x1402219b9
xor r8d, r8d
mov rdx, r15
mov rcx, r13
mov qword [rsp + 0x40], r11
call fcn.140146a30
mov r11, qword [rsp + 0x40]
test al, al
jne 0x1402219b9
cmp byte [0x1403eba28], 0
je 0x1402219ae
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.14021e580
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x30], rax
lea rax, [0x1402b2ea9]
mov qword [rsp + 0x28], rax
lea rdx, str.mdbx_override_meta
mov ecx, 1
call fcn.14021e730
mov r14d, 0xffff87c5
jmp 0x140221c03
test byte [0x1403eba29], 0x40
je 0x1402219ca
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 0x140221aca
cmp qword [r12 + 0x64], 0
jne 0x140221a5a
cmp dword [r12 + 0x44], 0xffffffff
jne 0x140221a6d
cmp qword [r12 + 0x94], 0
jne 0x140221a75
cmp dword [r12 + 0x74], 0xffffffff
je 0x140221a75
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.140146a30
mov r11, qword [rsp + 0x40]
test al, al
jne 0x140221aca
cmp byte [0x1403eba28], 0
je 0x1402219ae
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 0x14022199d
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.14021ee40
mov r11, qword [rsp + 0x48]
inc eax
cmp eax, 1
ja 0x1402219ae
test r15, r15
je 0x140221b23
mov r8d, 0xd0
mov rdx, r15
mov rcx, r11
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140221c03
mov rdx, qword [r13 + 0x70]
mov rax, qword [rdx + 0x78]
inc rax
mov qword [rdx + 0x78], rax
test byte [r13 + 6], 8
je 0x140221bb3
mov edx, dword [r12 + 0x38]
mov rcx, r13
lea r15, [r13 + 8]
mov r9d, 5
call fcn.1402103c0
xor edx, edx
mov rcx, r15
mov r8, rax
call fcn.140220110
mov r14d, eax
test eax, eax
jne 0x140221c03
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.1402103c0
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.140220110
mov r15, qword [r13 + 0x38]
cmp r15, 0xffffffffffffffff
jne 0x140221bc1
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.14021c3a0
test eax, eax
jne 0x140221c00
cmp r15, qword [r13 + 0x10]
jne 0x140221c03
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.14021de10
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