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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
call fcn.004022b1
add esp, 0xc
test eax, eax
je 0x4031b1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call fcn.004022b1
add esp, 0xc
test eax, eax
je 0x4031b1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
call fcn.004022b1
add esp, 0xc
test eax, eax
je 0x4031b1
mov edi, dword [sym.imp.WS2_32.dll_send]
lea eax, [ebp - 4]
push ebx
push 4
push eax
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x4030b0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, str._ERROR___s:_d__send_failed._Last_error:__d__0x_lx_
push 0x49
jmp 0x4031c0
push ebx
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x4030d4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, str._ERROR___s:_d__send_failed._Last_error:__d__0x_lx_
push 0x52
jmp 0x4031c0
push ebx
push 4
lea eax, [ebp - 8]
push eax
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x4030f8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, str._ERROR___s:_d__send_failed._Last_error:__d__0x_lx_
push 0x5c
jmp 0x4031c0
push ebx
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x40311c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, str._ERROR___s:_d__send_failed._Last_error:__d__0x_lx_
push 0x65
jmp 0x4031c0
push ebx
push 4
lea eax, [ebp - 0xc]
push eax
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x403140
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, str._ERROR___s:_d__send_failed._Last_error:__d__0x_lx_
push 0x6e
jmp 0x4031c0
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x403161
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, str._ERROR___s:_d__send_failed._Last_error:__d__0x_lx_
push 0x77
jmp 0x4031c0
push ebx
push 8
lea eax, [ebp + 0x14]
push eax
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x403185
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, str._ERROR___s:_d__send_failed._Last_error:__d__0x_lx_
mov ebx, 0x81
jmp 0x4031c1
push ebx
push 1
push dword [ebp + 0x1c]
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4031ac
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, str._ERROR___s:_d__recv_failed._Last_error:__d__0x_lx_
mov ebx, 0x89
jmp 0x4031c1
xor eax, eax
inc eax
jmp 0x4031db
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, str._ERROR___s:_d__Encoding::Utf16ToUtf8_failed._Last_error:__d__0x_lx_
push 0x3e
pop ebx
mov dword [ebp + 8], eax
call esi
push dword [ebp + 8]
push eax
push ebx
push str.C:ProjectsClientClientwinsock.cpp
push edi
call fcn.004020af
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x18