Function at 0x1000aef0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1003c2e0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x2c], 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x40], eax
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x40], 0xffffffff
jne 0x1000af2c
xor eax, eax
jmp 0x1000b0bc
mov dword [ebp - 0x28], 0
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 4
lea ecx, [ebp - 0x28]
push ecx
push 0x9800000c
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 4
lea ecx, [ebp - 0x28]
push ecx
push 0xfffffffffffffffb
push 0xffff
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 0x28]
push ecx
push 4
push 0xffff
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x44], eax
mov dword [ebp - 8], 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
push ecx
call fcn.1000faf1
add esp, 4
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], edx
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x20]
mov byte [ecx], 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.1000fafc
add esp, 4
cmp dword [ebp - 8], 0
jne 0x1000b034
xor eax, eax
jmp 0x1000b0bc
mov edx, 2
mov word [ebp - 0x1c], dx
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a], ax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
push 0x30
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x44]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x1000b0b9
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x1000b0ac
cmp dword [ebp - 0x30], 0xffffffff
jne 0x1000b0a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1000b0ac
mov dword [ebp - 0x40], 0
jmp 0x1000b0b3
mov dword [ebp - 0x40], 1
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1000fb07
mov esp, ebp
pop ebp
ret 8