Function at 0x101cf80
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xaa0
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0xa98], rax
mov dword [rsp + 0xa84], 1
mov dword [rsp + 0x5f0], 1
movzx eax, word [0x01001c50]
mov word [rsp + 0x1f0], ax
lea rax, [rsp + 0x1f2]
mov rdi, rax
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
mov word [rsp + 0x600], 0
lea rax, [rsp + 0x602]
mov rdi, rax
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
movzx eax, byte [0x01002f82]
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 0x101d29d
mov rax, qword [rsp + 0xab0]
movzx eax, word [rax]
test eax, eax
je 0x101d29d
cmp qword [0x010693e0], 0
je 0x101d084
mov rcx, qword [0x010693e0]
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 0x101d133
call sub.WS2_32.dll_WSAGetLastError
mov dword [rsp + 0xa88], eax
mov r9d, 0x200
lea r8, [rsp + 0x1f0]
mov edx, 0x18d
mov rcx, qword [0x01069158]
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.01016110
jmp 0x101d13e
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 0x101d1dd
call sub.WS2_32.dll_WSAGetLastError
mov dword [rsp + 0xa88], eax
cmp dword [rsp + 0xa88], 0x2af9
jne 0x101d199
mov r9d, 0x200
lea r8, [rsp + 0x600]
mov edx, 0x18a
mov rcx, qword [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
jmp 0x101d1db
mov r9d, 0x200
lea r8, [rsp + 0x1f0]
mov edx, 0x18d
mov rcx, qword [0x01069158]
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.01016110
jmp 0x101d22b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x01003390]
mov rcx, qword [rsp + 0xab0]
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [0x010693e0], rax
cmp qword [0x010693e0], 0
jne 0x101d22b
call qword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
mov r8d, 0x400
lea rdx, [rsp + 0x600]
mov ecx, eax
call fcn.01053650
lea rcx, [rsp + 0x600]
call qword [sym.imp.MSVCR80.dll_wcslen]
test rax, rax
je 0x101d28e
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.010341e0
mov dword [rsp + 0xa84], 0
cmp dword [rsp + 0x5f0], 0
je 0x101d29d
call sub.WS2_32.dll_WSACleanup
mov eax, dword [rsp + 0xa84]
mov rcx, qword [rsp + 0xa98]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0xaa0
pop rdi
ret