Function at 0x10014f20
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a2e65
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100bc040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor esi, esi
xorps xmm0, xmm0
mov dword [ebp - 0x44], 1
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x40], esi
cmp dword [edx + 0x10], esi
je 0x10014f8a
cmp dword [edx + 0x14], 0xf
mov esi, edx
jbe 0x10014f7a
mov esi, dword [edx]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 4
jmp 0x10014fa6
cmp dword [ecx + 0x10], esi
je 0x10014f99
cmp dword [ecx + 0x14], 0xf
mov esi, ecx
jbe 0x10014f99
mov esi, dword [ecx]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.10007c20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
push ecx
cmova eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x10015096
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x1001508f
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
nop dword [eax]
push 0x81
push 0
push 0
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10015025
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x10015081
cmp byte [ebp + 0x14], 0
je 0x1001503f
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 1
push 6
push edi
call ebx
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x10015052
mov dword [ebp - 0x14], edi
lea edx, [ebp - 0x14]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
cmp dword [esi + 4], 0x17
jne 0x1001506c
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x1b
push 0x29
push edi
call ebx
push esi
push edi
lea ecx, [ebp + 0x40]
call fcn.100096a0
test al, al
jne 0x100150c5
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10014ff0
mov esi, dword [ebp - 0x50]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
or edi, 0xffffffff
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x100150da
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100150d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100150d0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push dword [ebp - 0x50]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x10015099
push ecx
push edx
call fcn.100a0796
add esp, 8
mov ecx, dword [ebp + 0x3c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
test ecx, ecx
je 0x10015104
mov esi, dword [ecx]
lea eax, [ebp + 0x18]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a046e
mov esp, ebp
pop ebp
ret