Function at 0x14005bb40
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
xor edi, edi
movsxd rbp, r8d
xor r15d, r15d
mov rsi, rdx
mov rbx, rcx
mov r14, rcx
test rcx, rcx
je 0x14005bf24
mov rax, qword [rcx + 0x58]
lea r13, [rcx + 0x58]
mov qword [rsp + 0x88], r13
test rax, rax
je 0x14005bb9f
mov r8, rdx
mov dword [rsp + 0x28], 1
lea edx, [rdi + 2]
mov dword [rsp + 0x20], edi
mov r9d, ebp
call rax
mov edi, eax
test eax, eax
jle 0x14005bf26
mov qword [rsp + 0x78], r12
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14005bbb8
cmp byte [rbx + 0x7c], 3
je 0x14005bbb8
mov rbx, rax
jmp 0x14005bba4
mov r12, qword [rsp + 0x70]
lea r13, [0x140000000]
mov r8d, 0xffffffff
nop word [rax + rax]
test edi, edi
js 0x14005bef0
mov rax, qword [rbx + 8]
test rax, rax
je 0x14005bbfe
mov r9, qword [rax + 0x110]
test r9, r9
je 0x14005bbfe
mov r8d, ebp
mov rdx, rsi
mov rcx, rbx
call r9
jmp 0x14005becb
movzx edx, byte [rbx + 0x7c]
lea eax, [rdx - 2]
cmp eax, 6
ja case.default.0x14005bc1b
cdqe
mov ecx, dword [r13 + rax*4 + 0x5bf38]
add rcx, r13
jmp rcx
test r15d, r15d
jle case.default.0x14005bc1b
lea r9, [rsp + 0x70]
mov dword [rsp + 0x70], r15d
mov r8, rsi
mov edx, r15d
mov rcx, rsi
call fcn.14009e4c0
mov edi, dword [rsp + 0x70]
test eax, eax
mov r8d, 0xffffffff
cmovne edi, r8d
jmp case.default.0x14005bc1b
mov edi, 0xfffffffe
cmp dl, 4
jne 0x14005bc64
xor edi, edi
jmp case.default.0x14005bc1b
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14005bcf9
test ebp, ebp
jne 0x14005bc84
movsxd r12, dword [rcx + 0x68]
add r12, qword [rcx + 0x30]
xor edi, edi
jmp case.default.0x14005bc1b
movsxd rax, dword [rcx + 0x68]
mov edi, dword [rcx + 0x64]
mov r12, rax
add r12, qword [rcx + 0x30]
test edi, edi
jle 0x14005bc9d
cmp eax, edi
jl 0x14005bc9d
mov edi, dword [rcx + 0x60]
sub edi, eax
test edi, edi
jne 0x14005bcab
mov edi, r8d
jmp case.default.0x14005bc1b
cmp ebp, edi
cmovl edi, ebp
add eax, edi
mov dword [rcx + 0x68], eax
mov rcx, qword [rbx + 0x20]
mov eax, dword [rcx + 0x60]
cmp dword [rcx + 0x68], eax
jne 0x14005bcdb
mov dword [rcx + 0x68], 0
mov rcx, qword [rbx + 0x20]
mov eax, dword [rcx + 0x60]
cmp dword [rcx + 0x64], eax
jne 0x14005bcdb
mov dword [rcx + 0x64], 0
mov rcx, qword [rbx + 0x20]
mov eax, dword [rcx + 0x64]
cmp dword [rcx + 0x68], eax
jne 0x14005bcf9
mov dword [rcx + 0x68], 0
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x64], 0
test edi, edi
jle case.default.0x14005bc1b
movsxd r8, edi
mov rdx, r12
mov rcx, rsi
call fcn.1400c3f50
jmp 0x14005becd
mov r8d, ebp
mov rdx, rsi
mov rcx, rbx
call fcn.14005ba20
jmp 0x14005becb
mov r9, qword [rbx + 0x30]
test r9, r9
je 0x14005bd48
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400c9b30
mov rdi, rax
jmp 0x14005becd
mov edi, 0xffffff52
jmp case.default.0x14005bc1b
cmp dword [r14 + 0x74], 0
jne 0x14005beb4
and dword [rbx + 0x78], 0xffffffef
mov rdi, qword [rbx + 0x30]
test rdi, rdi
je 0x14005bdf2
mov rax, qword [rdi + 0x4e8]
test rax, rax
je 0x14005bd98
mov edx, 4
mov rcx, rdi
lea r8d, [rdx - 3]
call rax
mov r8d, 0xffffffff
mov dword [rdi + 0x4f0], 4
test rsi, rsi
je 0x14005bdf2
test ebp, ebp
js 0x14005bdf2
test byte [rdi + 0x4c6], 8
je 0x14005bdc0
lea eax, [rbp + 0x1f4]
mov edx, 0x578
cmp eax, edx
cmovg edx, eax
mov dword [rdi + 0x5f8], edx
mov r8d, ebp
mov rdx, rsi
mov rcx, rdi
call fcn.140075a80
mov edi, eax
mov r8d, 0xffffffff
test eax, eax
jns 0x14005bddf
mov edi, r8d
jmp 0x14005bdf7
jne case.default.0x14005bc1b
mov dword [r14 + 0x74], 1
jmp case.default.0x14005bc1b
mov edi, 0xffffff53
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14005bde5
mov ecx, dword [rcx + 0x2d0]
lea eax, [rcx + 0x147]
test eax, 0xfffffffb
je 0x14005be23
cmp ecx, 0xfffffea9
je 0x14005bde5
lea eax, [rcx - 2]
cmp eax, 1
ja 0x14005bde5
or dword [rbx + 0x78], 0x10
jmp case.default.0x14005bc1b
mov r9, qword [rbx + 0x30]
test r9, r9
je 0x14005be9b
cmp dword [r9 + 0x240], 0
jne 0x14005be7d
cmp qword [0x140102b98], 0
lea rax, [0x140102b90]
lea rdx, [r9 + 0x230]
je 0x14005be75
mov ecx, dword [rdx]
nop dword [rax]
cmp ecx, dword [rax]
je 0x14005be71
add rax, 0x10
cmp qword [rax + 8], 0
jne 0x14005be60
jmp 0x14005be75
lea rdx, [rax + 4]
cmp dword [rdx], 0x357
jne 0x14005be9b
mov r8d, edi
mov rdx, rsi
mov rcx, r9
call fcn.140054370
cmp eax, 1
je 0x14005becd
mov r8d, 0xffffffff
mov edi, r8d
jmp case.default.0x14005bc1b
movsxd r8, edi
mov rdx, rsi
mov rcx, r9
call fcn.140054550
mov r8d, 0xffffffff
cmp eax, 1
je case.default.0x14005bc1b
mov edi, r8d
jmp case.default.0x14005bc1b
mov ecx, dword [rbx + 0x70]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
mov r8d, 0xffffffff
cmp rbx, r14
je 0x14005bef0
mov rbx, qword [rbx + 0x10]
test edi, edi
mov eax, edi
cmovle eax, r15d
mov r15d, eax
test rbx, rbx
jne 0x14005bbd0
mov r13, qword [rsp + 0x88]
mov r12, qword [rsp + 0x78]
mov rax, qword [r13]
test rax, rax
je 0x14005bf24
mov dword [rsp + 0x28], edi
mov r9d, ebp
mov r8, rsi
mov dword [rsp + 0x20], 0
mov edx, 0x82
mov rcx, r14
call rax
mov edi, eax
mov eax, edi
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret