Function at 0x14004ec50
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 [0x1401a5100]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movzx esi, byte [rcx + 0x41]
xor r14d, r14d
inc esi
mov dword [rsp + 0x3c], r14d
xor r12d, r12d
mov dword [rsp + 0x48], esi
mov edi, 3
mov dword [rsp + 0x40], r12d
sub edi, esi
mov rbx, rcx
mov r15d, 1
cmp byte [rcx + 0x3f], r12b
jne 0x14004ecdf
mov rcx, qword [rcx + 8]
mov r9d, 0xa
mov r8d, edi
mov edx, esi
mov rax, qword [rcx]
call qword [rax + 0x70]
test eax, eax
jne 0x14004f320
mov ecx, edi
mov edx, r15d
shl edx, cl
lea ecx, [rsi + 8]
dec edx
shl edx, cl
or dword [rbx + 0x8c], edx
test eax, eax
jne 0x14004f320
xorps xmm0, xmm0
lea rdx, [rsp + 0x98]
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 esi, eax
test eax, eax
jne 0x14004f2dd
cmp qword [rsp + 0x98], 0x20
mov qword [rsp + 0x108], rbp
mov qword [rsp + 0x110], r13
jle 0x14004f1d3
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0xa0]
xor r9d, r9d
mov r8d, 0x20
mov rax, qword [rcx]
call qword [rax + 0x10]
mov esi, eax
test eax, eax
jne 0x14004f2cd
mov ecx, dword [rsp + 0xa0]
mov ebp, dword [rsp + 0xa8]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap ebp
mov dword [rsp + 0x44], ebp
cmp eax, 0x377f0682
jne 0x14004f1d3
lea eax, [rbp - 1]
test ebp, eax
jne 0x14004f1d3
lea eax, [rbp - 0x200]
cmp eax, 0xfe00
ja 0x14004f1d3
mov eax, dword [rsp + 0xac]
lea r13, [rbx + 0x60]
bswap eax
mov dword [rbx + 0x88], eax
lea rdx, [rsp + 0xa0]
mov rax, qword [rsp + 0xb0]
and cl, r15b
mov qword [rbx + 0x68], rax
mov r9d, r12d
mov byte [rbx + 0x55], cl
mov r8d, r12d
mov dword [rbx + 0x38], ebp
je 0x14004ee00
nop dword [rax + rax]
mov eax, dword [rdx]
bswap eax
add eax, r9d
add r8d, eax
mov eax, dword [rdx + 4]
bswap eax
add eax, r8d
add rdx, 8
add r9d, eax
lea rax, [rsp + 0xb8]
cmp rdx, rax
jb 0x14004edd0
jmp 0x14004ee22
mov ecx, dword [rdx]
lea rax, [rsp + 0xb8]
add ecx, r9d
add r8d, ecx
mov ecx, dword [rdx + 4]
add ecx, r8d
add rdx, 8
add r9d, ecx
cmp rdx, rax
jb 0x14004ee00
mov eax, dword [rsp + 0xb8]
bswap eax
mov dword [r13], r8d
mov dword [r13 + 4], r9d
cmp r8d, eax
jne 0x14004f1d3
mov eax, dword [rsp + 0xbc]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x14004f1d3
mov eax, dword [rsp + 0xa4]
bswap eax
cmp eax, 0x2de218
je 0x14004ee8f
lea rax, [0x140189594]
mov esi, 0xe
mov ecx, esi
mov qword [rsp + 0x20], rax
mov r9d, 0x1036d
lea r8, str.cannot_open_file
lea rdx, str._s_at_line__d_of___.10s_
call fcn.14003a420
jmp 0x14004f2cd
lea eax, [rbp + 0x18]
mov dword [rsp + 0x34], eax
movsxd rsi, eax
call fcn.1401003d0
test eax, eax
je 0x14004eeb3
mov qword [rbx + 0x90], r12
mov esi, 7
jmp 0x14004f2cd
lea rcx, [rsi + 0x8000]
call fcn.140037240
mov qword [rbx + 0x90], rax
mov rdi, rax
test rax, rax
jne 0x14004eed8
mov esi, 7
jmp 0x14004f2cd
add rax, 0x18
movsxd rcx, ebp
add rcx, rax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x98]
add rax, 0xffffffffffffffe0
mov qword [rsp + 0x60], rcx
cqo
mov dword [rsp + 0x38], r14d
idiv rsi
mov rdx, rax
mov qword [rsp + 0x80], rax
add eax, 0x1000
mov ecx, edx
sub rax, 0xfdf
mov qword [rsp + 0x88], rcx
shr rax, 0xc
mov qword [rsp + 0x78], rax
nop dword [rax + rax]
mov eax, r14d
mov r12d, edx
shl eax, 0xc
mov ebp, eax
add rax, 0xfde
cmp rcx, rax
jb 0x14004ef4d
lea r12d, [rbp + 0xfde]
mov dword [rsp + 0x30], r12d
test r14d, r14d
jne 0x14004ef5c
mov ebp, r15d
jmp 0x14004ef5f
add ebp, 0xffffffdf
call fcn.14004e5a0
cmp dword [rbx + 0x28], r14d
jle 0x14004ef88
mov rax, qword [rbx + 0x30]
movsxd rcx, r14d
mov r9, qword [rax + rcx*8]
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], r9
test r9, r9
je 0x14004ef88
xor esi, esi
jmp 0x14004efa4
lea r8, [rsp + 0x50]
mov edx, r14d
mov rcx, rbx
call fcn.14004e610
mov r9, qword [rsp + 0x50]
mov esi, eax
mov qword [rsp + 0x58], r9
test r9, r9
je 0x14004f15b
mov rax, qword [rbx + 0x30]
mov rdx, qword [rsp + 0x60]
mov dword [rbx + 0xa0], r14d
mov qword [rbx + 0x98], r9
mov qword [rax + r14*8], rdx
cmp ebp, r12d
ja 0x14004f0e9
movsxd r8, dword [rsp + 0x34]
mov rdx, r8
mov qword [rsp + 0x70], rdx
nop
mov rcx, qword [rbx + 0x10]
lea r9d, [rbp - 1]
imul r9, rdx
mov r10, qword [rcx]
mov rdx, rdi
add r9, 0x20
call qword [r10 + 0x10]
mov esi, eax
test eax, eax
jne 0x14004f0d4
mov rax, qword [rbx + 0x68]
cmp rax, qword [rdi + 8]
jne 0x14004f0d4
mov r14d, dword [rdi]
bswap r14d
test r14d, r14d
je 0x14004f0d4
xor ecx, ecx
mov qword [rsp + 0x20], r13
cmp byte [rbx + 0x55], cl
mov r9, r13
mov r8d, 8
mov rdx, rdi
sete cl
call fcn.14004e790
mov r8d, dword [rbx + 0x38]
mov r9, r13
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x20], r13
call fcn.14004e790
mov ecx, dword [rdi + 0x10]
bswap ecx
cmp dword [r13], ecx
jne 0x14004f0d4
mov eax, dword [rdi + 0x14]
bswap eax
cmp dword [r13 + 4], eax
jne 0x14004f0d4
mov r15d, dword [rdi + 4]
mov r8d, r14d
mov edx, ebp
mov rcx, rbx
bswap r15d
call fcn.14004eaa0
mov esi, eax
test eax, eax
jne 0x14004f0d4
test r15d, r15d
je 0x14004f0b8
mov eax, dword [rsp + 0x44]
mov edx, 0xff00
mov ecx, eax
mov dword [rbx + 0x58], ebp
and ax, dx
mov dword [rbx + 0x5c], r15d
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 ebp
mov rdx, qword [rsp + 0x70]
mov r8d, dword [rsp + 0x34]
cmp ebp, r12d
jbe 0x14004efe0
jmp 0x14004f0d9
mov r12d, dword [rsp + 0x30]
mov r14d, dword [rsp + 0x38]
mov r15d, 1
mov r9, qword [rsp + 0x58]
mov rax, qword [rbx + 0x30]
mov r8d, 0x8000
mov rdx, qword [rsp + 0x60]
mov ecx, r14d
mov qword [rax + rcx*8], r9
xor eax, eax
test r14d, r14d
mov dword [rbx + 0xa0], eax
mov ecx, 0x88
mov qword [rbx + 0x98], rax
cmove eax, ecx
mov ecx, 0x7f78
cmove r8d, ecx
add rdx, rax
lea rcx, [rax + r9]
call fcn.1401653e0
call fcn.14004e5a0
cmp ebp, r12d
jbe 0x14004f15b
mov rdx, qword [rsp + 0x80]
inc r14d
mov rcx, qword [rsp + 0x88]
mov dword [rsp + 0x38], r14d
cmp r14d, dword [rsp + 0x78]
jbe 0x14004ef30
mov qword [rbx + 0x90], 0
cmp dword [0x1401a5f40], 0
je 0x14004f1b8
mov rcx, qword [0x1401acd58]
test rcx, rcx
je 0x14004f181
call qword [0x1401a5fc0]
mov rcx, rdi
call qword [0x1401a5f78]
dec qword [0x1401acb48]
mov rcx, rdi
movsxd rdx, eax
sub qword [0x1401acb00], rdx
call qword [0x1401a5f68]
mov rcx, qword [0x1401acd58]
test rcx, rcx
je 0x14004f1c1
call qword [0x1401a5fd0]
jmp 0x14004f1c1
mov rcx, rdi
call qword [0x1401a5f68]
test esi, esi
jne 0x14004f2cd
mov r14d, dword [rsp + 0x3c]
mov r12d, dword [rsp + 0x40]
mov rcx, rbx
mov dword [rbx + 0x60], r14d
mov dword [rbx + 0x64], r12d
call fcn.14004e8e0
call fcn.14004e5a0
mov rax, qword [rbx + 0x30]
mov edi, r15d
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 dword [rax]
cmp byte [rbx + 0x3f], 0
je 0x14004f21a
xor esi, esi
jmp 0x14004f248
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 0xa
mov r8d, r15d
mov rax, qword [rcx]
call qword [rax + 0x70]
mov esi, eax
test eax, eax
jne 0x14004f244
lea ecx, [rdi + 0xb]
mov eax, r15d
shl eax, cl
or dword [rbx + 0x8c], eax
test esi, esi
jne 0x14004f29b
cmp edi, 1
jne 0x14004f25c
cmp dword [rbx + 0x58], 0
je 0x14004f25c
mov eax, dword [rbx + 0x58]
mov dword [r14 + 0x68], eax
jmp 0x14004f268
movsxd rax, edi
mov dword [r14 + rax*4 + 0x64], 0xffffffff
call fcn.14004e5a0
cmp byte [rbx + 0x3f], 0
jne 0x14004f2a0
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 9
mov r8d, r15d
mov rax, qword [rcx]
call qword [rax + 0x70]
lea ecx, [rdi + 0xb]
mov eax, r15d
shl eax, cl
not eax
and dword [rbx + 0x8c], eax
jmp 0x14004f2a0
cmp esi, 5
jne 0x14004f2cd
inc edi
cmp edi, 5
jl 0x14004f210
cmp dword [rbx + 0x5c], 0
je 0x14004f2cd
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.14003a420
mov rbp, qword [rsp + 0x108]
mov r13, qword [rsp + 0x110]
mov edi, dword [rsp + 0x48]
mov r14d, 3
sub r14d, edi
cmp byte [rbx + 0x3f], 0
jne 0x14004f31e
mov rcx, qword [rbx + 8]
mov r9d, 9
mov r8d, r14d
mov edx, edi
mov rax, qword [rcx]
call qword [rax + 0x70]
mov ecx, r14d
shl r15d, cl
lea ecx, [rdi + 8]
dec r15d
shl r15d, cl
not r15d
and dword [rbx + 0x8c], r15d
mov eax, esi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401391d0
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret