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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0xd0
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movzx esi, byte [rcx + 0x41]
xor edi, edi
inc esi
mov dword [rsp + 0x3c], edi
xor ebp, ebp
mov dword [rsp + 0x30], esi
mov rbx, rcx
mov dword [rsp + 0x40], ebp
lea r13d, [rdi + 3]
cmp byte [rcx + 0x3f], dil
jne 0x14014e9d1
mov rcx, qword [rcx + 8]
lea r9d, [rdi + 0xa]
mov r8d, r13d
mov edx, esi
sub r8d, esi
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
test eax, eax
jne 0x14014eee7
xorps xmm0, xmm0
mov qword [rsp + 0x110], r14
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 r14d, eax
test eax, eax
jne 0x14014eebe
cmp qword [rsp + 0x60], 0x20
mov qword [rsp + 0x108], r12
mov qword [rsp + 0x118], r15
jle 0x14014ede5
mov rcx, qword [rbx + 0x10]
lea r8d, [r14 + 0x20]
xor r9d, r9d
lea rdx, [rsp + 0xa0]
mov rax, qword [rcx]
call qword [rax + select]
mov r14d, eax
test eax, eax
jne 0x14014eeae
mov ecx, dword [rsp + 0xa0]
mov esi, dword [rsp + 0xa8]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap esi
mov dword [rsp + 0x54], esi
cmp eax, 0x377f0682
jne 0x14014ede5
lea eax, [rsi - 1]
test esi, eax
jne 0x14014ede5
lea eax, [rsi - 0x200]
cmp eax, 0xfe00
ja 0x14014ede5
mov eax, dword [rsp + 0xac]
lea r12, [rbx + 0x60]
bswap eax
and cl, 1
mov dword [rbx + 0x88], eax
mov rax, qword [rsp + 0xb0]
lea r8d, [r14 + 0x18]
movzx ecx, cl
lea rdx, [rsp + 0xa0]
mov byte [rbx + 0x55], cl
xor r9d, r9d
xor ecx, 1
mov qword [rbx + 0x68], rax
mov dword [rbx + 0x38], esi
mov qword [rsp + 0x20], r12
call fcn.14014da10
mov ecx, dword [rsp + 0xb8]
bswap ecx
cmp dword [r12], ecx
jne 0x14014ede5
mov eax, dword [rsp + 0xbc]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x14014ede5
mov eax, dword [rsp + 0xa4]
bswap eax
cmp eax, 0x2de218
je 0x14014eb12
mov ecx, 0xff9e
call fcn.1400f3ac0
mov r14d, eax
jmp 0x14014eddc
lea eax, [rsi + 0x18]
movsxd rdi, esi
add rdi, 0x18
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x80], rdi
lea rcx, [rdi + 0x8000]
call fcn.1400ac1b0
mov r15, rax
test rax, rax
jne 0x14014eb45
lea r14d, [rax + 7]
jmp 0x14014eeaa
add rax, 0x18
movsxd r8, esi
add r8, rax
xor r13d, r13d
mov rax, qword [rsp + 0x60]
add rax, 0xffffffffffffffe0
mov qword [rsp + 0x58], r8
cqo
mov dword [rsp + 0x38], r13d
idiv rdi
mov r9, rax
mov qword [rsp + 0x90], rax
add eax, 0x1000
mov ecx, r9d
sub rax, 0xfdf
mov qword [rsp + 0x98], rcx
shr rax, 0xc
xor edx, edx
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x48], rdx
nop
mov eax, r13d
mov esi, r9d
shl eax, 0xc
mov edi, eax
add rax, 0xfde
cmp rcx, rax
jb 0x14014ebbc
lea esi, [rdi + 0xfde]
mov dword [rsp + 0x34], esi
test r13d, r13d
jne 0x14014ebcb
lea edi, [r13 + 1]
jmp 0x14014ebce
add edi, 0xffffffdf
lea rbp, [rbx + 0x30]
cmp dword [rbx + 0x28], r13d
jle 0x14014ebfc
mov rax, qword [rbp]
movsxd rcx, r13d
mov qword [rsp + 0x70], rbp
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x68], rcx
test rcx, rcx
je 0x14014ebfc
xor r14d, r14d
jmp 0x14014ec28
lea r8, [rsp + 0x68]
mov edx, r13d
mov rcx, rbx
call fcn.14014e610
mov rcx, qword [rsp + 0x68]
mov r14d, eax
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x70], rbp
test rcx, rcx
je 0x14014edc6
mov rax, qword [rbp]
mov qword [rdx + rax], r8
cmp edi, esi
ja 0x14014ed55
mov r13, qword [rsp + 0x80]
nop dword [rax]
mov rcx, qword [rbx + 0x10]
lea r9d, [rdi - 1]
mov r8d, dword [rsp + 0x50]
mov rdx, r15
imul r9, r13
mov r10, qword [rcx]
add r9, 0x20
call qword [r10 + select]
mov r14d, eax
test eax, eax
jne 0x14014ed41
mov rax, qword [rbx + 0x68]
cmp rax, qword [r15 + 8]
jne 0x14014ed41
mov ebp, dword [r15]
bswap ebp
test ebp, ebp
je 0x14014ed41
xor ecx, ecx
mov qword [rsp + 0x20], r12
cmp byte [rbx + 0x55], cl
lea r8d, [r14 + 8]
mov r9, r12
mov rdx, r15
sete cl
call fcn.14014da10
mov r8d, dword [rbx + 0x38]
lea rdx, [r15 + 0x18]
mov r9, r12
mov qword [rsp + 0x20], r12
call fcn.14014da10
mov ecx, dword [r15 + 0x10]
bswap ecx
cmp dword [r12], ecx
jne 0x14014ed41
mov eax, dword [r15 + 0x14]
bswap eax
cmp dword [r12 + 4], eax
jne 0x14014ed41
mov esi, dword [r15 + 4]
mov r8d, ebp
mov edx, edi
mov rcx, rbx
bswap esi
call fcn.14014e350
mov r14d, eax
test eax, eax
jne 0x14014ed3d
test esi, esi
je 0x14014ed2d
mov dword [rbx + 0x5c], esi
mov edx, 0xff00
mov esi, dword [rsp + 0x54]
mov ecx, esi
movzx eax, si
mov dword [rbx + 0x58], edi
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 esi, dword [rsp + 0x34]
inc edi
cmp edi, esi
jbe 0x14014ec50
jmp 0x14014ed41
mov esi, dword [rsp + 0x34]
mov r13d, dword [rsp + 0x38]
mov rbp, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
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.140191740
cmp edi, esi
jbe 0x14014edc6
mov rdx, qword [rsp + 0x48]
inc r13d
mov r8, qword [rsp + 0x58]
add rdx, 8
mov r9, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x48], rdx
cmp r13d, dword [rsp + 0x88]
jbe 0x14014eba0
mov rcx, r15
call fcn.1400ac270
mov edi, dword [rsp + 0x3c]
mov r13d, 3
mov ebp, dword [rsp + 0x40]
test r14d, r14d
jne 0x14014eeaa
mov rcx, rbx
mov dword [rbx + 0x60], edi
mov dword [rbx + 0x64], ebp
call fcn.14014f0b0
mov rax, qword [rbx + 0x30]
mov edi, 1
mov rsi, qword [rax]
mov dword [rsi + 0x60], 0
mov eax, dword [rbx + 0x58]
mov dword [rsi + 0x80], eax
mov dword [rsi + 0x64], 0
cmp byte [rbx + 0x3f], 0
je 0x14014ee21
xor r14d, r14d
jmp 0x14014ee3f
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 0xa
mov rax, qword [rcx]
lea r8d, [r9 - 9]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov r14d, eax
test eax, eax
jne 0x14014ee7c
cmp edi, 1
jne 0x14014ee52
cmp dword [rbx + 0x58], 0
je 0x14014ee52
mov eax, dword [rbx + 0x58]
mov dword [rsi + 0x68], eax
jmp 0x14014ee5d
movsxd rax, edi
mov dword [rsi + rax*4 + 0x64], 0xffffffff
cmp byte [rbx + 0x3f], 0
jne 0x14014ee81
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 9
mov rax, qword [rcx]
lea r8d, [r9 - 8]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
jmp 0x14014ee81
cmp eax, 5
jne 0x14014eeaa
inc edi
cmp edi, 5
jl 0x14014ee16
cmp dword [rbx + 0x5c], 0
je 0x14014eeaa
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.140099b20
mov esi, dword [rsp + 0x30]
mov r12, qword [rsp + 0x108]
mov r15, qword [rsp + 0x118]
cmp byte [rbx + 0x3f], 0
jne 0x14014eedc
mov rcx, qword [rbx + 8]
sub r13d, esi
mov r9d, 9
mov r8d, r13d
mov edx, esi
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov eax, r14d
mov r14, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14016ab50
add rsp, 0xd0
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret