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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xc0
mov rax, qword [0x14019d3c0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movzx eax, byte [rcx + 0x41]
mov r8d, 3
inc eax
xor edi, edi
xor r14d, r14d
mov dword [rsp + 0x3c], edi
sub r8d, eax
mov dword [rsp + 0x40], r14d
mov edx, eax
mov dword [rsp + 0x48], eax
mov rbx, rcx
call fcn.140142000
test eax, eax
jne 0x1401419d1
xorps xmm0, xmm0
mov qword [rsp + 0xf0], rsi
movups xmmword [rbx + 0x48], xmm0
lea rdx, [rsp + 0x50]
mov qword [rsp + 0xb8], r13
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
mov r13d, 1
test eax, eax
jne 0x14014197e
cmp qword [rsp + 0x50], 0x20
mov qword [rsp + 0xe8], rbp
mov qword [rsp + 0xf8], r12
mov qword [rsp + 0xb0], r15
jle 0x14014186b
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x88]
xor r9d, r9d
mov r8d, 0x20
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov esi, eax
test eax, eax
jne 0x140141966
mov ecx, dword [rsp + 0x88]
mov ebp, dword [rsp + 0x90]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap ebp
mov dword [rsp + 0x44], ebp
cmp eax, 0x377f0682
jne 0x14014186b
lea eax, [rbp - 1]
test ebp, eax
jne 0x14014186b
lea eax, [rbp - 0x200]
cmp eax, 0xfe00
ja 0x14014186b
mov eax, dword [rsp + 0x94]
lea r12, [rbx + 0x60]
bswap eax
and cl, r13b
mov dword [rbx + 0x88], eax
mov rax, qword [rsp + 0x98]
lea rdx, [rsp + 0x88]
movzx ecx, cl
xor r9d, r9d
mov byte [rbx + 0x55], cl
mov r8d, 0x18
xor ecx, r13d
mov qword [rbx + 0x68], rax
mov dword [rbx + 0x38], ebp
mov qword [rsp + 0x20], r12
call fcn.14013fee0
mov ecx, dword [rsp + 0xa0]
bswap ecx
cmp dword [r12], ecx
jne 0x14014186b
mov eax, dword [rsp + 0xa4]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x14014186b
mov eax, dword [rsp + 0x8c]
bswap eax
cmp eax, 0x2de218
je 0x140141599
mov ecx, 0x10398
call fcn.1400e49a0
mov esi, eax
jmp 0x140141863
lea eax, [rbp + 0x18]
movsxd rdi, eax
mov dword [rsp + 0x34], eax
lea rcx, [rdi + 0x8000]
call fcn.1400986f0
mov qword [rbx + 0x90], rax
mov r15, rax
test rax, rax
jne 0x1401415c8
mov esi, 7
jmp 0x140141966
add rax, 0x18
movsxd rcx, ebp
add rcx, rax
xor r13d, r13d
mov rax, qword [rsp + 0x50]
add rax, 0xffffffffffffffe0
mov qword [rsp + 0x68], rcx
cqo
mov dword [rsp + 0x38], r13d
idiv rdi
mov rdx, rax
mov qword [rsp + 0x78], rax
add eax, 0x1000
mov ecx, edx
sub rax, 0xfdf
mov qword [rsp + 0x80], rcx
shr rax, 0xc
mov qword [rsp + 0x70], rax
nop dword [rax]
nop word [rax + rax]
mov eax, r13d
mov ebp, edx
shl eax, 0xc
mov edi, eax
add rax, 0xfde
cmp rcx, rax
jb 0x14014163b
lea ebp, [rdi + 0xfde]
mov dword [rsp + 0x30], ebp
test r13d, r13d
jne 0x14014164b
mov edi, 1
jmp 0x14014164e
add edi, 0xffffffdf
mov rcx, rbx
call fcn.1400d7dd0
cmp dword [rbx + 0x28], r13d
jle 0x14014167a
mov rax, qword [rbx + 0x30]
movsxd rcx, r13d
mov r14, qword [rax + rcx*8]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r14
test r14, r14
je 0x14014167a
xor esi, esi
jmp 0x140141696
lea r8, [rsp + 0x58]
mov edx, r13d
mov rcx, rbx
call fcn.140141030
mov r14, qword [rsp + 0x58]
mov esi, eax
mov qword [rsp + 0x60], r14
test r14, r14
je 0x140141841
mov rax, qword [rbx + 0x30]
mov rdx, qword [rsp + 0x68]
mov dword [rbx + 0xa0], r13d
mov qword [rbx + 0x98], r14
mov qword [rax + r13*8], rdx
cmp edi, ebp
ja 0x1401417d0
movsxd rdx, dword [rsp + 0x34]
mov r13, rdx
nop word [rax + rax]
mov rcx, qword [rbx + 0x10]
lea r9d, [rdi - 1]
imul r9, r13
mov r10, qword [rcx]
mov r8d, edx
add r9, 0x20
mov rdx, r15
call qword [r10 + reloc.WS2_32.dll_recv]
mov esi, eax
test eax, eax
jne 0x1401417c6
mov rax, qword [rbx + 0x68]
cmp rax, qword [r15 + 8]
jne 0x1401417c6
mov ebp, dword [r15]
bswap ebp
test ebp, ebp
je 0x1401417c2
xor ecx, ecx
mov qword [rsp + 0x20], r12
cmp byte [rbx + 0x55], cl
mov r9, r12
mov r8d, 8
mov rdx, r15
sete cl
call fcn.14013fee0
mov r8d, dword [rbx + 0x38]
lea rdx, [r15 + 0x18]
mov r9, r12
mov qword [rsp + 0x20], r12
call fcn.14013fee0
mov ecx, dword [r15 + 0x10]
bswap ecx
cmp dword [r12], ecx
jne 0x1401417c2
mov eax, dword [r15 + 0x14]
bswap eax
cmp dword [r12 + 4], eax
jne 0x1401417c2
mov r14d, dword [r15 + 4]
mov r8d, ebp
mov edx, edi
mov rcx, rbx
bswap r14d
call fcn.140140df0
mov esi, eax
test eax, eax
jne 0x1401417c2
test r14d, r14d
je 0x1401417ae
mov ebp, dword [rsp + 0x44]
mov edx, 0xff00
movzx eax, bp
mov dword [rbx + 0x58], edi
and ax, dx
mov dword [rbx + 0x5c], r14d
mov ecx, ebp
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 ebp, dword [rsp + 0x30]
inc edi
mov edx, dword [rsp + 0x34]
cmp edi, ebp
jbe 0x1401416d0
jmp 0x1401417c6
mov ebp, dword [rsp + 0x30]
mov r13d, dword [rsp + 0x38]
mov r14, qword [rsp + 0x60]
mov rax, qword [rbx + 0x30]
mov r8d, 0x8000
mov rdx, qword [rsp + 0x68]
mov ecx, r13d
mov qword [rax + rcx*8], r14
xor eax, eax
test r13d, r13d
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 + r14]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call fcn.1400d7dd0
cmp edi, ebp
jbe 0x140141841
mov rdx, qword [rsp + 0x78]
inc r13d
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x38], r13d
cmp r13d, dword [rsp + 0x70]
jbe 0x140141620
mov rcx, r15
mov qword [rbx + 0x90], 0
call fcn.140098810
mov edi, dword [rsp + 0x3c]
mov r13d, 1
mov r14d, dword [rsp + 0x40]
test esi, esi
jne 0x140141966
mov rcx, rbx
mov dword [rbx + 0x60], edi
mov dword [rbx + 0x64], r14d
call fcn.140141b90
mov rcx, rbx
call fcn.1400d7dd0
mov rax, qword [rbx + 0x30]
mov edi, r13d
mov r14, qword [rax]
mov dword [r14 + 0x60], 0
mov eax, dword [rbx + 0x58]
mov dword [r14 + 0x80], eax
mov dword [r14 + 0x64], 0
cmp byte [rbx + 0x3f], 0
je 0x1401418b0
xor esi, esi
jmp 0x1401418de
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 0xa
mov r8d, r13d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov esi, eax
test eax, eax
jne 0x1401418da
lea ecx, [rdi + 0xb]
mov eax, r13d
shl eax, cl
or dword [rbx + 0x8c], eax
test esi, esi
jne 0x140141934
cmp edi, 1
jne 0x1401418f2
cmp dword [rbx + 0x58], 0
je 0x1401418f2
mov eax, dword [rbx + 0x58]
mov dword [r14 + 0x68], eax
jmp 0x1401418fe
movsxd rax, edi
mov dword [r14 + rax*4 + 0x64], 0xffffffff
mov rcx, rbx
call fcn.1400d7dd0
cmp byte [rbx + 0x3f], 0
jne 0x140141939
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 9
mov r8d, r13d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
lea ecx, [rdi + 0xb]
mov eax, r13d
shl eax, cl
not eax
and dword [rbx + 0x8c], eax
jmp 0x140141939
cmp esi, 5
jne 0x140141966
inc edi
cmp edi, 5
jl 0x1401418a6
cmp dword [rbx + 0x5c], 0
je 0x140141966
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.140085320
mov r12, qword [rsp + 0xf8]
mov rbp, qword [rsp + 0xe8]
mov r15, qword [rsp + 0xb0]
mov edi, dword [rsp + 0x48]
mov r14d, 3
sub r14d, edi
cmp byte [rbx + 0x3f], 0
jne 0x1401419bf
mov rcx, qword [rbx + 8]
mov r9d, 9
mov r8d, r14d
mov edx, edi
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov ecx, r14d
shl r13d, cl
lea ecx, [rdi + 8]
dec r13d
shl r13d, cl
not r13d
and dword [rbx + 0x8c], r13d
mov r13, qword [rsp + 0xb8]
mov eax, esi
mov rsi, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140157800
add rsp, 0xc0
pop r14
pop rdi
pop rbx
ret