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

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x140209000]
xor rax, rsp
mov qword [rsp + 0xc8], rax
movzx r15d, byte [rcx + 0x41]
xor esi, esi
inc r15d
mov dword [rsp + 0x3c], esi
xor r12d, r12d
mov dword [rsp + 0x54], r15d
mov edi, 3
mov dword [rsp + 0x40], r12d
sub edi, r15d
lea r14d, [rsi + 1]
mov rbx, rcx
cmp byte [rcx + 0x3f], sil
jne 0x1400b51f7
mov rcx, qword [rcx + 8]
lea r9d, [rsi + 0xa]
mov r8d, edi
mov edx, r15d
mov rax, qword [rcx]
call qword [rax + 0x70]
test eax, eax
jne 0x1400b583a
mov ecx, edi
mov eax, r14d
shl eax, cl
lea ecx, [r15 + 8]
dec eax
shl eax, cl
or dword [rbx + 0x8c], eax
xorps xmm0, xmm0
lea rdx, [rsp + 0xa0]
movups xmmword [rbx + 0x48], xmm0
movups xmmword [rbx + 0x58], xmm0
movups xmmword [rbx + 0x68], xmm0
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov r15d, eax
test eax, eax
jne 0x1400b57f9
cmp qword [rsp + 0xa0], 0x20
mov qword [rsp + 0x108], rbp
mov qword [rsp + 0x110], r13
jle 0x1400b56f5
mov rcx, qword [rbx + 0x10]
lea r8d, [r15 + 0x20]
xor r9d, r9d
lea rdx, [rsp + 0xa8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r15d, eax
test eax, eax
jne 0x1400b57e9
mov ecx, dword [rsp + 0xa8]
mov ebp, dword [rsp + 0xb0]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap ebp
mov dword [rsp + 0x50], ebp
cmp eax, 0x377f0682
jne 0x1400b56f5
lea eax, [rbp - 1]
test ebp, eax
jne 0x1400b56f5
lea eax, [rbp - 0x200]
cmp eax, 0xfe00
ja 0x1400b56f5
mov eax, dword [rsp + 0xb4]
lea r13, [rbx + 0x60]
bswap eax
and cl, r14b
mov dword [rbx + 0x88], eax
mov rax, qword [rsp + 0xb8]
mov edx, esi
mov byte [rbx + 0x55], cl
mov r8d, edx
mov qword [rbx + 0x68], rax
lea rcx, [rsp + 0xa8]
mov dword [rbx + 0x38], ebp
je 0x1400b5310
nop
mov eax, dword [rcx]
bswap eax
add eax, r8d
add edx, eax
mov eax, dword [rcx + 4]
bswap eax
add eax, edx
add rcx, 8
add r8d, eax
lea rax, [rsp + 0xc0]
cmp rcx, rax
jb 0x1400b52e0
jmp 0x1400b5330
mov eax, dword [rcx]
add eax, r8d
add edx, eax
mov eax, dword [rcx + 4]
add eax, edx
add rcx, 8
add r8d, eax
lea rax, [rsp + 0xc0]
cmp rcx, rax
jb 0x1400b5310
mov eax, dword [rsp + 0xc0]
bswap eax
mov dword [r13], edx
mov dword [r13 + 4], r8d
cmp edx, eax
jne 0x1400b56f5
mov eax, dword [rsp + 0xc4]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x1400b56f5
mov eax, dword [rsp + 0xac]
bswap eax
cmp eax, 0x2de218
je 0x1400b539e
lea rax, [0x1401e7a54]
mov r15d, 0xe
mov ecx, r15d
mov qword [rsp + 0x20], rax
mov r9d, 0x101a8
lea r8, str.cannot_open_file
lea rdx, str._s_at_line__d_of___.10s_
call fcn.1400a0cd0
jmp 0x1400b57e9
lea eax, [rbp + 0x18]
mov dword [rsp + 0x34], eax
movsxd rsi, eax
call fcn.140162f30
test eax, eax
je 0x1400b53c3
mov qword [rbx + 0x90], r12
mov r15d, 7
jmp 0x1400b57e9
lea rcx, [rsi + 0x8000]
call fcn.14009dae0
mov qword [rbx + 0x90], rax
mov rdi, rax
test rax, rax
jne 0x1400b53e7
lea r15d, [rax + 7]
jmp 0x1400b57e9
add rax, 0x18
movsxd rcx, ebp
add rcx, rax
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xa0]
xor ebp, ebp
add rax, 0xffffffffffffffe0
mov qword [rsp + 0x68], rcx
cqo
mov dword [rsp + 0x38], ebp
idiv rsi
mov qword [rsp + 0x48], rbp
mov rdx, rax
mov qword [rsp + 0x88], rax
add eax, 0x1000
mov ecx, edx
sub rax, 0xfdf
mov qword [rsp + 0x90], rcx
shr rax, 0xc
mov qword [rsp + 0x80], rax
nop dword [rax]
nop word [rax + rax]
mov eax, ebp
mov r12d, edx
shl eax, 0xc
mov esi, eax
add rax, 0xfde
cmp rcx, rax
jb 0x1400b546c
lea r12d, [rsi + 0xfde]
mov dword [rsp + 0x30], r12d
test ebp, ebp
jne 0x1400b547a
mov esi, r14d
jmp 0x1400b547d
add esi, 0xffffffdf
call fcn.1400b4ac0
cmp dword [rbx + 0x28], ebp
jle 0x1400b54a6
mov rax, qword [rbx + 0x30]
movsxd rcx, ebp
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
test rcx, rcx
je 0x1400b54a6
xor r15d, r15d
jmp 0x1400b54c2
lea r8, [rsp + 0x58]
mov edx, ebp
mov rcx, rbx
call fcn.1400b4b30
mov rcx, qword [rsp + 0x58]
mov r15d, eax
mov qword [rsp + 0x60], rcx
test rcx, rcx
je 0x1400b567d
mov rax, qword [rbx + 0x30]
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x68]
mov dword [rbx + 0xa0], ebp
mov qword [rbx + 0x98], rcx
mov qword [rdx + rax], r8
cmp esi, r12d
ja 0x1400b560a
movsxd r8, dword [rsp + 0x34]
mov rdx, r8
mov qword [rsp + 0x78], rdx
mov rcx, qword [rbx + 0x10]
lea r9d, [rsi - 1]
imul r9, rdx
mov r10, qword [rcx]
mov rdx, rdi
add r9, 0x20
call qword [r10 + 0x10]
mov r15d, eax
test eax, eax
jne 0x1400b55f1
mov rax, qword [rbx + 0x68]
cmp rax, qword [rdi + 8]
jne 0x1400b55f1
mov ebp, dword [rdi]
bswap ebp
test ebp, ebp
je 0x1400b55f1
xor ecx, ecx
mov qword [rsp + 0x20], r13
cmp byte [rbx + 0x55], cl
lea r8d, [r15 + 8]
mov r9, r13
mov rdx, rdi
sete cl
call fcn.1400b4cb0
mov r8d, dword [rbx + 0x38]
mov r9, r13
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x20], r13
call fcn.1400b4cb0
mov ecx, dword [rdi + 0x10]
bswap ecx
cmp dword [r13], ecx
jne 0x1400b55f1
mov eax, dword [rdi + 0x14]
bswap eax
cmp dword [r13 + 4], eax
jne 0x1400b55f1
mov r14d, dword [rdi + 4]
mov r8d, ebp
mov edx, esi
mov rcx, rbx
bswap r14d
call fcn.1400b4fc0
mov r15d, eax
test eax, eax
jne 0x1400b55f1
test r14d, r14d
je 0x1400b55d5
mov eax, dword [rsp + 0x50]
mov edx, 0xff00
mov ecx, eax
mov dword [rbx + 0x58], esi
and ax, dx
mov dword [rbx + 0x5c], r14d
sar ecx, 0x10
or cx, ax
mov word [rbx + 0x56], cx
mov eax, dword [r13]
mov dword [rsp + 0x3c], eax
mov eax, dword [rbx + 0x64]
mov dword [rsp + 0x40], eax
mov r12d, dword [rsp + 0x30]
inc esi
mov rdx, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x34]
cmp esi, r12d
jbe 0x1400b5500
jmp 0x1400b55f6
mov r12d, dword [rsp + 0x30]
mov ebp, dword [rsp + 0x38]
mov r14d, 1
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rbx + 0x30]
mov r8d, 0x8000
mov qword [rdx + rax], rcx
xor eax, eax
test ebp, ebp
mov dword [rbx + 0xa0], eax
mov edx, 0x88
mov qword [rbx + 0x98], rax
cmove eax, edx
mov edx, 0x7f78
cmove r8d, edx
mov rdx, qword [rsp + 0x68]
add rdx, rax
add rcx, rax
call sub.VCRUNTIME140.dll_memcpy
call fcn.1400b4ac0
cmp esi, r12d
jbe 0x1400b567d
add qword [rsp + 0x48], 8
inc ebp
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x38], ebp
cmp ebp, dword [rsp + 0x80]
jbe 0x1400b5450
mov qword [rbx + 0x90], 0
cmp dword [0x140209370], 0
je 0x1400b56da
mov rcx, qword [0x140215dc8]
test rcx, rcx
je 0x1400b56a3
call qword [0x1402093f0]
mov rcx, rdi
call qword [0x1402093a8]
dec qword [0x140215bb8]
mov rcx, rdi
movsxd rdx, eax
sub qword [0x140215b70], rdx
call qword [0x140209398]
mov rcx, qword [0x140215dc8]
test rcx, rcx
je 0x1400b56e3
call qword [0x140209400]
jmp 0x1400b56e3
mov rcx, rdi
call qword [0x140209398]
test r15d, r15d
jne 0x1400b57e9
mov esi, dword [rsp + 0x3c]
mov r12d, dword [rsp + 0x40]
mov rcx, rbx
mov dword [rbx + 0x60], esi
mov dword [rbx + 0x64], r12d
call fcn.1400b4e00
call fcn.1400b4ac0
mov rax, qword [rbx + 0x30]
mov edi, r14d
mov rsi, qword [rax]
mov dword [rsi + 0x60], 0
mov eax, dword [rbx + 0x58]
mov dword [rsi + 0x80], eax
mov dword [rsi + 0x64], 0
nop word [rax + rax]
cmp byte [rbx + 0x3f], 0
je 0x1400b573b
xor r15d, r15d
jmp 0x1400b5766
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 0xa
mov r8d, r14d
mov rax, qword [rcx]
call qword [rax + 0x70]
mov r15d, eax
test eax, eax
jne 0x1400b57b7
lea ecx, [rdi + 0xb]
mov eax, r14d
shl eax, cl
or dword [rbx + 0x8c], eax
cmp edi, 1
jne 0x1400b5779
cmp dword [rbx + 0x58], 0
je 0x1400b5779
mov eax, dword [rbx + 0x58]
mov dword [rsi + 0x68], eax
jmp 0x1400b5784
movsxd rax, edi
mov dword [rsi + rax*4 + 0x64], 0xffffffff
call fcn.1400b4ac0
cmp byte [rbx + 0x3f], 0
jne 0x1400b57bc
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 9
mov r8d, r14d
mov rax, qword [rcx]
call qword [rax + 0x70]
lea ecx, [rdi + 0xb]
mov eax, r14d
shl eax, cl
not eax
and dword [rbx + 0x8c], eax
jmp 0x1400b57bc
cmp eax, 5
jne 0x1400b57e9
inc edi
cmp edi, 5
jl 0x1400b5730
cmp dword [rbx + 0x5c], 0
je 0x1400b57e9
mov r9, qword [rbx + 0x80]
lea rdx, str.recovered__d_frames_from_WAL_file__s
mov r8d, dword [rbx + 0x58]
mov ecx, 0x11b
call fcn.1400a0cd0
mov rbp, qword [rsp + 0x108]
mov r13, qword [rsp + 0x110]
mov edi, dword [rsp + 0x54]
mov esi, 3
sub esi, edi
cmp byte [rbx + 0x3f], 0
jne 0x1400b5837
mov rcx, qword [rbx + 8]
mov r9d, 9
mov r8d, esi
mov edx, edi
mov rax, qword [rcx]
call qword [rax + 0x70]
mov ecx, esi
shl r14d, cl
lea ecx, [rdi + 8]
dec r14d
shl r14d, cl
not r14d
and dword [rbx + 0x8c], r14d
mov eax, r15d
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1401981a0
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret