Function at 0x10082400
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c7638
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x100f7084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0xffffffff
jne 0x1008244d
xor al, al
jmp 0x1008265e
mov dword [ebp - 0x154], 1
lea eax, [ebp - 0x154]
push eax
push 0x8004667e
mov ecx, dword [ebp - 0x140]
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x10082489
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x1008265e
mov eax, 2
mov word [ebp - 0x20], ax
movzx ecx, word [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov ecx, dword [ebp + 8]
call fcn.10007050
push eax
lea ecx, [ebp - 0x38]
call fcn.10005de0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x38]
push edx
call fcn.1002bbb0
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.10005f30
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x100824f1
mov eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x1008265e
push 0x10
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1008254d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0x2714
je 0x1008254d
cmp dword [ebp - 0x148], 0x2733
je 0x1008254d
cmp dword [ebp - 0x148], 0x2734
je 0x1008254d
mov eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x1008265e
mov dword [ebp - 0x150], 1
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x144], 0
jmp 0x10082586
mov ecx, dword [ebp - 0x144]
add ecx, 1
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x144]
cmp edx, dword [ebp - 0x13c]
jae 0x100825ad
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp + eax*4 - 0x138]
cmp ecx, dword [ebp - 0x140]
jne 0x100825ab
jmp 0x100825ad
jmp 0x10082577
mov edx, dword [ebp - 0x144]
cmp edx, dword [ebp - 0x13c]
jne 0x100825e6
cmp dword [ebp - 0x13c], 0x40
jae 0x100825e6
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x140]
mov dword [ebp + eax*4 - 0x138], ecx
mov edx, dword [ebp - 0x13c]
add edx, 1
mov dword [ebp - 0x13c], edx
xor eax, eax
jne 0x1008256b
mov dword [ebp - 0x150], 1
mov dword [ebp - 0x14c], 0
lea ecx, [ebp - 0x150]
push ecx
push 0
lea edx, [ebp - 0x13c]
push edx
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jle 0x1008263e
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1008264f
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x1008265e
mov eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10086b0f
mov esp, ebp
pop ebp
ret