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

Disassembly:
push rbx
push rbp
push rdi
push r14
sub rsp, 0xc8
mov rax, qword [0x180182008]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movzx r14d, byte [rcx + 0x41]
xor edi, edi
inc r14d
mov dword [rsp + 0x40], edi
xor ebp, ebp
mov dword [rsp + 0x30], r14d
mov rbx, rcx
mov dword [rsp + 0x44], ebp
cmp byte [rcx + 0x3f], dil
jne 0x18003bb93
mov rcx, qword [rcx + 8]
lea r9d, [rdi + 0xa]
mov r8d, 3
mov edx, r14d
sub r8d, r14d
mov rax, qword [rcx]
call qword [rax + 0x70]
test eax, eax
jne 0x18003c17d
xorps xmm0, xmm0
mov qword [rsp + 0xf8], rsi
movups xmmword [rbx + 0x48], xmm0
lea rdx, [rsp + 0x60]
movups xmmword [rbx + 0x58], xmm0
movups xmmword [rbx + 0x68], xmm0
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov esi, eax
test eax, eax
jne 0x18003c151
cmp qword [rsp + 0x60], 0x20
mov qword [rsp + 0x100], r12
mov qword [rsp + 0xc0], r15
jle 0x18003c06b
mov rcx, qword [rbx + 0x10]
lea r8d, [rsi + 0x20]
xor r9d, r9d
lea rdx, [rsp + 0x90]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov esi, eax
test eax, eax
jne 0x18003c141
mov ecx, dword [rsp + 0x90]
mov r14d, dword [rsp + 0x98]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap r14d
mov dword [rsp + 0x50], r14d
cmp eax, 0x377f0682
jne 0x18003c06b
lea eax, [r14 - 1]
test r14d, eax
jne 0x18003c06b
lea eax, [r14 - 0x200]
cmp eax, 0xfe00
ja 0x18003c06b
mov eax, dword [rsp + 0x9c]
lea r12, [rbx + 0x60]
bswap eax
mov dword [rbx + 0x88], eax
lea r8, [rsp + 0x90]
mov rax, qword [rsp + 0xa0]
and cl, 1
mov qword [rbx + 0x68], rax
mov r11d, 0xff00
mov byte [rbx + 0x55], cl
mov r10d, edi
mov dword [rbx + 0x38], r14d
mov r9d, edi
jne 0x18003bcc0
nop dword [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 + 0xa8]
cmp r8, rax
jb 0x18003bc90
jmp 0x18003bd20
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 + 0xa8]
add r10d, edx
cmp r8, rax
jb 0x18003bcc0
mov eax, dword [rsp + 0xa8]
bswap eax
mov dword [r12], r9d
mov dword [r12 + 4], r10d
cmp r9d, eax
jne 0x18003c06b
mov eax, dword [rsp + 0xac]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x18003c06b
mov eax, dword [rsp + 0x94]
bswap eax
cmp eax, 0x2de218
je 0x18003bd8e
lea rax, [0x180161dd4]
mov esi, 0xe
mov ecx, esi
mov qword [rsp + 0x20], rax
mov r9d, 0xfc08
lea r8, str.cannot_open_file
lea rdx, str._s_at_line__d_of___.10s_
call fcn.18002b870
jmp 0x18003c13c
lea eax, [r14 + 0x18]
mov dword [rsp + 0x38], eax
call fcn.1800e0910
test eax, eax
jne 0x18003c0aa
movsxd rdi, r14d
add rdi, 0x18
lea rcx, [rdi + 0x8000]
call fcn.180028660
mov r15, rax
test rax, rax
je 0x18003c0aa
add rax, 0x18
movsxd r9, r14d
add r9, rax
mov qword [rsp + 0x108], r13
mov rax, qword [rsp + 0x60]
xor r13d, r13d
add rax, 0xffffffffffffffe0
mov qword [rsp + 0x58], r9
cqo
mov dword [rsp + 0x3c], r13d
idiv rdi
mov r10, rax
mov qword [rsp + 0x80], rax
add eax, 0x1000
mov r11d, r10d
sub rax, 0xfdf
mov qword [rsp + 0x88], r11
shr rax, 0xc
xor r8d, r8d
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], r8
nop dword [rax]
nop word [rax + rax]
mov eax, r13d
mov edi, r10d
shl eax, 0xc
mov ebp, 1
mov edx, eax
lea rcx, [rax + 0xfde]
add eax, 0xfde
cmp r11, rcx
cmovae edi, eax
mov dword [rsp + 0x34], edi
test r13d, r13d
je 0x18003be5e
lea ebp, [rdx - 0x21]
cmp dword [rbx + 0x28], r13d
jle 0x18003be82
mov rax, qword [rbx + 0x30]
movsxd rcx, r13d
mov r14, qword [rax + rcx*8]
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x68], r14
test r14, r14
je 0x18003be82
xor esi, esi
jmp 0x18003bea8
lea r8, [rsp + 0x68]
mov edx, r13d
mov rcx, rbx
call fcn.18003b5c0
mov r14, qword [rsp + 0x68]
mov esi, eax
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x58]
mov qword [rsp + 0x70], r14
test r14, r14
je 0x18003c04b
mov rax, qword [rbx + 0x30]
mov qword [r8 + rax], r9
cmp ebp, edi
ja 0x18003bfe0
movsxd rdx, dword [rsp + 0x38]
mov r13, rdx
nop dword [rax]
mov rcx, qword [rbx + 0x10]
lea r9d, [rbp - 1]
imul r9, r13
mov r10, qword [rcx]
mov r8d, edx
add r9, 0x20
mov rdx, r15
call qword [r10 + 0x10]
mov esi, eax
test eax, eax
jne 0x18003bfcc
mov rax, qword [rbx + 0x68]
cmp rax, qword [r15 + 8]
jne 0x18003bfcc
mov r14d, dword [r15]
bswap r14d
test r14d, r14d
je 0x18003bfcc
xor edi, edi
mov qword [rsp + 0x20], r12
cmp byte [rbx + 0x55], dil
lea r8d, [rsi + 8]
mov r9, r12
mov rdx, r15
sete dil
mov ecx, edi
call fcn.18003b710
mov r8d, dword [rbx + 0x38]
lea rdx, [r15 + 0x18]
mov r9, r12
mov qword [rsp + 0x20], r12
mov ecx, edi
call fcn.18003b710
mov eax, dword [r15 + 0x10]
bswap eax
cmp dword [r12], eax
jne 0x18003bfc8
mov eax, dword [r15 + 0x14]
bswap eax
cmp dword [r12 + 4], eax
jne 0x18003bfc8
mov edi, dword [r15 + 4]
mov r8d, r14d
mov edx, ebp
mov rcx, rbx
bswap edi
call fcn.18003b990
mov esi, eax
test eax, eax
jne 0x18003bfc8
test edi, edi
je 0x18003bfb4
mov r14d, dword [rsp + 0x50]
mov edx, 0xff00
movzx eax, r14w
mov dword [rbx + 0x58], ebp
and ax, dx
mov dword [rbx + 0x5c], edi
mov ecx, r14d
sar ecx, 0x10
or cx, ax
mov word [rbx + 0x56], cx
mov eax, dword [r12]
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 0x64]
mov dword [rsp + 0x44], eax
mov edi, dword [rsp + 0x34]
inc ebp
mov edx, dword [rsp + 0x38]
cmp ebp, edi
jbe 0x18003bed0
jmp 0x18003bfcc
mov edi, dword [rsp + 0x34]
mov r13d, dword [rsp + 0x3c]
mov r14, qword [rsp + 0x70]
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x58]
mov rax, qword [rbx + 0x30]
mov ecx, 0x88
mov qword [r8 + rax], r14
xor eax, eax
test r13d, r13d
mov r8d, 0x8000
cmove eax, ecx
mov ecx, 0x7f78
cmove r8d, ecx
lea rdx, [rax + r9]
lea rcx, [rax + r14]
call fcn.180133760
cmp ebp, edi
jbe 0x18003c04b
mov r8, qword [rsp + 0x48]
inc r13d
mov r9, qword [rsp + 0x58]
add r8, 8
mov r10, qword [rsp + 0x80]
mov r11, qword [rsp + 0x88]
mov dword [rsp + 0x3c], r13d
mov qword [rsp + 0x48], r8
cmp r13d, dword [rsp + 0x78]
jbe 0x18003be30
mov rcx, r15
call fcn.180028850
mov r13, qword [rsp + 0x108]
test esi, esi
jne 0x18003c13c
mov edi, dword [rsp + 0x40]
mov ebp, dword [rsp + 0x44]
mov rcx, rbx
mov dword [rbx + 0x60], edi
mov dword [rbx + 0x64], ebp
call fcn.18003b7e0
mov rax, qword [rbx + 0x30]
mov edi, 1
mov r14, qword [rax]
mov dword [r14 + 0x60], 0
mov eax, dword [rbx + 0x58]
mov dword [r14 + 0x80], eax
mov dword [r14 + 0x64], 0
nop
cmp byte [rbx + 0x3f], 0
je 0x18003c0b4
xor esi, esi
jmp 0x18003c0d1
mov esi, 7
jmp 0x18003c13c
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 esi, eax
test eax, eax
jne 0x18003c10e
cmp edi, 1
jne 0x18003c0e3
mov eax, dword [rbx + 0x58]
test eax, eax
je 0x18003c0e3
mov dword [r14 + 0x68], eax
jmp 0x18003c0ef
movsxd rax, edi
mov dword [r14 + rax*4 + 0x64], 0xffffffff
cmp byte [rbx + 0x3f], 0
jne 0x18003c113
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 0x18003c113
cmp eax, 5
jne 0x18003c13c
inc edi
cmp edi, 5
jl 0x18003c0a0
cmp dword [rbx + 0x5c], 0
je 0x18003c13c
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.18002b870
mov r14d, dword [rsp + 0x30]
mov r12, qword [rsp + 0x100]
mov r15, qword [rsp + 0xc0]
cmp byte [rbx + 0x3f], 0
jne 0x18003c173
mov rcx, qword [rbx + 8]
mov r8d, 3
sub r8d, r14d
mov r9d, 9
mov edx, r14d
mov rax, qword [rcx]
call qword [rax + 0x70]
mov eax, esi
mov rsi, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18012f130
add rsp, 0xc8
pop r14
pop rdi
pop rbp
pop rbx
ret