Function at 0x101cd70
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xaa0
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0xa98], rax
mov dword [rsp + 0xa84], 1
mov dword [rsp + 0x5f0], 1
movzx eax, word [0x01001c38]
mov word [rsp + 0x1f0], ax
lea rax, [rsp + 0x1f2]
mov rdi, rax
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
movzx eax, word [0x01001c38]
mov word [rsp + 0x600], ax
lea rax, [rsp + 0x602]
mov rdi, rax
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
movzx eax, byte [0x01002f72]
mov byte [rsp + 0xa00], al
lea rax, [rsp + 0xa01]
mov rdi, rax
xor eax, eax
mov ecx, 0x7f
rep stosb byte [rdi], al
mov qword [rsp + 0xa90], 0
mov word [rsp + 0xa80], 0
mov dword [rsp + 0xa88], 0
mov r8d, 0x198
xor edx, edx
lea rcx, [rsp + 0x50]
call sub.MSVCR80.dll_memset
cmp qword [rsp + 0xab0], 0
je 0x101d092
mov rax, qword [rsp + 0xab0]
movzx eax, word [rax]
test eax, eax
je 0x101d092
cmp qword [0x010683e0], 0
je 0x101ce79
mov rcx, qword [0x010683e0]
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rax, [rsp + 0xa00]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0xab0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov word [rsp + 0xa80], 0x101
lea rdx, [rsp + 0x50]
movzx ecx, word [rsp + 0xa80]
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x101cf28
call sub.WS2_32.dll_WSAGetLastError
mov dword [rsp + 0xa88], eax
mov r9d, 0x200
lea r8, [rsp + 0x1f0]
mov edx, 0x18d
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, dword [rsp + 0xa88]
lea r8, [rsp + 0x1f0]
mov edx, 0x200
lea rcx, [rsp + 0x600]
call fcn.01015ef0
jmp 0x101cf33
mov dword [rsp + 0x5f0], 1
lea rcx, [rsp + 0xa00]
call sub.WS2_32.dll_gethostbyname
mov qword [rsp + 0xa90], rax
cmp qword [rsp + 0xa90], 0
jne 0x101cfd2
call sub.WS2_32.dll_WSAGetLastError
mov dword [rsp + 0xa88], eax
cmp dword [rsp + 0xa88], 0x2af9
jne 0x101cf8e
mov r9d, 0x200
lea r8, [rsp + 0x600]
mov edx, 0x18a
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
jmp 0x101cfd0
mov r9d, 0x200
lea r8, [rsp + 0x1f0]
mov edx, 0x18d
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, dword [rsp + 0xa88]
lea r8, [rsp + 0x1f0]
mov edx, 0x200
lea rcx, [rsp + 0x600]
call fcn.01015ef0
jmp 0x101d020
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x01003380]
mov rcx, qword [rsp + 0xab0]
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [0x010683e0], rax
cmp qword [0x010683e0], 0
jne 0x101d020
call qword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
mov r8d, 0x400
lea rdx, [rsp + 0x600]
mov ecx, eax
call fcn.010529a0
lea rcx, [rsp + 0x600]
call qword [sym.imp.MSVCR80.dll_wcslen]
test rax, rax
je 0x101d083
lea rax, [rsp + 0x600]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 2
mov rax, qword [rsp + 0xab0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 4
mov r8d, 0xc000013c
mov edx, 1
mov ecx, 3
call fcn.01033610
mov dword [rsp + 0xa84], 0
cmp dword [rsp + 0x5f0], 0
je 0x101d092
call sub.WS2_32.dll_WSACleanup
mov eax, dword [rsp + 0xa84]
mov rcx, qword [rsp + 0xa98]
xor rcx, rsp
call fcn.010588f0
add rsp, 0xaa0
pop rdi
ret