Function at 0x405b40
Capabilities:
Create raw socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454d42
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x470074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4734b0]
push 0x34
mov dword [ebp - 0x1c], eax
call fcn.0043aab7
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
test esi, esi
je 0x405bd1
mov dword [esi + 0x14], 0
lea ecx, [esi + 0x30]
mov dword [esi + 0x18], 0xf
xor eax, eax
mov byte [esi + 4], 0
xchg dword [ecx], eax
mov eax, dword [0x4734b0]
xor ecx, ecx
mov edx, 8
mov eax, dword [eax + 0x40]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043aab7
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x405bd8
push esi
call fcn.0043aab2
add esp, 4
xor al, al
jmp 0x405dd9
add edi, 0x48
mov dword [ebp - 0x24], edi
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0xf
mov byte [edi + 0x54], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0xf
mov byte [edi + 0x6c], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0xf
mov byte [edi + 0x84], 0
lea esi, [edi + 0x9c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00407d50
mov dword [esi], eax
lea esi, [edi + 0xa4]
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00407d50
mov ecx, dword [ebp - 0x18]
xorps xmm0, xmm0
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0xbc], 0
mov dword [edi + 0xc0], 0xf
mov esi, dword [ebp - 0x20]
mov byte [edi + 0xac], 0
mov dword [edi + 0xd4], 0
mov dword [edi + 0xd8], 0xf
mov byte [edi + 0xc4], 0
mov dword [edi + 0xf0], 0
mov dword [edi + 0xf4], 0xf
mov byte [edi + 0xe0], 0
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0xf
mov byte [edi + 0x118], 0
mov dword [edi + 0x140], 0
mov dword [edi + 0x144], 0xf
mov byte [edi + 0x130], 0
mov dword [ebp - 4], 0xffffffff
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x1c], 0x4063b0
mov dword [ecx + 0x20], 0x406720
mov dword [ecx + 0x24], fcn.00406750
mov dword [ecx + 0x30], 0
mov ecx, edi
push edi
call fcn.00403200
mov eax, 1
lea ecx, [esi + 0x30]
lock xadd dword [ecx], eax
push 1
push 0
push 0
push 6
push 1
push 2
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, dword [ebp - 0x18]
mov dword [esi], eax
push edi
cmp eax, 0xffffffff
je 0x405dca
mov ecx, dword [ebp - 0x1c]
call fcn.00407030
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x20
push 0x20
push 0
lea eax, [edi + 0x190]
push eax
mov eax, dword [0x4734b0]
push dword [esi]
push dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
jne 0x405dd7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x405dd7
mov ecx, dword [ebp - 0x1c]
push edi
call fcn.00407090
push edi
push esi
call fcn.00406750
add esp, 8
xor al, al
jmp 0x405dd9
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d98c
mov esp, ebp
pop ebp
ret 4