Function at 0x1072569
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 0x10725a4
call fcn.0107223e
cmp byte [esi + 4], 0
je 0x107278b
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x107278b
cmp dword [esi + 0x10], ebx
jne 0x107278b
cmp byte [ebp + 0x14], 0
mov ecx, dword [0x1113c80]
jne 0x10725d4
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 0x107272b
cmp dword [ebp - 0x2c], 0x80
jge 0x107271c
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 0x10726e2
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 0x1072656
push dword [ebp - 0x20]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x28]
jmp 0x10726e2
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x10726da
push dword [ebp - 0x28]
lea ecx, [ebp - 0xc0]
call fcn.01040007
push dword [eax]
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0xbc]
cmp dword [ebp - 0xc0], eax
je 0x107269c
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 0x10726d5
push dword [ebp - 0x20]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x28]
jmp 0x10726da
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 0x10725fc
cmp dword [ebp - 0x18], 0
jl 0x107272b
mov dword [ebp - 0x18], 0x8100030b
jmp 0x1072792
push 0x100cd9c
lea ecx, [ebp - 0x30]
call fcn.010384b1
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 0x1072792
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x107277a
mov dword [ebp - 0x18], 0x80004005
jmp 0x107279f
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 0x1072792
mov dword [ebp - 0x18], 0x80004005
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x107279f
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.0105eca9
leave
ret 0x10