Function at 0x40f577
Capabilities:
Reference google public dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
push 0x14
call fcn.00515ee9
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 5
rep stosd dword es:[edi], eax
add ebx, 0x10
push ebx
push 0xc
call fcn.00515ee9
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0xc783e3
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push ebx
mov ebx, edi
mov ecx, 1
push ecx
push ebx
push 0xc
call fcn.00515ee9
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x40f5cb
pop ebx
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40f612
mov eax, 0x65d6b8
push eax
push 1
mov ebx, 0x51a920
call fcn.00515f01
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40f63c
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x65d6b8
push dword [ebp - 4]
call fcn.0040102b
add esp, 8
cmp eax, 0
je 0x40f67a
mov eax, dword [ebp - 4]
test eax, eax
je 0x40f675
push eax
mov ebx, eax
call fcn.004010d0
inc eax
push eax
call fcn.00515ee9
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40f795
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
push 1
mov eax, str.8.8.8.8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.0040f826
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40f6b2
push ebx
call fcn.00515eef
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f6cd
push ebx
call fcn.00515eef
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40f6ef
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40f6eb
imul eax, dword [ebx]
jmp 0x40f6e0
mov ecx, eax
test ecx, ecx
je 0x40f71e
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f70d
push ebx
call fcn.00515eef
add esp, 4
pop ebx
call fcn.00515eef
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40f6f5
call fcn.00515eef
add esp, 4
pop ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0
jne 0x40f752
mov eax, 0x65d6b8
jmp 0x40f795
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx + 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x40f790
push eax
mov ebx, eax
call fcn.004010d0
inc eax
push eax
call fcn.00515ee9
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40f795
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40f7a6
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f7bd
push ebx
call fcn.00515eef
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40f7df
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40f7db
imul eax, dword [ebx]
jmp 0x40f7d0
mov ecx, eax
test ecx, ecx
je 0x40f80e
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f7fd
push ebx
call fcn.00515eef
add esp, 4
pop ebx
call fcn.00515eef
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40f7e5
call fcn.00515eef
add esp, 4
pop ebx
call fcn.00515eef
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4