Function at 0x401350
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403c18
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x407040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
mov edx, dword [ebx + 0x18]
call fcn.00402810
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
push 0
push dword [ebp - 0x1c]
cmova eax, dword [ebp - 0x2c]
push eax
push dword [0x4074d8]
call dword [sym.imp.WS2_32.dll_send]
push 0x4000
push 0
push 0x4074e0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0x4000
push 0x4074e0
push dword [0x4074d8]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, 0x4074e0
mov dword [ebp - 0x38], 0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401410
sub ecx, edx
push ecx
push 0x4074e0
lea ecx, [ebp - 0x48]
call fcn.00402b20
cmp dword [ebp - 0x34], 0xf
lea ecx, [ebp - 0x48]
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x38]
cmova ecx, edi
cmp esi, 7
jne 0x40149a
mov edx, str.success
sub esi, 4
jb 0x401457
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40145c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x401446
cmp esi, 0xfffffffc
je 0x401490
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x401489
cmp esi, 0xfffffffd
je 0x401490
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x401489
cmp esi, 0xfffffffe
je 0x401490
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x401489
cmp esi, 0xffffffff
je 0x401490
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x401490
sbb eax, eax
or eax, 1
jmp 0x401492
xor eax, eax
mov byte [ebp - 0x2d], 1
test eax, eax
je 0x40149e
mov byte [ebp - 0x2d], 0
mov eax, dword [ebp - 0x34]
cmp eax, 0xf
jbe 0x4014d1
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4014c7
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40155c
push ecx
push edi
call fcn.00402fe8
add esp, 8
cmp byte [ebp - 0x2d], 0
je 0x4014f4
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
push 0
push dword [ebx + 0x18]
cmova eax, dword [ebx + 8]
push eax
push dword [0x4074d8]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x401524
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40151a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40155c
push ecx
push edx
call fcn.00402fe8
add esp, 8
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0xf
jbe 0x40156c
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401562
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401562
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00402fe8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00402d59
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret