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

Disassembly:
sub esp, 0x24c
xor eax, eax
push ebx
mov dword [esp + 9], eax
push ebp
mov dword [esp + 0x11], eax
push esi
mov dword [esp + 0x19], eax
push edi
mov dword [esp + 0x21], eax
xor ebx, ebx
mov word [esp + 0x25], ax
mov ecx, 9
lea edi, [esp + 0x44]
mov dword [esp + 0x40], ebx
rep stosd dword es:[edi], eax
mov ecx, 0x18
lea edi, [esp + 0x69]
mov byte [esp + 0x68], bl
mov byte [esp + 0x194], bl
rep stosd dword es:[edi], eax
mov ecx, 0x31
lea edi, [esp + 0x195]
rep stosd dword es:[edi], eax
mov ecx, 0x31
lea edi, [esp + 0xcd]
mov byte [esp + 0xcc], bl
mov byte [esp + 0x27], al
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edx, [esp + 0x28]
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x30]
mov dword [esp + 0x34], ecx
push edx
mov dword [esp + 0x3c], ecx
push eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x268]
push ecx
mov byte [esp + 0x20], bl
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x40b30a
push str.ERROR::_getsockname_error
call fcn.0040b9a0
add esp, 4
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x14]
push edx
mov esi, eax
push eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.0040b5a0
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x10], eax
lea edx, [esp + 0xcc]
lea eax, [esp + 0x194]
push edx
push eax
call fcn.0040b0b0
add esp, 8
test eax, eax
jne 0x40b35c
push str.ERROR::_Get_Account_and_Domain_failed_
call fcn.0040b9a0
add esp, 4
cmp word [0x4223ac], bx
je 0x40b397
lea ecx, [esp + 0x68]
push 0x60
push ecx
push 0x4223ac
call fcn.0040bae0
mov al, byte [esp + 0x74]
add esp, 0xc
cmp al, bl
je 0x40b3d6
lea eax, [esp + 0x68]
cmp byte [eax], 0x20
jne 0x40b38d
mov byte [eax], 0x2b
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40b385
jmp 0x40b3d6
lea edx, [esp + 0x194]
push 0xc4
lea eax, [esp + 0x198]
push edx
push eax
call fcn.0040ba70
mov al, byte [esp + 0x1a0]
add esp, 0xc
cmp al, bl
je 0x40b3d6
lea eax, [esp + 0x194]
cmp byte [eax], 0x20
jne 0x40b3ce
mov byte [eax], 0x2b
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40b3c6
lea ecx, [esp + 0xcc]
push 0xc4
lea edx, [esp + 0xd0]
push ecx
push edx
call fcn.0040ba70
mov al, byte [esp + 0xd8]
add esp, 0xc
cmp al, bl
je 0x40b415
lea eax, [esp + 0xcc]
cmp byte [eax], 0x20
jne 0x40b40d
mov byte [eax], 0x2b
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40b405
mov ebp, dword [esp + 0x264]
mov ecx, 0x162
xor eax, eax
mov edi, ebp
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, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 4], 0x1e
mov dword [ebp + 8], 1
cmp word [0x4223ac], bx
lea esi, [ebp + 0x10]
je 0x40b47a
lea ecx, [esp + 0x14]
lea edx, [esp + 0xcc]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x6c]
push edx
push eax
push ecx
jmp 0x40b494
lea edx, [esp + 0x14]
lea eax, [esp + 0xcc]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x198]
push eax
push ecx
push edx
push str._10u__s__s_pro_authenticate__s
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x278]
add esp, 0x18
push ebx
push 0x588
push ebp
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40b4d8
push str.ERROR::_Send_AD_Auth_Info_Failed_
call fcn.0040b9a0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
mov ecx, 0x162
xor eax, eax
mov edi, ebp
push ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x264]
push 0x588
push ebp
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x40b517
push str.ERROR::_Recv_AD_Auth_Result_Failed_
call fcn.0040b9a0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
push 3
push 0x41e0e4
push ebp
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x40b57d
cmp dword [ebp + 4], 0x26
jne 0x40b57d
push esi
call fcn.004092f0
add esp, 4
cmp eax, ebx
jne 0x40b54f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24c
ret
cmp dword [0x4225c4], ebx
je 0x40b560
push eax
call fcn.0040bd20
add esp, 4
push str.ERROR::_AD_auth_info_error
call fcn.0040b9a0
add esp, 4
mov eax, 0xfffffffb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
push str.ERROR::_Recved_bad_AD_auth_result_info_
call fcn.0040b9a0
add esp, 4
mov eax, 0xfffffffa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret