Function at 0x40a37d
Capabilities:
Reference google public dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
push 8
call fcn.00438977
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x46c39b
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
push 8
call fcn.00438977
add esp, 4
mov dword [ebp - 0x10], eax
mov edi, eax
mov esi, 0x46c39b
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
jmp 0x40a3dc
cmp dword [ebp + 0x10], 0
jne 0x40a404
mov eax, 0x47f23d
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a3fe
push ebx
call fcn.00438983
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
cmp dword [ebp + 0x18], 0
jne 0x40a42c
mov eax, str.8.8.8.8
push eax
mov ebx, dword [ebp + 0x14]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a426
push ebx
call fcn.00438983
add esp, 4
pop eax
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0x47f247
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x47f247
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push str.nslookup__qt
mov ecx, 6
call fcn.0040106b
add esp, 0x18
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040aa22
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40a476
push ebx
call fcn.00438983
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a48a
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0040b2eb
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a4ae
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.004078db
push reloc.WSOCK32.dll_connect
push 0
push 0x46c304
push reloc.WSOCK32.dll_connect
push 0
push 0x47f247
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40a4f3
mov eax, 0x46c304
push eax
push 6
mov ebx, 0x180
call fcn.0043a890
add esp, 0x4c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a51d
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000101
push 0
push 9
push 1
mov ebx, 0x140
call fcn.0043a400
add esp, 0x10
mov dword [ebp - 0x14], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.004078db
push reloc.WSOCK32.dll_connect
push 0
push 0x46c304
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40a577
mov eax, 0x46c304
push eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40a58b
mov eax, 0x46c304
push eax
push 6
mov ebx, 0x180
call fcn.0043a890
add esp, 0x4c
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40a5b1
push ebx
call fcn.00438983
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a5c5
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0
push 0
push 0
push reloc.WSOCK32.dll_connect
push 0
push 0x47f22e
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40a5ee
mov eax, 0x46c304
push eax
push 3
mov ebx, 0x190
call fcn.00439440
add esp, 0x28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40a626
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40a622
imul eax, dword [ebx]
jmp 0x40a617
mov ecx, eax
test ecx, ecx
je 0x40a645
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40a63e
push ebx
push eax
call fcn.00438983
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40a62c
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x47f233
mov ecx, 2
call fcn.0040106b
add esp, 8
mov dword [ebp - 0x14], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40a690
mov eax, 0x46c304
push eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40a6a4
mov eax, 0x46c304
push eax
push 4
mov ebx, 0x148
call fcn.0043ab80
add esp, 0x34
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40a6ca
push ebx
call fcn.00438983
add esp, 4
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40a6de
mov eax, 0x46c304
jmp 0x40a939
mov ebx, dword [ebp - 8]
call fcn.004010c7
push ebx
push ecx
mov ebx, dword [ebp - 8]
call fcn.0040428d
dec eax
jns 0x40a700
push 4
call fcn.0043896b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40a713
push 1
call fcn.0043896b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
je 0x40a739
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00438977
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a74a
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40a761
mov eax, 0x46c304
push eax
push 1
mov ebx, 0x130
call fcn.00439ec0
add esp, 0x10
mov dword [ebp - 0x14], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WSOCK32.dll_connect
push 0
push 0x47f233
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40a7a8
mov eax, 0x46c304
push eax
push 4
mov ebx, 0x148
call fcn.0043ab80
add esp, 0x34
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fsub qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00402f03
push 0x80000301
push 0
push eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40a7f6
mov eax, 0x46c304
push eax
push 2
mov ebx, 0x138
call fcn.00439d40
add esp, 0x1c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a820
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040b6a8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a844
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push reloc.WSOCK32.dll_connect
push 0
push 0x47f2da
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40a86d
mov eax, 0x46c304
push eax
push 3
mov ebx, 0x190
call fcn.00439440
add esp, 0x28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40a8a5
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40a8a1
imul eax, dword [ebx]
jmp 0x40a896
mov ecx, eax
test ecx, ecx
je 0x40a8c4
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40a8bd
push ebx
push eax
call fcn.00438983
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40a8ab
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
call fcn.0040428d
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 4
jne 0x40a91f
push 0x47f2ba
push dword [ebp - 0xc]
call fcn.004010e7
add esp, 8
cmp eax, 0
je 0x40a91f
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40a91a
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00438977
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40a939
mov eax, 0x46c304
jmp 0x40a939
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a94a
push ebx
call fcn.00438983
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40a968
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40a964
imul eax, dword [ebx]
jmp 0x40a959
mov ecx, eax
test ecx, ecx
je 0x40a987
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40a980
push ebx
push eax
call fcn.00438983
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40a96e
call fcn.00438983
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a99f
push ebx
call fcn.00438983
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40a9bd
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40a9b9
imul eax, dword [ebx]
jmp 0x40a9ae
mov ecx, eax
test ecx, ecx
je 0x40a9dc
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40a9d5
push ebx
push eax
call fcn.00438983
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40a9c3
call fcn.00438983
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14