Function at 0x1000c030
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:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
push 0x80
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov esi, dword [esp + 0x14c]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x1000c07a
call edi
cmp eax, 0x2726
jne 0x1000c07a
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x1000c0a0
call edi
mov ecx, dword [esp + 0x13c]
mov dword [ecx + 0x1748], eax
mov eax, 0x22a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
push 0
push eax
call fcn.1000c000
add esp, 8
test eax, eax
jne 0x1000c0d7
call edi
mov edx, dword [esp + 0x13c]
mov dword [edx + 0x1748], eax
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x247
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
mov edx, dword [esi]
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0x28]
push 4
push ecx
push 1
push 6
push edx
mov dword [esp + 0x3c], 1
call ebp
mov eax, dword [esp + 0x140]
mov ebx, dword [esp + 0x13c]
test eax, eax
jne 0x1000c148
mov edx, dword [ebx + 0x1e37]
mov cx, word [0x100745c0]
xor eax, eax
push edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x1c], 2
mov dword [esp + 0x20], eax
mov word [esp + 0x1e], cx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
mov ecx, 0x10
jmp 0x1000c14f
mov ecx, dword [esp + 0x144]
push ecx
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000c272
call edi
cmp eax, 0x2733
mov dword [esp + 0x10], eax
jne 0x1000c24d
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x34]
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x3c], eax
push 0
push edx
inc eax
push 0
push eax
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x1000c1de
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx + 0x1748], eax
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x249
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
jne 0x1000c1f9
mov ecx, dword [esi]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x1b4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
mov ecx, dword [esi]
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0x1007
push 0xffff
push ecx
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_getsockopt]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000c26c
mov dword [ebx + 0x1748], eax
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x24a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
mov dword [ebx + 0x1748], eax
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x3af
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi]
push 1
push ecx
call fcn.1000c000
add esp, 8
test eax, eax
jne 0x1000c2a4
call edi
mov dword [ebx + 0x1748], eax
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x248
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
mov ecx, dword [esi]
lea eax, [esp + 0x148]
push 4
push eax
push 0x1006
push 0xffff
push ecx
call ebp
cmp eax, 0xffffffff
jne 0x1000c2e3
call edi
mov dword [ebx + 0x1748], eax
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x22b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret