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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov ebx, ecx
push 0x34
mov dword [ebp - 0x24], ebx
call dword [sym.imp.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_]
push 0x34
mov esi, eax
push 0
push esi
mov dword [ebp - 0x14], esi
call sub.MSVCRT.dll_memset
push dword [0x10005010]
call fcn.10003acf
add esp, 0x14
mov dword [esi + 0x20], eax
mov dword [esi + 0x14], ebx
mov eax, dword [0x10005010]
mov dword [esi + 0x2c], eax
push 1
push 0
push 0
push 6
push 1
push 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 0x1c], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
mov ebx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
lea edi, [ebx*4]
lea ecx, [edi + 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
push edi
push dword [ebp - 4]
mov esi, eax
push esi
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [ebp - 0xc]
lea edx, [ebx + 1]
mov dword [edi + esi], eax
add esp, 0xc
mov eax, dword [ebp - 0x10]
push dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ecx], edx
mov eax, dword [eax]
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x1c]
cmp eax, 0xffffffff
je 0x1000223c
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push 0x10005010
push 0x1002
push 0xffff
push eax
call edi
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x1001
push 0xffff
push dword [ebx + 0x1c]
call edi
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push 4
push 0xffff
push dword [ebx + 0x1c]
call edi
push 0
push 0
push dword [0x10005038]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push 0
push 0
push eax
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x10
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0xb5367df1
push eax
push 0xc8000006
push dword [esi]
mov dword [ebp - 0x34], 0x11cfcbac
mov dword [ebp - 0x30], 0x8000ca95
mov dword [ebp - 0x2c], 0x92a1485f
mov dword [ebp - 0x20], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10002260
mov esi, dword [ebx + 0x1c]
cmp esi, 0xffffffff
je 0x10002224
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0x80
push 0xffff
push esi
call edi
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
push 0
push 0
push dword [0x10005038]
mov dword [ebx + 0x1c], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_PostQueuedCompletionStatus]
push dword [ebx + 0x20]
call fcn.10003abc
push ebx
mov dword [ebx + 0x20], 0
call fcn.10003abc
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 0x20
push 0x20
push 0
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [esi]
call dword [ebp - 8]
test eax, eax
je 0x1000228b
mov ecx, dword [ebx + 0x1c]
call fcn.10001a60
jmp 0x10002224
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret