Function at 0x408fd0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x412014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x34
mov esi, ecx
call dword [sym.imp.mfc140u.dll_operator_2]
push 0x34
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
push dword [0x4125f0]
call dword [sym.imp.mfc140u.dll_operator]
add esp, 0x14
mov dword [edi + 0x20], eax
mov dword [edi + 0x14], esi
mov eax, dword [0x4125f0]
mov dword [edi + 0x2c], eax
push 1
push 0
push 0
push 6
push 1
push 2
mov dword [edi + 0x30], 0
mov dword [edi + 0x18], 1
mov dword [edi + 0x1c], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [edi + 0x1c], eax
cmp eax, 0xffffffff
jne 0x409074
push dword [edi + 0x20]
mov esi, dword [sym.imp.mfc140u.dll_operator_1]
call esi
push edi
mov dword [edi + 0x20], 0
call esi
add esp, 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a775
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push 0x4125f0
push 0x1002
push 0xffff
push eax
call ebx
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x1001
push 0xffff
push dword [edi + 0x1c]
call ebx
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 4
push 0xffff
push dword [edi + 0x1c]
call ebx
push 0
push 0
push dword [0x413d34]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x409153
mov esi, dword [edi + 0x1c]
cmp esi, 0xffffffff
je 0x40910c
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push esi
call ebx
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push edi
push 0
push 0
push dword [0x413d34]
mov dword [edi + 0x1c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push dword [edi + 0x20]
mov esi, dword [sym.imp.mfc140u.dll_operator_1]
call esi
push edi
mov dword [edi + 0x20], 0
call esi
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a775
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], 0
push eax
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xb5367df1
push eax
push 0x10
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x11cfcbac
push eax
push 0xc8000006
push dword [esi]
mov dword [ebp - 0x10], 0x8000ca95
mov dword [ebp - 0xc], 0x92a1485f
mov dword [ebp - 0x24], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4091f0
mov ecx, dword [edi + 0x1c]
call fcn.00409cb0
push edi
push 0
push 0
push dword [0x413d34]
mov dword [edi + 0x1c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push dword [edi + 0x20]
mov esi, dword [sym.imp.mfc140u.dll_operator_1]
call esi
push edi
mov dword [edi + 0x20], 0
call esi
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a775
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 0x20
push 0x20
push 0
push dword [edi + 0x20]
push dword [edi + 0x1c]
push dword [esi]
call dword [ebp - 0x2c]
test eax, eax
je 0x40925f
mov ecx, dword [edi + 0x1c]
call fcn.00409cb0
push edi
push 0
push 0
push dword [0x413d34]
mov dword [edi + 0x1c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push dword [edi + 0x20]
mov esi, dword [sym.imp.mfc140u.dll_operator_1]
call esi
push edi
mov dword [edi + 0x20], 0
call esi
add esp, 8
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a775
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a775
mov esp, ebp
pop ebp
ret