Function at 0x10027590
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016043d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1024ed04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
lea eax, [ebx + 0x94]
mov ecx, eax
mov dword [ebp - 0x20], eax
call fcn.10028730
mov edx, dword [ebx + 0x18]
lea ecx, [ebx + 0x2b4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [eax + 0x1c], edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10028370
mov edi, dword [ebp - 0x10]
test eax, eax
je 0x1002762d
mov esi, dword [edi + 0x34]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [ebx + 0x2b8]
sub eax, esi
cmp eax, dword [ebx + 0x1c]
jb 0x10027796
test ecx, ecx
je 0x100278bb
mov eax, dword [ebp - 0x18]
cmp dword [ecx + eax*4], 1
jne 0x100278bb
mov dword [ecx + eax*4], 0
test edi, edi
jne 0x10027647
lea ecx, [ebx + 0x84]
lea edx, [ebx + 0x94]
call fcn.100253c0
mov edi, eax
mov dword [ebp - 0x10], edi
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 8]
call fcn.100255c0
lea esi, [edi + 0x54]
push esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call dword [sym.imp.WINMM.dll_timeGetTime]
push dword [ebp + 0xc]
lea ecx, [edi + 0x8c]
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
call fcn.10028a70
mov ecx, dword [ebp + 0x14]
lea edx, [edi + 8]
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x24], eax
mov dword [ebp + 0x10], 0x1c
cmp ecx, edx
je 0x100276b1
cmp word [ecx], 2
mov eax, 0x10
cmovne eax, dword [ebp + 0x10]
push eax
push ecx
push edx
call fcn.10136fe0
add esp, 0xc
cmp dword [ebx + 0x17c], 0
je 0x100278bb
mov eax, dword [ebp + 8]
xor edx, edx
dec eax
mov ecx, dword [ebx + 0x1bc]
div dword [ebx + 0x178]
mov cl, byte [edx + ecx]
movzx ecx, cl
cmp eax, ecx
jne 0x100278bb
mov eax, dword [ebx + 0x17c]
cmp dword [eax + edx*4], 1
jne 0x100278bb
sub esp, 8
lea ecx, [ebx + 0x178]
push edi
push dword [ebp + 8]
call fcn.10028bd0
test eax, eax
je 0x100278bb
cmp dword [ebx + 0x4c], 0
je 0x100277cf
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push 0x8004667e
push dword [edi + 0x88]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x100278bb
push eax
push edi
push dword [ebx + 0x50]
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x100277c4
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp + 0x14]
mov eax, dword [edi + 0x88]
push edx
push 0
mov dword [edx + 0x34], eax
mov dword [edx + 0x18], 2
mov edx, 0x10
cmp word [ebx], 2
push 0
cmovne edx, dword [ebp + 0x10]
push 0
push edx
push ebx
push eax
call ecx
test eax, eax
jne 0x100277b3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ebx, ebx
cmp eax, 0x3e5
cmovne ebx, eax
jmp 0x10027870
test ecx, ecx
je 0x100278bb
mov eax, dword [ebp - 0x18]
cmp dword [ecx + eax*4], 1
jne 0x100278bb
mov dword [ecx + eax*4], edi
jmp 0x10027631
xor eax, eax
xor ebx, ebx
cmp eax, 0x3e5
cmovne ebx, eax
jmp 0x10027870
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002786e
mov ecx, dword [ebp + 0x14]
mov edx, 0x1c
mov eax, 0x10
cmp word [ecx], 2
cmovne eax, edx
push eax
push ecx
push dword [edi + 0x88]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10027868
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push 0x8004667e
push dword [edi + 0x88]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x100278bb
push eax
push edi
push dword [ebx + 0x50]
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x100277c4
push edi
mov ecx, ebx
mov dword [edi + 0x48], 1
call fcn.10025680
cmp eax, 2
je 0x10027854
push dword [ebp - 0x14]
mov ecx, ebx
push edi
call fcn.10026fb0
mov ebx, eax
xor eax, eax
jmp 0x10027875
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, 0x4c7
test ebx, ebx
cmove ebx, eax
jmp 0x10027870
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov eax, 1
test ebx, ebx
je 0x10027897
test eax, eax
je 0x10027897
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0
push edi
call fcn.10025ee0
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
call fcn.100287e0
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.1001f800
int3