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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xd8
mov rax, qword [0x14015d010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movzx edi, byte [rcx + 0x41]
xor esi, esi
inc edi
mov dword [rsp + 0x3c], esi
xor ebp, ebp
mov dword [rsp + 0x30], edi
mov rbx, rcx
mov dword [rsp + 0x40], ebp
cmp byte [rcx + 0x3f], sil
jne 0x14001c3be
mov rcx, qword [rcx + 8]
lea r9d, [rsi + 0xa]
mov r8d, 3
mov edx, edi
sub r8d, edi
mov rax, qword [rcx]
call qword [rax + 0x70]
test eax, eax
jne 0x14001ca15
xorps xmm0, xmm0
mov qword [rsp + 0x118], r14
movups xmmword [rbx + 0x48], xmm0
lea rdx, [rsp + 0x98]
movups xmmword [rbx + 0x58], xmm0
movups xmmword [rbx + 0x68], xmm0
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov r14d, eax
test eax, eax
jne 0x14001c9e9
cmp qword [rsp + 0x98], 0x20
mov qword [rsp + 0x108], r12
mov qword [rsp + 0xd0], r15
jle 0x14001c900
mov rcx, qword [rbx + 0x10]
lea r8d, [r14 + 0x20]
xor r9d, r9d
lea rdx, [rsp + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r14d, eax
test eax, eax
jne 0x14001c9d9
mov ecx, dword [rsp + 0xa0]
mov edi, dword [rsp + 0xa8]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap edi
mov dword [rsp + 0x54], edi
cmp eax, 0x377f0682
jne 0x14001c900
lea eax, [rdi - 1]
test edi, eax
jne 0x14001c900
lea eax, [rdi - 0x200]
cmp eax, 0xfe00
ja 0x14001c900
mov eax, dword [rsp + 0xac]
lea r12, [rbx + 0x60]
bswap eax
mov dword [rbx + 0x88], eax
lea r8, [rsp + 0xa0]
mov rax, qword [rsp + 0xb0]
and cl, 1
mov qword [rbx + 0x68], rax
mov r11d, 0xff00
mov byte [rbx + 0x55], cl
mov r10d, esi
mov dword [rbx + 0x38], edi
mov r9d, esi
jne 0x14001c4f0
nop word [rax + rax]
mov eax, dword [r8]
add eax, r10d
add r9d, eax
mov eax, dword [r8 + 4]
add eax, r9d
add r8, 8
add r10d, eax
lea rax, [rsp + 0xb8]
cmp r8, rax
jb 0x14001c4c0
jmp 0x14001c550
mov edx, dword [r8]
mov eax, edx
and eax, r11d
mov ecx, edx
shl ecx, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
and eax, r11d
shl ecx, 8
add eax, r10d
shr edx, 0x18
add eax, ecx
add edx, eax
add r9d, edx
mov edx, dword [r8 + 4]
mov eax, edx
mov ecx, edx
and eax, r11d
shl ecx, 0x10
add ecx, eax
add r8, 8
mov eax, edx
shl ecx, 8
shr eax, 8
and eax, r11d
shr edx, 0x18
add eax, r9d
add eax, ecx
add edx, eax
lea rax, [rsp + 0xb8]
add r10d, edx
cmp r8, rax
jb 0x14001c4f0
mov eax, dword [rsp + 0xb8]
bswap eax
mov dword [r12], r9d
mov dword [r12 + 4], r10d
cmp r9d, eax
jne 0x14001c900
mov eax, dword [rsp + 0xbc]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x14001c900
mov eax, dword [rsp + 0xa4]
bswap eax
cmp eax, 0x2de218
je 0x14001c5c0
lea rax, [0x14013ee14]
mov r14d, 0xe
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0xf5f7
lea r8, str.cannot_open_file
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140009750
jmp 0x14001c9d5
lea esi, [rdi + 0x18]
mov dword [rsp + 0x50], esi
call fcn.1400c4840
test eax, eax
jne 0x14001c93f
movsxd rsi, esi
mov qword [rsp + 0x78], rsi
lea rcx, [rsi + 0x8000]
call fcn.140006670
mov r15, rax
test rax, rax
je 0x14001c93f
add rax, 0x18
movsxd r8, edi
add r8, rax
mov qword [rsp + 0x110], r13
mov rax, qword [rsp + 0x98]
xor r13d, r13d
add rax, 0xffffffffffffffe0
mov qword [rsp + 0x58], r8
cqo
mov dword [rsp + 0x38], r13d
idiv rsi
mov r9, rax
mov qword [rsp + 0x88], rax
add eax, 0x1000
mov r10d, r9d
sub rax, 0xfdf
mov qword [rsp + 0x90], r10
shr rax, 0xc
xor edx, edx
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x48], rdx
nop dword [rax + rax]
mov eax, r13d
mov edi, r9d
shl eax, 0xc
mov ecx, eax
add rax, 0xfde
cmp r10, rax
jb 0x14001c67c
lea edi, [rcx + 0xfde]
mov dword [rsp + 0x34], edi
mov esi, 1
test r13d, r13d
je 0x14001c68d
lea esi, [rcx - 0x21]
lea rbp, [rbx + 0x30]
cmp dword [rbx + 0x28], r13d
jle 0x14001c6bb
mov rax, qword [rbp]
movsxd rcx, r13d
mov qword [rsp + 0x68], rbp
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x60], rcx
test rcx, rcx
je 0x14001c6bb
xor r14d, r14d
jmp 0x14001c6e7
lea r8, [rsp + 0x60]
mov edx, r13d
mov rcx, rbx
call fcn.14001bdd0
mov rcx, qword [rsp + 0x60]
mov r14d, eax
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rbp
test rcx, rcx
je 0x14001c88c
mov rax, qword [rbp]
mov qword [rdx + rax], r8
cmp esi, edi
ja 0x14001c81b
mov r13, qword [rsp + 0x78]
nop word [rax + rax]
mov rcx, qword [rbx + 0x10]
lea r9d, [rsi - 1]
mov r8d, dword [rsp + 0x50]
mov rdx, r15
imul r9, r13
mov r10, qword [rcx]
add r9, 0x20
call qword [r10 + 0x10]
mov r14d, eax
test eax, eax
jne 0x14001c807
mov rax, qword [rbx + 0x68]
cmp rax, qword [r15 + 8]
jne 0x14001c807
mov ebp, dword [r15]
bswap ebp
test ebp, ebp
je 0x14001c807
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.14001bf30
mov r8d, dword [rbx + 0x38]
lea rdx, [r15 + 0x18]
mov r9, r12
mov qword [rsp + 0x20], r12
mov ecx, edi
call fcn.14001bf30
mov eax, dword [r15 + 0x10]
bswap eax
cmp dword [r12], eax
jne 0x14001c803
mov eax, dword [r15 + 0x14]
bswap eax
cmp dword [r12 + 4], eax
jne 0x14001c803
mov edi, dword [r15 + 4]
mov r8d, ebp
mov edx, esi
mov rcx, rbx
bswap edi
call fcn.14001c1b0
mov r14d, eax
test eax, eax
jne 0x14001c803
test edi, edi
je 0x14001c7f3
mov dword [rbx + 0x5c], edi
mov edx, 0xff00
mov edi, dword [rsp + 0x54]
mov ecx, edi
movzx eax, di
mov dword [rbx + 0x58], esi
and ax, dx
sar ecx, 0x10
or cx, ax
mov word [rbx + 0x56], cx
mov eax, dword [r12]
mov dword [rsp + 0x3c], eax
mov eax, dword [rbx + 0x64]
mov dword [rsp + 0x40], eax
mov edi, dword [rsp + 0x34]
inc esi
cmp esi, edi
jbe 0x14001c710
jmp 0x14001c807
mov edi, dword [rsp + 0x34]
mov r13d, dword [rsp + 0x38]
mov rbp, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rbp]
mov r8d, 0x8000
mov qword [rdx + rax], rcx
xor eax, eax
test r13d, r13d
mov edx, 0x88
cmove eax, edx
mov edx, 0x7f78
cmove r8d, edx
mov rdx, qword [rsp + 0x58]
add rdx, rax
add rcx, rax
call fcn.1400ff4e0
cmp esi, edi
jbe 0x14001c88c
mov rdx, qword [rsp + 0x48]
inc r13d
mov r8, qword [rsp + 0x58]
add rdx, 8
mov r9, qword [rsp + 0x88]
mov r10, qword [rsp + 0x90]
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x48], rdx
cmp r13d, dword [rsp + 0x80]
jbe 0x14001c660
cmp dword [0x14015de40], 0
mov r13, qword [rsp + 0x110]
je 0x14001c8e6
mov rcx, qword [0x140163758]
test rcx, rcx
je 0x14001c8af
call qword [0x14015dec0]
mov rcx, r15
call qword [0x14015de78]
dec qword [0x1401634c8]
movsxd rcx, eax
sub qword [0x140163480], rcx
mov rcx, r15
call qword [0x14015de68]
mov rcx, qword [0x140163758]
test rcx, rcx
je 0x14001c8ef
call qword [0x14015ded0]
jmp 0x14001c8ef
mov rcx, r15
call qword [0x14015de68]
test r14d, r14d
jne 0x14001c9d5
mov esi, dword [rsp + 0x3c]
mov ebp, dword [rsp + 0x40]
mov rcx, rbx
mov dword [rbx + 0x60], esi
mov dword [rbx + 0x64], ebp
call fcn.14001c000
mov rax, qword [rbx + 0x30]
mov edi, 1
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 0x14001c94a
xor r14d, r14d
jmp 0x14001c968
mov r14d, 7
jmp 0x14001c9d5
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 0xa
mov rax, qword [rcx]
lea r8d, [r9 - 9]
call qword [rax + 0x70]
mov r14d, eax
test eax, eax
jne 0x14001c9a7
cmp edi, 1
jne 0x14001c97c
cmp dword [rbx + 0x58], 0
je 0x14001c97c
mov eax, dword [rbx + 0x58]
mov dword [r15 + 0x68], eax
jmp 0x14001c988
movsxd rax, edi
mov dword [r15 + rax*4 + 0x64], 0xffffffff
cmp byte [rbx + 0x3f], 0
jne 0x14001c9ac
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 9
mov rax, qword [rcx]
lea r8d, [r9 - 8]
call qword [rax + 0x70]
jmp 0x14001c9ac
cmp eax, 5
jne 0x14001c9d5
inc edi
cmp edi, 5
jl 0x14001c934
cmp dword [rbx + 0x5c], 0
je 0x14001c9d5
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.140009750
mov edi, dword [rsp + 0x30]
mov r12, qword [rsp + 0x108]
mov r15, qword [rsp + 0xd0]
cmp byte [rbx + 0x3f], 0
jne 0x14001ca0a
mov rcx, qword [rbx + 8]
mov r8d, 3
sub r8d, edi
mov r9d, 9
mov edx, edi
mov rax, qword [rcx]
call qword [rax + 0x70]
mov eax, r14d
mov r14, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400faff0
add rsp, 0xd8
pop rdi
pop rsi
pop rbp
pop rbx
ret