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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x111121c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
mov di, word [eax]
xor ebx, ebx
mov esi, ecx
cmp byte [esi + 0x14], bl
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], edi
jne 0x1072504
call fcn.0107219e
cmp byte [esi + 4], 0
je 0x10726eb
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x10726eb
cmp dword [esi + 0x10], ebx
jne 0x10726eb
cmp byte [ebp + 0x14], 0
mov ecx, dword [0x1113c80]
jne 0x1072534
mov ecx, dword [0x1113c84]
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x20], ecx
push dword [ebp - 0x20]
mov ecx, dword [eax]
movzx edi, di
push edi
push eax
call dword [ecx + 0x20]
mov dword [ebp - 0x2c], ebx
cmp eax, ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x18], eax
jl 0x107268b
cmp dword [ebp - 0x2c], 0x80
jge 0x107267c
mov eax, dword [ebp - 0x1c]
and dword [ebp - 0x28], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
call dword [ecx + 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1072642
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push eax
call dword [ecx + 0x24]
movzx eax, word [ebp + 0xc]
cmp dword [ebp - 0x3c], eax
jne 0x10725b6
push dword [ebp - 0x20]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x28]
jmp 0x1072642
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x107263a
push dword [ebp - 0x28]
lea ecx, [ebp - 0xc0]
call fcn.0103ff67
push dword [eax]
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0xbc]
cmp dword [ebp - 0xc0], eax
je 0x10725fc
push dword [ebp - 0xc0]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0x30]
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call sub.WSOCK32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov word [ebp - 0x14], 2
call sub.WSOCK32.dll_bind
test eax, eax
jne 0x1072635
push dword [ebp - 0x20]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x28]
jmp 0x107263a
call sub.WSOCK32.dll_WSAGetLastError
push dword [ebp - 0x18]
call sub.WSOCK32.dll_closesocket
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x1c], 0
inc dword [ebp - 0x24]
movzx edi, word [ebp - 0x24]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x20]
push edi
push eax
call dword [ecx + 0x20]
push dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
call ebx
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x18], 0
jge 0x107255c
cmp dword [ebp - 0x18], 0
jl 0x107268b
mov dword [ebp - 0x18], 0x8100030b
jmp 0x10726f2
push 0x100cd8c
lea ecx, [ebp - 0x30]
call fcn.01038411
mov ecx, dword [eax]
mov eax, dword [esi + 8]
mov edx, dword [eax]
lea edi, [ebp - 0x1c]
push edi
mov edi, dword [ebp - 0x24]
push ecx
movzx ecx, word [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 0x34]
push ecx
push dword [ebp - 0x20]
movzx ecx, di
push ecx
push eax
call dword [edx + 0x2c]
push dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
call ebx
cmp dword [ebp - 0x18], 0
jl 0x10726f2
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x10726da
mov dword [ebp - 0x18], 0x80004005
jmp 0x10726ff
mov ecx, dword [ebp - 0x38]
mov word [ecx], di
mov dword [esi + 0x10], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
jmp 0x10726f2
mov dword [ebp - 0x18], 0x80004005
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10726ff
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
call fcn.0105ec09
leave
ret 0x10