Function at 0x40b3e0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
sub esp, 0x194
lea eax, [esp + 4]
push ebx
push esi
push edi
push eax
mov esi, ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40b41f
push 0
push str.Error
push str.WSAStartup___failed
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x194
ret
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0x2c], eax
push 0
jne 0x40b475
push str.Error
push str.WSASocket___failed:error_is_10016
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esi + 0x24]
push str.WSASocket___failed:_error_is_10016
push 3
push 0x4cc
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x194
ret
lea edx, [esp + 0x10]
mov edi, dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0
push edx
lea ecx, [esi + 0x10c]
push 4
push ecx
push 0x10
push 0x495810
push 0xc8000006
push eax
call edi
cmp eax, 0xffffffff
push 0
jne 0x40b4e5
push str.Error
push str.Get_AcceptEx_failed:error_is_10017
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esi + 0x24]
push str.Get_AcceptEx_failed:_error_is_10017
push 3
push 0x4cc
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x194
ret
mov eax, dword [esi + 0x2c]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esi + 0x110]
push 4
push edx
push 0x10
push 0x495830
push 0xc8000006
push eax
call edi
cmp eax, 0xffffffff
push 0
jne 0x40b552
push str.Error
push str.Get_GetAcceptExSockaddrs_failed:_error_is_10018
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esi + 0x24]
push str.Get_GetAcceptExSockaddrs_failed:_error_is_10018
push 3
push 0x4cc
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x194
ret
mov edx, dword [esi + 0x2c]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esi + 0x114]
push 4
push ecx
push 0x10
push 0x495820
push 0xc8000006
push edx
call edi
cmp eax, 0xffffffff
jne 0x40b5bf
push 0
push str.Error
push str.Get_TransmitFile_failed:_error_is_10019
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esi + 0x24]
push str.Get_TransmitFile_failed:_error_is_10019
push 3
push 0x4cc
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x194
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x40b606
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push edi
push str.Error
push str.HeapAlloc___failed
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x194
ret
mov eax, dword [esi + 0x2c]
mov dword [edi + 4], 0
mov dword [edi], eax
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
push 0
push edi
push ecx
push edx
mov dword [esi + 0xc0], edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x40b67f
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0
push str.Error
push str.CreateIoCompletionPort_failed:error_is_10020
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esi + 0x24]
push str.CreateIoCompletionPort_failed:_error_is_10020
push 3
push 0x4cc
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x194
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x194
ret