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

Disassembly:
mov eax, 0x2cac
call fcn.0042e160
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2cc8]
lea edx, [esp + 0x4bc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4258e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2cc0]
not ecx
dec ecx
push eax
mov edi, ecx
call dword [sym.imp.wsock32.dll_inet_addr]
mov edx, dword [esp + 0x2cc4]
xor ecx, ecx
mov dword [esp + 0x18], ecx
push edx
mov dword [esp + 0x20], ecx
mov esi, eax
mov dword [esp + 0x24], ecx
mov word [esp + 0x1c], 2
mov dword [esp + 0x28], ecx
call dword [sym.imp.wsock32.dll_htons]
xor ebp, ebp
mov word [esp + 0x1a], ax
push ebp
push 1
push 2
mov dword [esp + 0x28], esi
call dword [sym.imp.wsock32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42595a
pop edi
pop esi
pop ebp
mov eax, 0x80040209
pop ebx
add esp, 0x2cac
ret
lea eax, [esp + 0x18]
push 0x10
push eax
push esi
call dword [sym.imp.wsock32.dll_connect]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 1
push ecx
push 0x8004667e
push esi
call dword [sym.imp.wsock32.dll_ioctlsocket]
push ebp
lea edx, [esp + 0x4c0]
push edi
push edx
push esi
call dword [sym.imp.wsock32.dll_send]
lea edi, [esp + 0x4bc]
call dword [sym.imp.ws2_32.dll_WSACreateEvent]
push 1
push eax
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.ws2_32.dll_WSAEventSelect]
mov dword [esp + 0x14], ebp
push 0
push 0x1f4
lea eax, [esp + 0x18]
push 0
push eax
push 1
call dword [sym.imp.ws2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x425a31
test eax, eax
jne 0x425a23
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push edx
push esi
call dword [sym.imp.ws2_32.dll_WSAEnumNetworkEvents]
test byte [esp + 0x2c], 1
je 0x425a23
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x425a23
mov eax, 0x2800
push 0
sub eax, ebp
push eax
push edi
push esi
call dword [sym.imp.wsock32.dll_recv]
test eax, eax
je 0x425a31
jle 0x425a0e
add edi, eax
add ebp, eax
lea ecx, [esp + 0x4bc]
push ebp
push ecx
call fcn.004257d0
add esp, 8
test al, al
jne 0x425a31
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 5
mov dword [esp + 0x14], eax
jl 0x4259b1
mov edx, dword [esp + 0x10]
push 0
push edx
push esi
call dword [sym.imp.ws2_32.dll_WSAEventSelect]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ws2_32.dll_WSACloseEvent]
mov edi, dword [sym.imp.wsock32.dll_closesocket]
push esi
call edi
test ebp, ebp
jg 0x425a67
pop edi
pop esi
pop ebp
mov eax, 0x80040203
pop ebx
add esp, 0x2cac
ret
push esi
call edi
cmp ebp, 0xffffffff
jne 0x425a7f
pop edi
pop esi
pop ebp
mov eax, 0x80040203
pop ebx
add esp, 0x2cac
ret
mov ebx, dword [esp + 0x2ccc]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x4bc]
mov edi, ebx
lea eax, [esp + 0xbc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp], 0
call fcn.00425370
add esp, 8
test al, al
jne 0x425b07
lea ecx, [esp + 0x58]
or esi, 0xffffffff
push ecx
push 0x4041f0
push ebx
call fcn.00425690
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x425aee
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.msvcrt.dll_atoi]
add esp, 4
mov esi, eax
push esi
call fcn.004257c0
add esp, 4
mov eax, 0x80040211
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2cac
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2cac
ret