Function at 0x140224840
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.1402247f0
mov r14d, eax
test eax, eax
jne 0x140224b73
mov r12, qword [r13 + 0xa8]
mov r8d, ebx
mov rcx, r13
mov rdx, r12
call fcn.140224450
mov rax, qword [rsp + 0x48]
lea r11, [r12 + 0x14]
movaps xmm0, xmmword [0x1403ef470]
mov qword [r12 + 0x1c], rax
mov qword [r12 + 0xc4], rax
movups xmmword [r12 + 0xd4], xmm0
test r15, r15
je 0x140224a3a
test rax, rax
je 0x140224929
xor r8d, r8d
mov rdx, r15
mov rcx, r13
mov qword [rsp + 0x40], r11
call fcn.140149190
mov r11, qword [rsp + 0x40]
test al, al
jne 0x140224929
cmp byte [0x1403eea28], 0
je 0x14022491e
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.1402214f0
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x30], rax
lea rax, [0x1402b64e9]
mov qword [rsp + 0x28], rax
lea rdx, str.mdbx_override_meta
mov ecx, 1
call fcn.1402216a0
mov r14d, 0xffff87c5
jmp 0x140224b73
test byte [0x1403eea29], 0x40
je 0x14022493a
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 0x140224a3a
cmp qword [r12 + 0x64], 0
jne 0x1402249ca
cmp dword [r12 + 0x44], 0xffffffff
jne 0x1402249dd
cmp qword [r12 + 0x94], 0
jne 0x1402249e5
cmp dword [r12 + 0x74], 0xffffffff
je 0x1402249e5
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.140149190
mov r11, qword [rsp + 0x40]
test al, al
jne 0x140224a3a
cmp byte [0x1403eea28], 0
je 0x14022491e
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 0x14022490d
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.140221db0
mov r11, qword [rsp + 0x48]
inc eax
cmp eax, 1
ja 0x14022491e
test r15, r15
je 0x140224a93
mov r8d, 0xd0
mov rdx, r15
mov rcx, r11
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140224b73
mov rdx, qword [r13 + 0x70]
mov rax, qword [rdx + 0x78]
inc rax
mov qword [rdx + 0x78], rax
test byte [r13 + 6], 8
je 0x140224b23
mov edx, dword [r12 + 0x38]
mov rcx, r13
lea r15, [r13 + 8]
mov r9d, 5
call fcn.140213330
xor edx, edx
mov rcx, r15
mov r8, rax
call fcn.140223080
mov r14d, eax
test eax, eax
jne 0x140224b73
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.140213330
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.140223080
mov r15, qword [r13 + 0x38]
cmp r15, 0xffffffffffffffff
jne 0x140224b31
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.14021f310
test eax, eax
jne 0x140224b70
cmp r15, qword [r13 + 0x10]
jne 0x140224b73
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.140220d80
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