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

Disassembly:
sub esp, 0x7bc
xor eax, eax
push ebx
mov dword [esp + 0xd], eax
push esi
mov dword [esp + 0x15], eax
push edi
mov dword [esp + 0x1d], eax
xor ebx, ebx
mov dword [esp + 0x21], eax
mov ecx, 9
mov word [esp + 0x25], ax
lea edi, [esp + 0x3c]
mov dword [esp + 0x38], ebx
mov byte [esp + 0x27], al
rep stosd dword es:[edi], eax
mov ecx, 0x17
lea edi, [esp + 0x61]
mov byte [esp + 0x60], bl
mov byte [esp + 0xc0], bl
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 + 0xc1]
mov byte [esp + 0x140], bl
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 + 0x141]
mov byte [esp + 0x1c0], bl
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 + 0x1c1]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
xor ecx, ecx
push edx
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x18], bl
stosw word es:[edi], ax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], 0x10
stosb byte es:[edi], al
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x7d0]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x409c70
push str.ERROR::_getsockname_error
call fcn.0040b9a0
add esp, 4
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push ebp
push edx
mov esi, eax
push eax
lea eax, [esp + 0x44]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0040b5a0
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_ntohl]
mov ebp, eax
mov eax, dword [esp + 0x7d4]
lea edx, [esp + 0x64]
push 0x60
push edx
push eax
call fcn.0040ba70
lea ecx, [esp + 0xd0]
push 0x80
push ecx
lea edx, [esp + 0x78]
push eax
push edx
call fcn.0040bf70
mov edx, dword [esp + 0x7f4]
lea eax, [esp + 0x160]
push 0x80
push eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0040bf70
mov edx, dword [esp + 0x808]
lea ecx, [esp + 0x1f0]
push 0x80
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0040bf70
mov ecx, 0x162
xor eax, eax
lea edi, [esp + 0x280]
add esp, 0x3c
rep stosd dword es:[edi], eax
mov edi, 0x41e0e4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x244]
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 [esp + 0xc4]
and ecx, 3
cmp al, bl
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x248], 0x22
mov dword [esp + 0x24c], 1
je 0x409dac
cmp byte [esp + 0x144], bl
je 0x409dac
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c4]
push ecx
lea eax, [esp + 0x148]
push edx
lea ecx, [esp + 0xcc]
push eax
push ecx
push ebp
lea edx, [esp + 0x268]
push str._10u__s__s__s_pro_authenticate__s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
jmp 0x409dc3
push ebp
lea eax, [esp + 0x258]
push str._10u
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov esi, dword [esp + 0x7d0]
push ebx
lea ecx, [esp + 0x248]
push 0x588
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
pop ebp
jne 0x409dff
push str.ERROR::_Send_localauth_changepassword_info_failed_
call fcn.0040b9a0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x7bc
ret
push ebx
lea edx, [esp + 0x244]
mov ecx, 0x162
xor eax, eax
lea edi, [esp + 0x244]
push 0x588
push edx
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x409e42
push str.ERROR::_Recv_localauth_changepassword_result_failed_
call fcn.0040b9a0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x7bc
ret
push 3
lea eax, [esp + 0x244]
push 0x41e0e4
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x409eab
cmp dword [esp + 0x244], 0x26
jne 0x409eab
lea ecx, [esp + 0x250]
push ecx
call fcn.004092f0
add esp, 4
cmp eax, ebx
jne 0x409e8b
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x7bc
ret
cmp dword [0x4225c4], ebx
je 0x409e9c
push eax
call fcn.0040bd20
add esp, 4
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
add esp, 0x7bc
ret
push str.ERROR::_Recved_bad_localauth_changepassword_result_info_
call fcn.0040b9a0
add esp, 4
mov eax, 0xfffffffa
pop edi
pop esi
pop ebx
add esp, 0x7bc
ret