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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x34
mov ebx, ecx
call dword [sym.imp.mfc140u.dll_operator]
push 0x34
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
push dword [0x41b628]
call dword [sym.imp.mfc140u.dll_operator_1]
add esp, 0x14
mov dword [edi + 0x20], eax
mov dword [edi + 0x14], ebx
mov eax, dword [0x41b628]
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 0x410374
push dword [edi + 0x20]
mov esi, dword [sym.imp.mfc140u.dll_operator_2]
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.00411c65
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push 0x41b628
push 0x1002
push 0xffff
push eax
call esi
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x1001
push 0xffff
push dword [edi + 0x1c]
call esi
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push 4
push 0xffff
push dword [edi + 0x1c]
call esi
push 0
push 0
push dword [0x41c80c]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x410429
mov ecx, dword [edi + 0x1c]
call fcn.00411170
push edi
push 0
push 0
push dword [0x41c80c]
mov dword [edi + 0x1c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push dword [edi + 0x20]
mov esi, dword [sym.imp.mfc140u.dll_operator_2]
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.00411c65
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x28], 0
push eax
push 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0xb5367df1
push eax
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x11cfcbac
push eax
push 0xc8000006
push dword [ebx]
mov dword [ebp - 0xc], 0x8000ca95
mov dword [ebp - 8], 0x92a1485f
mov dword [ebp - 0x20], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4104c6
mov ecx, dword [edi + 0x1c]
call fcn.00411170
push edi
push 0
push 0
push dword [0x41c80c]
mov dword [edi + 0x1c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push dword [edi + 0x20]
mov esi, dword [sym.imp.mfc140u.dll_operator_2]
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.00411c65
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0x20
push 0x20
push 0
push dword [edi + 0x20]
push dword [edi + 0x1c]
push dword [ebx]
call dword [ebp - 0x28]
test eax, eax
je 0x410535
mov ecx, dword [edi + 0x1c]
call fcn.00411170
push edi
push 0
push 0
push dword [0x41c80c]
mov dword [edi + 0x1c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push dword [edi + 0x20]
mov esi, dword [sym.imp.mfc140u.dll_operator_2]
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.00411c65
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.00411c65
mov esp, ebp
pop ebp
ret