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

Disassembly:
sub esp, 0x73c
xor eax, eax
push ebx
mov dword [esp + 0xd], eax
push edi
mov dword [esp + 0x15], eax
mov ecx, 9
mov dword [esp + 0x19], eax
lea edi, [esp + 0x38]
mov dword [esp + 0x1d], eax
mov byte [esp + 0x13c], 0
mov word [esp + 0x21], ax
mov byte [esp + 0xbc], 0
mov dword [esp + 0x34], eax
mov byte [esp + 0x23], al
rep stosd dword es:[edi], eax
mov ecx, 0x17
lea edi, [esp + 0x5d]
mov dword [esp + 8], eax
mov byte [esp + 0x5c], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x13d]
mov ebx, dword [esp + 0x748]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xbd]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ecx, ecx
push edx
mov dword [esp + 0x28], ecx
mov byte [esp + 0x14], 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 + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x409986
push str.ERROR::_getsockname_error
call fcn.0040b9a0
add esp, 4
mov eax, dword [esp + 0x28]
push ebp
lea ecx, [esp + 0x14]
push esi
push ecx
mov esi, eax
push eax
lea edx, [esp + 0x44]
lea eax, [esp + 0x18]
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 0x60
push ecx
push 0x422a38
mov ebp, eax
call fcn.0040ba70
lea edx, [esp + 0x150]
push 0x80
push edx
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.0040bf70
lea ecx, [esp + 0xe0]
push 0x80
push ecx
mov edi, 0x422a58
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x422a58
call fcn.0040bf70
mov ecx, 0x162
xor eax, eax
lea edi, [esp + 0x1f0]
lea edx, [esp + 0x1f0]
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
lea edx, [esp + 0xf0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x170]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x44]
mov dword [esp + 0x1f4], 0x21
push ecx
push edx
push eax
push ebp
lea ecx, [esp + 0x210]
push str._10u__s__s_pro_authenticate__s
push ecx
mov dword [esp + 0x210], 1
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x44
lea edx, [esp + 0x1c4]
push 0
push 0x588
push edx
push ebx
call dword [sym.imp.WS2_32.dll_send]
pop esi
pop ebp
cmp eax, 0xffffffff
jne 0x409aae
push str.ERROR::_Send_local_auth_info_failed_
call fcn.0040b9a0
add esp, 4
or eax, 0xffffffff
pop edi
pop ebx
add esp, 0x73c
ret
mov ecx, 0x162
xor eax, eax
lea edi, [esp + 0x1bc]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c0]
push 0x588
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x409af0
push str.ERROR::_Recv_local_auth_result_failed_
call fcn.0040b9a0
add esp, 4
or eax, 0xffffffff
pop edi
pop ebx
add esp, 0x73c
ret
push 3
lea ecx, [esp + 0x1c0]
push 0x41e0e4
push ecx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x409b66
cmp dword [esp + 0x1c0], 0x26
jne 0x409b66
lea edx, [esp + 0x1cc]
push edx
call fcn.004092f0
add esp, 4
test eax, eax
jne 0x409b38
pop edi
mov eax, 1
pop ebx
add esp, 0x73c
ret
mov ecx, dword [0x4225c4]
test ecx, ecx
je 0x409b4b
push eax
call fcn.0040bd20
add esp, 4
push str.ERROR::_Local_auth_info_error
call fcn.0040b9a0
add esp, 4
mov eax, 0xfffffffb
pop edi
pop ebx
add esp, 0x73c
ret
push str.ERROR::_Recved_bad_local_auth_result_info_
call fcn.0040b9a0
add esp, 4
mov eax, 0xfffffffa
pop edi
pop ebx
add esp, 0x73c
ret