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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x180167010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movzx eax, byte [rcx + 0x41]
mov rbx, rcx
inc eax
mov ecx, 3
sub ecx, eax
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x50], ecx
mov r8d, ecx
xor edi, edi
xor esi, esi
mov rcx, rbx
mov dword [rsp + 0x38], edi
mov edx, eax
mov dword [rsp + 0x3c], esi
call fcn.18006f740
test eax, eax
jne 0x18007006f
xorps xmm0, xmm0
mov qword [rsp + 0x108], r13
movups xmmword [rbx + 0x48], xmm0
lea rdx, [rsp + 0x88]
mov qword [rsp + 0xc8], r14
movups xmmword [rbx + 0x58], xmm0
movups xmmword [rbx + 0x68], xmm0
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x30]
lea r13d, [rdi + 1]
mov r14d, eax
test eax, eax
jne 0x180070021
cmp qword [rsp + 0x88], 0x20
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], r12
mov qword [rsp + 0xc0], r15
jle 0x18006ff19
mov rcx, qword [rbx + 0x10]
lea r8d, [rdi + 0x20]
xor r9d, r9d
lea rdx, [rsp + 0x90]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r14d, eax
test eax, eax
jne 0x180070009
mov ecx, dword [rsp + 0x90]
mov ebp, dword [rsp + 0x98]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap ebp
mov dword [rsp + 0x4c], ebp
cmp eax, 0x377f0682
jne 0x18006ff19
lea eax, [rbp - 1]
test ebp, eax
jne 0x18006ff19
lea eax, [rbp - 0x200]
cmp eax, 0xfe00
ja 0x18006ff19
mov eax, dword [rsp + 0x9c]
lea r12, [rbx + 0x60]
and cl, r13b
mov dword [rbx + 0x38], ebp
bswap eax
movzx ecx, cl
lea r8d, [rdi + 0x18]
mov dword [rbx + 0x88], eax
lea rdx, [rsp + 0x90]
mov rax, qword [rsp + 0xa0]
xor r9d, r9d
mov byte [rbx + 0x55], cl
xor ecx, r13d
mov qword [rbx + 0x68], rax
mov qword [rsp + 0x20], r12
call fcn.18006f500
mov eax, dword [rsp + 0xa8]
bswap eax
cmp dword [r12], eax
jne 0x18006ff19
mov eax, dword [rsp + 0xac]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x18006ff19
mov eax, dword [rsp + 0x94]
bswap eax
cmp eax, 0x2de218
je 0x18006fc32
lea rax, [0x18014dba4]
mov r14d, 0xe
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x10342
lea r8, str.cannot_open_file
lea rdx, str._s_at_line__d_of___.10s_
call fcn.18005de90
jmp 0x180070009
lea edi, [rbp + 0x18]
mov dword [rsp + 0x48], edi
call fcn.18011add0
test eax, eax
je 0x18006fc54
mov qword [rbx + 0x90], rsi
mov r14d, 7
jmp 0x180070009
movsxd rcx, edi
add rcx, 0x8000
call fcn.18005aba0
mov qword [rbx + 0x90], rax
mov r15, rax
test rax, rax
jne 0x18006fc7b
lea r14d, [rax + 7]
jmp 0x180070009
add rax, 0x18
movsxd rcx, ebp
add rcx, rax
mov qword [rsp + 0x40], rsi
mov rax, qword [rsp + 0x88]
add rax, 0xffffffffffffffe0
mov qword [rsp + 0x68], rcx
cqo
movsxd rcx, edi
idiv rcx
xor edi, edi
mov rdx, rax
mov qword [rsp + 0x78], rax
add eax, 0x1000
mov r8d, edx
sub rax, 0xfdf
mov dword [rsp + 0x34], edi
shr rax, 0xc
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x80], r8
mov eax, edi
mov ebp, edx
shl eax, 0xc
mov ecx, eax
add rax, 0xfde
cmp r8, rax
jb 0x18006fcea
lea ebp, [rcx + 0xfde]
mov dword [rsp + 0x30], ebp
mov esi, r13d
test edi, edi
je 0x18006fcf8
lea esi, [rcx - 0x21]
call fcn.18006f320
cmp dword [rbx + 0x28], edi
jle 0x18006fd21
mov rax, qword [rbx + 0x30]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
test rcx, rcx
je 0x18006fd21
xor r14d, r14d
jmp 0x18006fd3d
lea r8, [rsp + 0x58]
mov edx, edi
mov rcx, rbx
call fcn.18006f390
mov rcx, qword [rsp + 0x58]
mov r14d, eax
mov qword [rsp + 0x60], rcx
test rcx, rcx
je 0x18006fef5
mov rax, qword [rbx + 0x30]
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x68]
mov dword [rbx + 0xa0], edi
mov qword [rbx + 0x98], rcx
mov qword [rdx + rax], r8
cmp esi, ebp
ja 0x18006fe89
movsxd r13, dword [rsp + 0x48]
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbx + 0x10]
lea r9d, [rsi - 1]
imul r9, r13
mov r10, qword [rcx]
mov r8d, r13d
add r9, 0x20
mov rdx, r15
call qword [r10 + 0x10]
mov r14d, eax
test eax, eax
jne 0x18006fe75
mov rax, qword [rbx + 0x68]
cmp rax, qword [r15 + 8]
jne 0x18006fe75
mov ebp, dword [r15]
bswap ebp
test ebp, ebp
je 0x18006fe71
xor edi, edi
mov qword [rsp + 0x20], r12
cmp byte [rbx + 0x55], dil
lea r8d, [r14 + 8]
mov r9, r12
mov rdx, r15
sete dil
mov ecx, edi
call fcn.18006f500
mov r8d, dword [rbx + 0x38]
lea rdx, [r15 + 0x18]
mov r9, r12
mov qword [rsp + 0x20], r12
mov ecx, edi
call fcn.18006f500
mov eax, dword [r15 + 0x10]
bswap eax
cmp dword [r12], eax
jne 0x18006fe71
mov eax, dword [r15 + 0x14]
bswap eax
cmp dword [r12 + 4], eax
jne 0x18006fe71
mov edi, dword [r15 + 4]
mov r8d, ebp
mov edx, esi
mov rcx, rbx
bswap edi
call fcn.18006f8c0
mov r14d, eax
test eax, eax
jne 0x18006fe71
test edi, edi
je 0x18006fe61
mov ebp, dword [rsp + 0x4c]
mov edx, 0xff00
movzx eax, bp
mov dword [rbx + 0x58], esi
and ax, dx
mov dword [rbx + 0x5c], edi
mov ecx, ebp
sar ecx, 0x10
or cx, ax
mov word [rbx + 0x56], cx
mov eax, dword [r12]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 0x64]
mov dword [rsp + 0x3c], eax
mov ebp, dword [rsp + 0x30]
inc esi
cmp esi, ebp
jbe 0x18006fd80
jmp 0x18006fe75
mov ebp, dword [rsp + 0x30]
mov edi, dword [rsp + 0x34]
mov r13d, 1
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rbx + 0x30]
mov r8d, 0x8000
mov qword [rdx + rax], rcx
xor eax, eax
test edi, edi
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.18006f320
cmp esi, ebp
jbe 0x18006fef5
add qword [rsp + 0x40], 8
inc edi
mov rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
mov dword [rsp + 0x34], edi
cmp edi, dword [rsp + 0x70]
jbe 0x18006fcd0
mov rcx, r15
mov qword [rbx + 0x90], 0
call fcn.18005ad90
test r14d, r14d
jne 0x180070009
mov edi, dword [rsp + 0x38]
mov esi, dword [rsp + 0x3c]
mov rcx, rbx
mov dword [rbx + 0x60], edi
mov dword [rbx + 0x64], esi
call fcn.18006f6a0
call fcn.18006f320
mov rax, qword [rbx + 0x30]
mov edi, r13d
mov r15, qword [rax]
mov dword [r15 + 0x60], 0
mov eax, dword [rbx + 0x58]
mov dword [r15 + 0x80], eax
mov dword [r15 + 0x64], 0
cmp byte [rbx + 0x3f], 0
je 0x18006ff5b
xor r14d, r14d
jmp 0x18006ff86
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 0xa
mov r8d, r13d
mov rax, qword [rcx]
call qword [rax + 0x70]
mov r14d, eax
test eax, eax
jne 0x18006ffd7
lea ecx, [rdi + 0xb]
mov eax, r13d
shl eax, cl
or dword [rbx + 0x8c], eax
cmp edi, 1
jne 0x18006ff98
mov eax, dword [rbx + 0x58]
test eax, eax
je 0x18006ff98
mov dword [r15 + 0x68], eax
jmp 0x18006ffa4
movsxd rax, edi
mov dword [r15 + rax*4 + 0x64], 0xffffffff
call fcn.18006f320
cmp byte [rbx + 0x3f], 0
jne 0x18006ffdc
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 9
mov r8d, r13d
mov rax, qword [rcx]
call qword [rax + 0x70]
lea ecx, [rdi + 0xb]
mov eax, r13d
shl eax, cl
not eax
and dword [rbx + 0x8c], eax
jmp 0x18006ffdc
cmp eax, 5
jne 0x180070009
inc edi
cmp edi, 5
jl 0x18006ff50
cmp dword [rbx + 0x5c], 0
je 0x180070009
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.18005de90
mov r12, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov r15, qword [rsp + 0xc0]
cmp byte [rbx + 0x3f], 0
jne 0x18007005c
mov rcx, qword [rbx + 8]
mov r9d, 9
mov edi, dword [rsp + 0x54]
mov edx, edi
mov r8d, dword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x70]
mov ecx, dword [rsp + 0x50]
shl r13d, cl
lea ecx, [rdi + 8]
dec r13d
shl r13d, cl
not r13d
and dword [rbx + 0x8c], r13d
mov r13, qword [rsp + 0x108]
mov eax, r14d
mov r14, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18012be40
add rsp, 0xd0
pop rdi
pop rsi
pop rbx
ret