Function at 0x100c3f0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 1
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x100e114], eax
cmp dword [0x100e114], 0xffffffff
jne 0x100c436
or eax, 0xffffffff
jmp 0x100c65e
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 4
lea ecx, [ebp - 0xc]
push ecx
push 0x8004667e
mov edx, dword [0x100e114]
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [ebp - 0x1c], eax
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0x28000017
mov ecx, dword [0x100e114]
push ecx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x100c4a2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2733
je 0x100c4a2
or eax, 0xffffffff
jmp 0x100c65e
mov dword [ebp - 0x14], 0x96
mov edx, 1
test edx, edx
je 0x100c530
cmp dword [ebp - 4], 0
je 0x100c4c5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100c4e3
or eax, 0xffffffff
jmp 0x100c65e
push 0
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
push 0x48000016
mov edx, dword [0x100e114]
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x100c530
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x271e
jne 0x100c526
jmp 0x100c4a9
mov eax, 0xfffffffe
jmp 0x100c65e
mov dword [ebp - 0x10], 0
jmp 0x100c542
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx]
jge 0x100c5e6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*8 + 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0
je 0x100c588
mov ecx, dword [ebp - 0x20]
cmp dword [ecx], 0
je 0x100c588
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 2
jne 0x100c588
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
cmp dword [eax + 4], 0
jne 0x100c58a
jmp 0x100c5e1
push 0x76c
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov word [edx + 2], ax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push ecx
call fcn.0100c6b0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x100c5e1
push 1
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
push ecx
call fcn.0100bfc0
test eax, eax
jne 0x100c5e1
mov edx, dword [ebp - 0x24]
push edx
call fcn.0100c760
mov eax, dword [ebp - 0x24]
push eax
call fcn.01002160
jmp 0x100c539
jmp 0x100c539
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp dword [0x100e2d8], 0x100e2d8
jne 0x100c65c
mov word [ebp - 0x34], 2
push 0x1001d64
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x30], eax
push 0x76c
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x32], ax
lea edx, [ebp - 0x34]
push edx
call fcn.0100c6b0
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x100c65c
push 1
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x20
push ecx
call fcn.0100bfc0
test eax, eax
jne 0x100c65c
mov edx, dword [ebp - 0x38]
push edx
call fcn.0100c760
mov eax, dword [ebp - 0x38]
push eax
call fcn.01002160
xor eax, eax
mov esp, ebp
pop ebp
ret