Function at 0x409660
Capabilities:
Get hostname
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x65c
xor eax, eax
push ebx
mov dword [esp + 5], eax
push edi
mov dword [esp + 0xd], eax
mov ecx, 9
mov dword [esp + 0x11], eax
lea edi, [esp + 0x38]
mov dword [esp + 0x15], eax
mov ebx, dword [esp + 0x668]
mov word [esp + 0x19], ax
lea edx, [esp + 0x1c]
mov dword [esp + 0x34], eax
mov byte [esp + 0x1b], al
rep stosd dword es:[edi], eax
mov ecx, 0x1f
lea edi, [esp + 0x5d]
mov dword [esp + 0x20], eax
mov byte [esp + 0x5c], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ecx, ecx
push edx
mov dword [esp + 0x28], ecx
mov byte [esp + 0xc], 0
stosb byte es:[edi], al
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x30], ecx
push eax
push ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x4096f0
push str.ERROR::_getsockname_error
call fcn.0040b9a0
add esp, 4
mov eax, dword [esp + 0x28]
push ebp
lea ecx, [esp + 0xc]
push esi
push ecx
mov esi, eax
push eax
lea edx, [esp + 0x44]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.0040b5a0
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_ntohl]
lea ecx, [esp + 0x64]
push 0x80
push ecx
mov ebp, eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov ecx, 0x162
xor eax, eax
lea edi, [esp + 0xe4]
lea edx, [esp + 0xe4]
rep stosd dword es:[edi], eax
mov edi, 0x41e0e4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [0x456d90]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test al, al
mov dword [esp + 0xec], 1
je 0x409791
lea ecx, [esp + 0x10]
mov dword [esp + 0xe8], 0x16
push ecx
push 0x456d90
push ebp
push str._10u__s_pro_authenticate__s
jmp 0x4097ac
lea eax, [esp + 0x64]
lea ecx, [esp + 0x10]
push eax
push ecx
push ebp
mov dword [esp + 0xf4], 0x24
push str._10u__s__s
lea edx, [esp + 0x104]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea eax, [esp + 0xe4]
push 0
push 0x588
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
pop esi
cmp eax, 0xffffffff
pop ebp
jne 0x4097f3
push str.ERROR::_Send_access_auth_info_failed_
call fcn.0040b9a0
add esp, 4
or eax, 0xffffffff
pop edi
pop ebx
add esp, 0x65c
ret
mov ecx, 0x162
xor eax, eax
lea edi, [esp + 0xdc]
push eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xe0]
push 0x588
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x40983b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.ERROR::_Recv_access_auth_result_failed_
call fcn.0040b9a0
add esp, 4
or eax, 0xffffffff
pop edi
pop ebx
add esp, 0x65c
ret
push 3
lea edx, [esp + 0xe0]
push 0x41e0e4
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4098a4
cmp dword [esp + 0xe0], 0x26
jne 0x4098a4
lea eax, [esp + 0xec]
push eax
call fcn.004092f0
add esp, 4
test eax, eax
jne 0x409883
pop edi
mov eax, 1
pop ebx
add esp, 0x65c
ret
mov ecx, dword [0x4225c4]
test ecx, ecx
je 0x409896
push eax
call fcn.0040bd20
add esp, 4
pop edi
mov eax, 0xfffffffd
pop ebx
add esp, 0x65c
ret
push str.ERROR::_Recved_bad_access_auth_result_info_
call fcn.0040b9a0
add esp, 4
mov eax, 0xfffffffa
pop edi
pop ebx
add esp, 0x65c
ret