Function at 0x4160a0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x818
mov eax, dword [0x45a7c0]
push ebp
mov ebp, dword [esp + 0x824]
mov dword [esp + 0x818], eax
xor edx, edx
mov ecx, 0x2ef
mov eax, ebp
div ecx
push esi
push edi
push 0x45b740
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00415f40
mov esi, dword [edi*4 + 0x45d4c0]
test esi, esi
je 0x4160ef
cmp dword [esi + 4], ebp
je 0x416158
mov esi, dword [esi]
test esi, esi
jne 0x4160e4
push 0x45a240
call fcn.0041f570
mov esi, eax
add esp, 4
test esi, esi
jne 0x416131
push 0x45b740
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0x828]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x814]
call fcn.004233fe
add esp, 0x818
ret
mov eax, dword [edi*4 + 0x45d4c0]
mov dword [esi], eax
mov dword [edi*4 + 0x45d4c0], esi
mov dword [esi + 4], ebp
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
inc dword [0x45e084]
push 0x45a240
call fcn.0041f570
mov edi, eax
add esp, 4
test edi, edi
jne 0x41619a
push 0x45b740
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x828]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x814]
call fcn.004233fe
add esp, 0x818
ret
mov ecx, dword [esi + 8]
inc ecx
mov eax, ecx
cmp eax, 0xa
mov dword [esi + 8], ecx
jne 0x4161cf
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4161cf
push ebp
push str.DENY
mov dword [esi + 0xc], 1
call fcn.00415d40
mov eax, dword [0x45e088]
add esp, 8
inc eax
mov dword [0x45e088], eax
push 0
mov dword [edi], 0
mov dword [edi + 4], esi
call fcn.00422e61
mov esi, dword [esp + 0x82c]
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
mov eax, dword [0x45e08c]
add esp, 4
test eax, eax
je 0x416202
mov edx, dword [0x45e090]
mov dword [edx], edi
jmp 0x416208
mov dword [0x45e08c], edi
push 4
push 0x465de8
push 0x1002
push 0xffff
push esi
mov dword [0x45e090], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [0x466454]
test eax, eax
je 0x41626e
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
mov edx, dword [esp + 0xc]
push edx
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.RCVBUF_:__d_errno_d__d_n
call fcn.0040ce60
add esp, 0x10
mov eax, dword [esp + 0x830]
test eax, eax
je 0x4162bc
cmp byte [eax], 0
je 0x4162bc
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040fea0
mov edi, eax
add esp, 8
test edi, edi
je 0x4162bc
push 0
push edi
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [0x462bb0]
mov eax, dword [0x462bb4]
add ecx, edi
adc eax, 0
mov dword [0x462bb0], ecx
mov dword [0x462bb4], eax
mov edi, dword [sym.imp.WS2_32.dll_recv]
push 0
push 0x80a
lea edx, [esp + 0x1c]
push edx
push esi
call edi
cmp eax, 0x80a
je 0x4162c2
mov edx, dword [0x45e080]
mov ecx, dword [0x462658]
inc edx
inc ecx
push 0x45b740
mov dword [0x45e080], edx
mov dword [0x462658], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x820]
pop edi
pop esi
pop ebp
call fcn.004233fe
add esp, 0x818
ret