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

Disassembly:
push rbx
push rdi
push r13
push r15
sub rsp, 0xc8
mov rax, qword [0x140342fc0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movzx r13d, byte [rcx + 0x41]
mov r8d, 3
inc r13d
xor edi, edi
xor r15d, r15d
mov dword [rsp + 0x3c], edi
sub r8d, r13d
mov dword [rsp + 0x40], r15d
mov edx, r13d
mov dword [rsp + 0x54], r13d
mov rbx, rcx
call fcn.140226cd0
test eax, eax
jne 0x140226768
xorps xmm0, xmm0
mov qword [rsp + 0xf8], rbp
movups xmmword [rbx + 0x48], xmm0
lea rdx, [rsp + 0x58]
mov qword [rsp + 0xc0], r14
movups xmmword [rbx + 0x58], xmm0
movups xmmword [rbx + 0x68], xmm0
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x30]
lea ebp, [rdi + 1]
mov r14d, eax
test eax, eax
jne 0x14022671d
cmp qword [rsp + 0x58], 0x20
mov qword [rsp + 0x100], rsi
mov qword [rsp + 0x108], r12
jle 0x140226617
mov rcx, qword [rbx + 0x10]
lea r8d, [rdi + 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 0x14022670d
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 0x140226617
lea eax, [rsi - 1]
test esi, eax
jne 0x140226617
lea eax, [rsi - 0x200]
cmp eax, 0xfe00
ja 0x140226617
mov eax, dword [rsp + 0x9c]
lea r12, [rbx + 0x60]
bswap eax
and cl, bpl
mov dword [rbx + 0x88], eax
mov rax, qword [rsp + 0xa0]
lea r8d, [rdi + 0x18]
movzx ecx, cl
lea rdx, [rsp + 0x90]
mov byte [rbx + 0x55], cl
xor r9d, r9d
xor ecx, ebp
mov qword [rbx + 0x68], rax
mov dword [rbx + 0x38], esi
mov qword [rsp + 0x20], r12
call fcn.140224de0
mov ecx, dword [rsp + 0xa8]
bswap ecx
cmp dword [r12], ecx
jne 0x140226617
mov eax, dword [rsp + 0xac]
bswap eax
cmp dword [rbx + 0x64], eax
jne 0x140226617
mov eax, dword [rsp + 0x94]
bswap eax
cmp eax, 0x2de218
je 0x140226332
mov ecx, 0x101ba
call fcn.1401ca6f0
mov r14d, eax
jmp 0x14022660e
lea eax, [rsi + 0x18]
movsxd rdi, eax
mov dword [rsp + 0x34], eax
lea rcx, [rdi + 0x8000]
call fcn.140180920
mov qword [rbx + 0x90], rax
mov r15, rax
test rax, rax
jne 0x140226360
lea r14d, [rax + 7]
jmp 0x14022670d
add rax, 0x18
movsxd rcx, esi
add rcx, rax
xor r13d, r13d
mov rax, qword [rsp + 0x58]
add rax, 0xffffffffffffffe0
mov qword [rsp + 0x70], rcx
cqo
mov dword [rsp + 0x38], r13d
idiv rdi
mov qword [rsp + 0x48], r13
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]
nop word [rax + rax]
mov eax, r13d
mov esi, edx
shl eax, 0xc
mov edi, eax
add rax, 0xfde
cmp rcx, rax
jb 0x1402263db
lea esi, [rdi + 0xfde]
mov dword [rsp + 0x30], esi
test r13d, r13d
jne 0x1402263e8
mov edi, ebp
jmp 0x1402263eb
add edi, 0xffffffdf
mov rcx, rbx
call fcn.1401be190
cmp dword [rbx + 0x28], r13d
jle 0x140226418
mov rax, qword [rbx + 0x30]
movsxd rcx, r13d
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], rcx
test rcx, rcx
je 0x140226418
xor r14d, r14d
jmp 0x140226435
lea r8, [rsp + 0x60]
mov edx, r13d
mov rcx, rbx
call fcn.140225e10
mov rcx, qword [rsp + 0x60]
mov r14d, eax
mov qword [rsp + 0x68], rcx
test rcx, rcx
je 0x1402265ed
mov rax, qword [rbx + 0x30]
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x70]
mov dword [rbx + 0xa0], r13d
mov qword [rbx + 0x98], rcx
mov qword [rdx + rax], r8
cmp edi, esi
ja 0x140226577
movsxd rdx, dword [rsp + 0x34]
mov r13, rdx
nop
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 0x140226563
mov rax, qword [rbx + 0x68]
cmp rax, qword [r15 + 8]
jne 0x140226563
mov esi, dword [r15]
bswap esi
test esi, esi
je 0x14022655f
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.140224de0
mov r8d, dword [rbx + 0x38]
lea rdx, [r15 + 0x18]
mov r9, r12
mov qword [rsp + 0x20], r12
call fcn.140224de0
mov ecx, dword [r15 + 0x10]
bswap ecx
cmp dword [r12], ecx
jne 0x14022655f
mov eax, dword [r15 + 0x14]
bswap eax
cmp dword [r12 + 4], eax
jne 0x14022655f
mov ebp, dword [r15 + 4]
mov r8d, esi
mov edx, edi
mov rcx, rbx
bswap ebp
call fcn.140225bc0
mov r14d, eax
test eax, eax
jne 0x14022655f
test ebp, ebp
je 0x14022654b
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 + 0x3c], eax
mov eax, dword [rbx + 0x64]
mov dword [rsp + 0x40], eax
mov esi, dword [rsp + 0x30]
inc edi
mov edx, dword [rsp + 0x34]
cmp edi, esi
jbe 0x140226470
jmp 0x140226563
mov esi, dword [rsp + 0x30]
mov r13d, dword [rsp + 0x38]
mov ebp, 1
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rbx + 0x30]
mov r8d, 0x8000
mov qword [rdx + rax], rcx
xor eax, eax
test r13d, r13d
mov dword [rbx + 0xa0], eax
mov edx, 0x88
mov qword [rbx + 0x98], rax
cmove eax, edx
mov edx, 0x7f78
cmove r8d, edx
mov rdx, qword [rsp + 0x70]
add rdx, rax
add rcx, rax
call fcn.14029ebf0
mov rcx, rbx
call fcn.1401be190
cmp edi, esi
jbe 0x1402265ed
add qword [rsp + 0x48], 8
inc r13d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
mov dword [rsp + 0x38], r13d
cmp r13d, dword [rsp + 0x78]
jbe 0x1402263c0
mov rcx, r15
mov qword [rbx + 0x90], 0
call fcn.1401809e0
mov edi, dword [rsp + 0x3c]
mov r15d, dword [rsp + 0x40]
mov r13d, dword [rsp + 0x54]
test r14d, r14d
jne 0x14022670d
mov rcx, rbx
mov dword [rbx + 0x60], edi
mov dword [rbx + 0x64], r15d
call fcn.140226930
mov rcx, rbx
call fcn.1401be190
mov rax, qword [rbx + 0x30]
mov edi, ebp
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 0x14022665c
xor r14d, r14d
jmp 0x140226686
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 0xa
mov r8d, ebp
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov r14d, eax
test eax, eax
jne 0x1402266db
lea ecx, [rdi + 0xb]
mov eax, ebp
shl eax, cl
or dword [rbx + 0x8c], eax
cmp edi, 1
jne 0x14022669a
cmp dword [rbx + 0x58], 0
je 0x14022669a
mov eax, dword [rbx + 0x58]
mov dword [r15 + 0x68], eax
jmp 0x1402266a6
movsxd rax, edi
mov dword [r15 + rax*4 + 0x64], 0xffffffff
mov rcx, rbx
call fcn.1401be190
cmp byte [rbx + 0x3f], 0
jne 0x1402266e0
mov rcx, qword [rbx + 8]
lea edx, [rdi + 3]
mov r9d, 9
mov r8d, ebp
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
lea ecx, [rdi + 0xb]
mov eax, ebp
shl eax, cl
not eax
and dword [rbx + 0x8c], eax
jmp 0x1402266e0
cmp eax, 5
jne 0x14022670d
inc edi
cmp edi, 5
jl 0x140226651
cmp dword [rbx + 0x5c], 0
je 0x14022670d
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.14016d350
mov rsi, qword [rsp + 0x100]
mov r12, qword [rsp + 0x108]
mov edi, 3
sub edi, r13d
cmp byte [rbx + 0x3f], 0
jne 0x140226755
mov rcx, qword [rbx + 8]
mov r9d, 9
mov r8d, edi
mov edx, r13d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov ecx, edi
shl ebp, cl
lea ecx, [r13 + 8]
dec ebp
shl ebp, cl
not ebp
and dword [rbx + 0x8c], ebp
mov rbp, qword [rsp + 0xf8]
mov eax, r14d
mov r14, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14025e750
add rsp, 0xc8
pop r15
pop r13
pop rdi
pop rbx
ret