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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff99c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x664], edx
mov dword [ebp - 0x660], edx
mov dword [ebp - 0x65c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x46d574
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, esi
call fcn.00405530
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x46d556
xor edx, edx
push ebp
push 0x46d541
push dword fs:[edx]
mov dword fs:[edx], esp
lea ebx, [ebp - 8]
push 0
push 0
push ebx
push 0x400
lea eax, [ebp - 0x658]
push eax
push 0
push 0
push 0x4004747f
mov eax, dword [ebp - 4]
push eax
call sub.WS2_32.DLL_WSAIoctl
inc eax
je 0x46d537
mov eax, dword [ebp - 8]
mov ecx, 0x4c
cdq
idiv ecx
dec eax
test eax, eax
jl 0x46d537
inc eax
mov dword [ebp - 0xc], eax
lea ebx, [ebp - 0x654]
push esi
mov esi, ebx
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
push dword [ebp - 0x18]
call sub.wsock32.dll_inet_ntoa
mov edi, eax
push dword [esi]
push 0x46d58c
lea eax, [ebp - 0x65c]
mov edx, edi
call fcn.00405728
push dword [ebp - 0x65c]
push 0x46d59c
mov eax, esi
mov edx, 4
call fcn.004058e0
push esi
lea esi, [ebx + 0x30]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
push dword [ebp - 0x18]
call sub.wsock32.dll_inet_ntoa
mov edi, eax
push dword [esi]
push 0x46d5a8
lea eax, [ebp - 0x660]
mov edx, edi
call fcn.00405728
push dword [ebp - 0x660]
push 0x46d59c
mov eax, esi
mov edx, 4
call fcn.004058e0
push esi
lea esi, [ebx + 0x18]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
push dword [ebp - 0x18]
call sub.wsock32.dll_inet_ntoa
mov edi, eax
push dword [esi]
push 0x46d5bc
lea eax, [ebp - 0x664]
mov edx, edi
call fcn.00405728
push dword [ebp - 0x664]
push 0x46d59c
mov eax, esi
mov edx, 4
call fcn.004058e0
mov edi, dword [ebx - 4]
mov eax, edi
and eax, 1
dec eax
jne 0x46d485
push dword [esi]
push 0x46d5dc
push 0x46d59c
mov eax, esi
mov edx, 3
call fcn.004058e0
jmp 0x46d49d
push dword [esi]
push 0x46d5f4
push 0x46d59c
mov eax, esi
mov edx, 3
call fcn.004058e0
mov eax, edi
and eax, 2
cmp eax, 2
jne 0x46d4c1
push dword [esi]
push 0x46d60c
push 0x46d59c
mov eax, esi
mov edx, 3
call fcn.004058e0
jmp 0x46d4d9
push dword [esi]
push 0x46d628
push 0x46d59c
mov eax, esi
mov edx, 3
call fcn.004058e0
and edi, 4
cmp edi, 4
jne 0x46d4fb
push dword [esi]
push 0x46d644
push 0x46d59c
mov eax, esi
mov edx, 3
call fcn.004058e0
jmp 0x46d513
push dword [esi]
push 0x46d660
push 0x46d59c
mov eax, esi
mov edx, 3
call fcn.004058e0
push dword [esi]
push 0x46d59c
push 0x46d59c
mov eax, esi
mov edx, 3
call fcn.004058e0
add ebx, 0x4c
dec dword [ebp - 0xc]
jne 0x46d39e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46d54b
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_closesocket
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d57b
lea eax, [ebp - 0x664]
mov edx, 3
call fcn.00405554
ret