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

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
push 0
push 1
mov eax, dword [edi + 0x2c]
mov ebx, dword [edi + 4]
and eax, 0x1000000
neg eax
sbb eax, eax
and eax, 0x15
add eax, 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4809b2
mov ebp, dword [reloc.WS2_32.dll_WSAGetLastError]
call ebp
test eax, eax
jg 0x480970
call ebp
jmp 0x48097a
call ebp
movzx eax, ax
or eax, 0x80070000
mov dword [esi + 0x20], eax
mov dword [esi + 0x38], 0
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4809a3
mov eax, dword [eax + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x28]
mov dword [eax + 0x38], esi
mov dword [ebx + 0x28], esi
inc dword [edi + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esi + 0x38], esi
mov dword [ebx + 0x28], esi
inc dword [edi + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
invalid
test eax, eax
jne 0x480a24
call dword [0x4eb0cc]
test eax, eax
mov eax, dword [0x4eb0cc]
jg 0x4809d4
call eax
jmp 0x4809de
call eax
movzx eax, ax
or eax, 0x80070000
mov dword [esi + 0x20], eax
mov dword [esi + 0x38], 0
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x480a0e
mov eax, dword [eax + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x28]
push ebp
mov dword [eax + 0x38], esi
mov dword [ebx + 0x28], esi
inc dword [edi + 0x3c]
call dword [0x4eb3ac]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esi + 0x38], esi
mov dword [ebx + 0x28], esi
inc dword [edi + 0x3c]
push ebp
call dword [0x4eb3ac]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea ecx, [esi + 0x20]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
test dword [edi + 0x2c], 0x100000
je 0x480a49
mov eax, dword [esi + 0x160]
or eax, 1
mov dword [esi + 0x30], eax
push ecx
lea eax, [esp + 0x14]
push eax
push 0x80
push 0x80
push 0
lea eax, [esi + 0x40]
push eax
mov eax, dword [edi + 0xa4]
push ebp
push dword [edi + 0x90]
call eax
test eax, eax
je 0x480a90
test dword [edi + 0x2c], 0x40000
je 0x480af2
mov dword [esi + 0x3c], ebp
mov edx, esi
inc dword [edi + 0x3c]
mov ecx, ebx
call fcn.00480410
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [0x4eb0cc]
cmp eax, 0x3e5
je 0x480af2
call dword [0x4eb3b8]
test eax, eax
mov eax, dword [reloc.WS2_32.dll_WSAGetLastError]
jg 0x480ab0
call eax
jmp 0x480aba
call eax
movzx eax, ax
or eax, 0x80070000
mov edx, esi
mov dword [esi + 0x20], eax
mov ecx, ebx
call fcn.00480410
inc dword [edi + 0x3c]
push ebp
call dword [0x4eb3ac]
test dword [edi + 0x2c], 0x100000
je 0x480b54
push dword [esi + 0x30]
call dword [0x4eb070]
pop edi
mov dword [esi + 0x160], 0
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esi + 0x3c], ebp
inc dword [edi + 0x3c]
test dword [edi + 0x2c], 0x100000
je 0x480b54
cmp dword [esi + 0x164], 0xffffffff
lea eax, [esi + 0x164]
jne 0x480b54
push 4
push 0xffffffffffffffff
push esi
push 0x4808f0
push dword [esi + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x480b54
mov ebp, dword [0x4eb0cc]
call ebp
test eax, eax
jg 0x480b3b
call ebp
jmp 0x480b45
call ebp
movzx eax, ax
or eax, 0x80070000
mov edx, esi
mov dword [esi + 0x20], eax
mov ecx, ebx
call fcn.00480410
inc dword [edi + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret