Function at 0x10011950
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d665
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1003600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 1
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.10002a40
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x50]
call fcn.1000e170
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x10011a11
mov dword [ebp - 0x60], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001d70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.10003940
mov eax, dword [ebp - 0x60]
jmp 0x10011b68
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
jmp 0x10011a22
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x10011b39
push 0x80
push 0
push 0
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xffffffff
jne 0x10011a77
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xffffffff
jne 0x10011a7f
jmp 0x10011a19
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x10011aa2
mov dword [ebp - 0x14], 1
push 4
lea edx, [ebp - 0x14]
push edx
push 1
push 6
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp + 0x18]
call fcn.1000c180
movzx ecx, al
test ecx, ecx
je 0x10011abd
mov edx, dword [ebp - 0x5c]
push edx
lea ecx, [ebp + 0x18]
call fcn.10015f10
mov eax, dword [ebp - 0x58]
cmp dword [eax + 4], 0x17
jne 0x10011ae1
mov dword [ebp - 0x18], 0
push 4
lea ecx, [ebp - 0x18]
push ecx
push 0x1b
push 0x29
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
lea ecx, [ebp + 0x40]
call fcn.10005090
movzx edx, al
test edx, edx
je 0x10011b28
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001d70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.10003940
mov eax, dword [ebp - 0x64]
jmp 0x10011b68
mov edx, dword [ebp - 0x5c]
push edx
call fcn.10004a40
add esp, 4
jmp 0x10011a19
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [ebp - 0x68], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001d70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.10003940
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002b03c
mov esp, ebp
pop ebp
ret