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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0xc0
mov rax, qword [0x14023f740]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movzx esi, byte [rcx + 0x41]
xor edi, edi
inc esi
mov dword [rsp + 0x40], edi
xor ebp, ebp
mov dword [rsp + 0x34], esi
mov rbx, rcx
mov dword [rsp + 0x44], ebp
lea r13d, [rdi + 3]
cmp byte [rcx + 0x3f], dil
jne 0x14017a281
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 + 0x70]
test eax, eax
jne 0x14017a777
xorps xmm0, xmm0
mov qword [rsp + 0x100], 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 0x14017a74e
cmp qword [rsp + 0x60], 0x20
mov qword [rsp + 0xf8], r12
mov qword [rsp + 0x108], r15
jle 0x14017a670
mov rcx, qword [rbx + 0x10]
lea r8d, [r14 + 0x20]
xor r9d, r9d
lea rdx, [rsp + 0x90]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov r14d, eax
test eax, eax
jne 0x14017a73e
mov ecx, dword [rsp + 0x90]
mov esi, dword [rsp + 0x98]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap esi
mov dword [rsp + 0x50], esi
cmp eax, 0x377f0682
jne 0x14017a670
lea eax, [rsi - 1]
test esi, eax
jne 0x14017a670
lea eax, [rsi - 0x200]
cmp eax, 0xfe00
ja 0x14017a670
mov eax, dword [rsp + 0x9c]
lea r12, [rbx + 0x60]
bswap eax
and cl, 1
mov dword [rbx + 0x88], eax
mov rax, qword [rsp + 0xa0]
lea r8d, [r14 + 0x18]
movzx ecx, cl
lea rdx, [rsp + 0x90]
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.1401792b0
mov ecx, dword [rsp + 0xa8]
bswap ecx
cmp dword [r12], ecx
jne 0x14017a670
mov eax, dword [rsp + 0xac]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x14017a670
mov eax, dword [rsp + 0x94]
bswap eax
cmp eax, 0x2de218
je 0x14017a3c2
mov ecx, 0xff9e
call fcn.14011f7e0
mov r14d, eax
jmp 0x14017a667
lea eax, [rsi + 0x18]
movsxd rdi, eax
mov dword [rsp + 0x38], eax
lea rcx, [rdi + 0x8000]
call fcn.1400d8560
mov r15, rax
test rax, rax
jne 0x14017a3e9
lea r14d, [rax + 7]
jmp 0x14017a73a
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 + 0x3c], r13d
idiv rdi
mov r9, rax
mov qword [rsp + 0x80], rax
add eax, 0x1000
mov ecx, r9d
sub rax, 0xfdf
mov qword [rsp + 0x88], rcx
shr rax, 0xc
xor edx, edx
mov qword [rsp + 0x78], 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 0x14017a45c
lea esi, [rdi + 0xfde]
mov dword [rsp + 0x30], esi
test r13d, r13d
jne 0x14017a46b
lea edi, [r13 + 1]
jmp 0x14017a46e
add edi, 0xffffffdf
cmp dword [rbx + 0x28], r13d
jle 0x14017a493
mov rax, qword [rbx + 0x30]
movsxd rcx, r13d
mov rbp, qword [rax + rcx*8]
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], rbp
test rbp, rbp
je 0x14017a493
xor r14d, r14d
jmp 0x14017a4ba
lea r8, [rsp + 0x68]
mov edx, r13d
mov rcx, rbx
call fcn.140179ed0
mov rbp, qword [rsp + 0x68]
mov r14d, eax
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov qword [rsp + 0x70], rbp
test rbp, rbp
je 0x14017a651
mov rax, qword [rbx + 0x30]
mov qword [rdx + rax], r8
cmp edi, esi
ja 0x14017a5e2
movsxd rdx, dword [rsp + 0x38]
mov r13, rdx
nop dword [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 r14d, eax
test eax, eax
jne 0x14017a5d3
mov rax, qword [rbx + 0x68]
cmp rax, qword [r15 + 8]
jne 0x14017a5d3
mov esi, dword [r15]
bswap esi
test esi, esi
je 0x14017a5cf
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.1401792b0
mov r8d, dword [rbx + 0x38]
lea rdx, [r15 + 0x18]
mov r9, r12
mov qword [rsp + 0x20], r12
call fcn.1401792b0
mov ecx, dword [r15 + 0x10]
bswap ecx
cmp dword [r12], ecx
jne 0x14017a5cf
mov eax, dword [r15 + 0x14]
bswap eax
cmp dword [r12 + 4], eax
jne 0x14017a5cf
mov ebp, dword [r15 + 4]
mov r8d, esi
mov edx, edi
mov rcx, rbx
bswap ebp
call fcn.140179c10
mov r14d, eax
test eax, eax
jne 0x14017a5cf
test ebp, ebp
je 0x14017a5bb
mov esi, dword [rsp + 0x50]
mov edx, 0xff00
movzx eax, si
mov dword [rbx + 0x58], edi
and ax, dx
mov dword [rbx + 0x5c], ebp
mov ecx, esi
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 esi, dword [rsp + 0x30]
inc edi
mov edx, dword [rsp + 0x38]
cmp edi, esi
jbe 0x14017a4e0
jmp 0x14017a5d3
mov esi, dword [rsp + 0x30]
mov r13d, dword [rsp + 0x3c]
mov rbp, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rbx + 0x30]
mov ecx, 0x88
mov r8d, 0x8000
mov qword [rdx + rax], rbp
xor eax, eax
mov rdx, qword [rsp + 0x58]
test r13d, r13d
cmove eax, ecx
mov ecx, 0x7f78
cmove r8d, ecx
add rdx, rax
lea rcx, [rax + rbp]
call fcn.1401b9090
cmp edi, esi
jbe 0x14017a651
mov rdx, qword [rsp + 0x48]
inc r13d
mov r8, qword [rsp + 0x58]
add rdx, 8
mov r9, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
mov dword [rsp + 0x3c], r13d
mov qword [rsp + 0x48], rdx
cmp r13d, dword [rsp + 0x78]
jbe 0x14017a440
mov rcx, r15
call fcn.1400d8620
mov edi, dword [rsp + 0x40]
mov r13d, 3
mov ebp, dword [rsp + 0x44]
test r14d, r14d
jne 0x14017a73a
mov rcx, rbx
mov dword [rbx + 0x60], edi
mov dword [rbx + 0x64], ebp
call fcn.14017a940
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 0x14017a6af
xor r14d, r14d
jmp 0x14017a6cd
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 0x14017a70c
cmp edi, 1
jne 0x14017a6e1
cmp dword [rbx + 0x58], 0
je 0x14017a6e1
mov eax, dword [rbx + 0x58]
mov dword [r15 + 0x68], eax
jmp 0x14017a6ed
movsxd rax, edi
mov dword [r15 + rax*4 + 0x64], 0xffffffff
cmp byte [rbx + 0x3f], 0
jne 0x14017a711
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 0x14017a711
cmp eax, 5
jne 0x14017a73a
inc edi
cmp edi, 5
jl 0x14017a6a4
cmp dword [rbx + 0x5c], 0
je 0x14017a73a
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.1400c5c20
mov esi, dword [rsp + 0x34]
mov r12, qword [rsp + 0xf8]
mov r15, qword [rsp + 0x108]
cmp byte [rbx + 0x3f], 0
jne 0x14017a76c
mov rcx, qword [rbx + 8]
sub r13d, esi
mov r9d, 9
mov r8d, r13d
mov edx, esi
mov rax, qword [rcx]
call qword [rax + 0x70]
mov eax, r14d
mov r14, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14018e930
add rsp, 0xc0
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret