Function at 0x100648b
Capabilities:
Initialize winsock library
Resolve dns
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 1
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
cmp dword [ebp + 8], 2
mov ebx, dword [ebp + 0xc]
jne 0x1006504
mov eax, dword [ebx + 4]
push 2
mov edi, 0x1001374
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10064ff
push 3
mov edi, 0x1001370
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10064ff
push 3
mov edi, 0x100136c
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10064ff
mov esi, eax
push 6
mov edi, 0x1001364
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1006504
call fcn.0100556c
push 0x1017960
push 0x202
xor edi, edi
call dword [sym.imp.WSOCK32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x1006529
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0x26
call fcn.0100bd97
call fcn.0100c33d
cmp eax, 0xffffffff
jne 0x100654a
push 0x27
push 2
call fcn.0100bd21
pop ecx
pop ecx
mov dword [ebp - 4], 1
jmp 0x10069c6
push 0x10
push 1
call fcn.01009d5c
mov dword [0x1013554], eax
cmp eax, edi
jne 0x1006568
mov dword [ebp - 4], 0xe
jmp 0x10069c6
call fcn.010063c5
mov esi, dword [ebp + 8]
jmp 0x1006585
mov eax, dword [ebx]
cmp byte [eax], 0x2d
jne 0x100658b
inc eax
cmp byte [eax], 0
je 0x100658b
push eax
call fcn.01005de3
add ebx, 4
dec esi
jne 0x1006572
cmp esi, 2
jg 0x10064ff
cmp esi, edi
je 0x10065a2
mov eax, dword [ebx]
cmp byte [eax], 0x2d
je 0x10065a2
mov dword [ebp - 0x10], eax
cmp esi, 2
jne 0x1006733
add ebx, 4
push dword [ebx]
lea eax, [ebp - 0x60]
push eax
call fcn.0100d27e
test eax, eax
je 0x10065e5
mov eax, dword [0x1011978]
cmp eax, edi
je 0x1006684
push 0x10
pop ecx
lea esi, [ebp - 0x60]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [0x1011974], 1
xor edi, edi
jmp 0x1006684
lea eax, [ebp - 8]
push eax
push edi
push edi
push dword [ebx]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x100665f
cmp dword [ebp - 8], edi
je 0x100665f
mov eax, dword [ebp - 8]
xor esi, esi
cmp eax, edi
je 0x100664b
cmp dword [eax + 0x18], edi
je 0x100663f
cmp esi, dword [0x1011974]
jb 0x100662a
push 0x40
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [esi*4 + 0x1011978], eax
cmp eax, edi
je 0x100655c
mov eax, dword [ebp - 8]
push edi
push edi
push edi
push dword [eax + 0x18]
push dword [esi*4 + 0x1011978]
call fcn.0100d471
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
inc esi
cmp esi, 0xa
jb 0x1006601
push dword [ebp - 8]
mov dword [0x1011974], esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [ebp - 8], edi
jmp 0x1006684
push dword [ebx]
push 0x28
push 2
call fcn.0100bd21
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0xa
call dword [sym.imp.msvcrt.dll_fputc]
add esp, 0x14
mov dword [0x1011974], edi
cmp dword [0x1011974], edi
je 0x1006733
mov eax, dword [0x1011978]
push dword [0x1013554]
mov dword [0x1013558], eax
push eax
push eax
call fcn.0100b278
test eax, eax
je 0x1006940
push dword [0x1013558]
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp + 8], edi
call fcn.0100d382
push 0xc
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov ecx, dword [0x1013554]
mov dword [ecx], eax
mov eax, dword [0x1013554]
cmp dword [eax], edi
je 0x100655c
push 0x100135c
push 0xc
push dword [eax]
call sub.msvcrt.dll_strcpy_s
add esp, 0xc
push 1
call fcn.0100d689
mov ecx, dword [0x1013554]
mov dword [ecx + 8], eax
mov eax, dword [0x1013554]
cmp dword [eax + 8], edi
je 0x100655c
push 1
push dword [eax + 8]
call fcn.0100d5b9
mov eax, dword [0x1013554]
push edi
push edi
push dword [0x1013558]
push dword [eax + 8]
call fcn.0100d77f
jmp 0x1006940
push edi
push edi
push 0x1030
mov dword [ebp - 0x1c], edi
call sub.DNSAPI.dll_DnsQueryConfigAllocEx
mov ebx, eax
cmp ebx, edi
je 0x10068bb
mov eax, dword [0x1011974]
mov dword [0x1011974], edi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], eax
mov dword [ebp + 8], edi
cmp esi, edi
jbe 0x1006794
lea edi, [ebx + 0x28]
cmp word [edi - 8], 0x17
jne 0x100678b
push edi
call fcn.01005525
test eax, eax
je 0x100678b
inc dword [ebp + 8]
add edi, 0x40
cmp dword [ebp + 8], esi
jb 0x100676d
jmp 0x1006792
mov dword [ebp - 0x14], 1
xor edi, edi
mov dword [ebp + 8], edi
cmp esi, edi
jbe 0x10068a7
lea eax, [ebx + 0x20]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], edi
je 0x10067c4
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x17
jne 0x10067c4
add eax, 8
push eax
call fcn.01005525
test eax, eax
jne 0x1006894
cmp dword [ebp - 0x18], edi
jne 0x1006802
mov eax, dword [ebp - 0xc]
push dword [0x1013554]
mov dword [0x1013558], eax
push eax
push eax
call fcn.0100b278
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x1c], eax
jne 0x10067fb
push dword [0x1013558]
lea eax, [ebp - 0x18]
push eax
push edi
mov dword [ebp - 0x18], edi
call fcn.0100d382
mov dword [ebp - 0x18], 1
cmp dword [0x1011974], 0xa
jae 0x10068a7
mov eax, dword [ebp - 0x20]
cmp dword [0x1011974], eax
jb 0x1006842
push 0x40
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov ecx, dword [0x1011974]
mov dword [ecx*4 + 0x1011978], eax
mov eax, dword [0x1011974]
cmp dword [eax*4 + 0x1011978], edi
je 0x1006971
mov eax, dword [0x1011974]
mov edi, dword [eax*4 + 0x1011978]
mov esi, dword [ebp - 0xc]
push 0x10
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x1011974]
mov eax, dword [eax*4 + 0x1011978]
cmp word [eax], 2
jne 0x1006871
mov ecx, 0x3500
mov word [eax + 2], cx
mov eax, dword [0x1011974]
mov eax, dword [eax*4 + 0x1011978]
cmp word [eax], 0x17
jne 0x100688c
mov ecx, 0x3500
mov word [eax + 2], cx
inc dword [0x1011974]
xor edi, edi
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0xc], 0x40
cmp eax, dword [ebx + 4]
jb 0x10067a5
push 0x1030
push ebx
call sub.DNSAPI.dll_DnsFreeConfigStructure
cmp dword [ebp - 0x1c], edi
jne 0x1006940
mov eax, dword [0x1011978]
push 0xc
mov dword [0x1013558], eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov ecx, dword [0x1013554]
mov dword [ecx], eax
mov eax, dword [0x1013554]
cmp dword [eax], edi
je 0x100655c
push 0x100135c
push 0xc
push dword [eax]
call sub.msvcrt.dll_strcpy_s
add esp, 0xc
push 1
call fcn.0100d689
mov ecx, dword [0x1013554]
mov dword [ecx + 8], eax
mov eax, dword [0x1013554]
cmp dword [eax + 8], edi
je 0x100655c
push 1
push dword [eax + 8]
call fcn.0100d5b9
mov eax, dword [0x1013554]
push edi
push edi
push dword [0x1013558]
push dword [eax + 8]
call fcn.0100d77f
cmp ebx, edi
jne 0x1006940
push 0x2a
push 2
call fcn.0100bd21
pop ecx
pop ecx
mov eax, dword [0x1013554]
cmp dword [eax], edi
je 0x100655c
push dword [eax]
push 0x100
push 0x1017b00
call sub.msvcrt.dll_strcpy_s
add esp, 0xc
cmp dword [ebp - 0x10], edi
je 0x1006981
push edi
push dword [ebp - 0x10]
call fcn.010058a3
jmp 0x10069c6
push 0x1030
push ebx
call sub.DNSAPI.dll_DnsFreeConfigStructure
jmp 0x100655c
push dword [0x1013554]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x2b
add eax, 0x20
push eax
call fcn.0100a15a
mov esi, dword [sym.imp.msvcrt.dll_printf]
mov edi, 0x1001358
push edi
call esi
mov ebx, dword [sym.imp.msvcrt.dll_fflush]
jmp 0x10069b0
push edi
call esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call ebx
pop ecx
pop ecx
call fcn.01006f1d
test eax, eax
jne 0x10069ad
cmp dword [ebp - 8], 0
je 0x10069d5
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [0x1013554]
test eax, eax
je 0x10069e4
push eax
call fcn.0100a48c
xor esi, esi
cmp dword [0x1011974], esi
jbe 0x1006a0a
mov eax, dword [esi*4 + 0x1011978]
test eax, eax
je 0x1006a01
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
inc esi
cmp esi, dword [0x1011974]
jb 0x10069ee
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_exit]
int3