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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4360cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xac]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
call sub.MFC42D.DLL_Ordinal_492
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
call fcn.00404610
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00403a70
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x14]
call sub.MFC42D.DLL_Ordinal_734
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call sub.MFC42D.DLL_Ordinal_684
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call sub.MFC42D.DLL_Ordinal_734
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
push ecx
mov edx, esp
mov dword [ebp - 0x30], esp
push ecx
mov ecx, edx
call sub.MFC42D.DLL_Ordinal_485
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xc0
call fcn.0040b710
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call sub.MFC42D.DLL_Ordinal_734
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call sub.MFC42D.DLL_Ordinal_684
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.ComputerName
call sub.MFC42D.DLL_Ordinal_487
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push str.SystemCurrentControlSetcontrolComputerNameComputerName
call sub.MFC42D.DLL_Ordinal_487
mov dword [ebp - 0x64], eax
push reloc.WS2_32.dll_bind
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.00403df0
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call sub.MFC42D.DLL_Ordinal_734
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call sub.MFC42D.DLL_Ordinal_684
mov esi, esp
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x70]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x70], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x70], 0xffffffff
jne 0x4028c5
push 0
push 0
push str.socket___failed
call sub.MFC42D.DLL_Ordinal_1136
mov word [ebp - 0x24], 2
mov esi, esp
push 0xea60
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov word [ebp - 0x22], ax
lea ecx, [ebp - 0x14]
call sub.MFC42D.DLL_Ordinal_880
mov esi, esp
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 0x20], eax
mov esi, esp
push 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x70]
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x402931
push 0
push 0
push str.bind___failed
call sub.MFC42D.DLL_Ordinal_1136
mov esi, esp
push 1
push 0x465
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x74]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x74], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x74], 0xffffffff
jne 0x40299d
push 0
push 0
push str.socket___failed
call sub.MFC42D.DLL_Ordinal_1136
mov esi, esp
push 0xea61
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov word [ebp - 0x22], ax
mov esi, esp
push 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x74]
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4029e8
push 0
push 0
push str.bind___failed
call sub.MFC42D.DLL_Ordinal_1136
mov esi, esp
push accept
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x74]
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
cmp eax, 0xffffffff
jne 0x402a16
push 0
push 0
push str.listen___failed
call sub.MFC42D.DLL_Ordinal_1136
mov esi, esp
push 8
push 0x465
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x74]
push edx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 0x44], 3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42D.DLL_Ordinal_684
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xac
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret 4