Function at 0x10001c10
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
push 0x34
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0x34
xor ebx, ebx
mov edi, eax
push ebx
push edi
call sub.MSVCRT.dll_memset
mov eax, dword [0x10005010]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x14
push 1
push ebx
push ebx
push 6
mov dword [edi + 0x20], eax
mov dword [edi + 0x14], ebp
mov ecx, dword [0x10005010]
push 1
push 2
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ebx
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 0x10001c9a
mov edx, dword [edi + 0x20]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
mov dword [edi + 0x20], ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push 0x10005010
push 0x1002
push 0xffff
push eax
call esi
push 4
lea eax, [esp + 0x14]
push eax
push 0x1001
mov dword [esp + 0x1c], ebx
mov ecx, dword [edi + 0x1c]
push 0xffff
push ecx
call esi
push 4
lea edx, [esp + 0x18]
push edx
push 4
mov dword [esp + 0x20], 1
mov eax, dword [edi + 0x1c]
push 0xffff
push eax
call esi
mov ecx, dword [0x10005028]
mov edx, dword [edi + 0x1c]
push ebx
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
test eax, eax
jne 0x10001d45
mov esi, dword [edi + 0x1c]
call fcn.100016d0
mov eax, dword [0x10005028]
push edi
push ebx
push ebx
push eax
mov dword [edi + 0x1c], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_PostQueuedCompletionStatus]
mov ecx, dword [edi + 0x20]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
mov dword [edi + 0x20], ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebp]
push 4
mov edx, 0xcbac
mov word [esp + 0x34], dx
lea edx, [esp + 0x44]
push edx
mov eax, 0x11cf
push 0x10
mov word [esp + 0x3e], ax
lea eax, [esp + 0x38]
push eax
push 0xc8000006
push ecx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x44], 0xb5367df1
mov byte [esp + 0x4c], 0x95
mov byte [esp + 0x4d], 0xca
mov byte [esp + 0x4e], bl
mov byte [esp + 0x4f], 0x80
mov byte [esp + 0x50], 0x5f
mov byte [esp + 0x51], 0x48
mov byte [esp + 0x52], 0xa1
mov byte [esp + 0x53], 0x92
mov dword [esp + 0x3c], ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10001dfb
mov esi, dword [edi + 0x1c]
call fcn.100016d0
mov edx, dword [0x10005028]
push edi
push ebx
push ebx
push edx
mov dword [edi + 0x1c], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_PostQueuedCompletionStatus]
mov eax, dword [edi + 0x20]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
mov dword [edi + 0x20], ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebp]
push 0x20
push 0x20
mov dword [esp + 0x2c], ebx
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x1c]
push ebx
push edx
push eax
push ecx
call dword [esp + 0x54]
test eax, eax
je 0x10001e61
mov esi, dword [edi + 0x1c]
call fcn.100016d0
mov edx, dword [0x10005028]
push edi
push ebx
push ebx
push edx
mov dword [edi + 0x1c], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_PostQueuedCompletionStatus]
mov eax, dword [edi + 0x20]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
mov dword [edi + 0x20], ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 8
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4