Function at 0x40f704
Capabilities:
Reference cloudflare dns server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4207de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
mov dword [ebp - 0x17c], ecx
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00410c10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00410b00
lea ecx, [ebp - 0x30]
call fcn.00410ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x24]
call fcn.004031a7
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x48]
call fcn.00410c10
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00412618
mov byte [ebp - 4], 3
push 0x428190
lea ecx, [ebp - 0xd8]
call fcn.00412618
mov dword [ebp - 0x180], eax
mov edx, dword [ebp - 0x180]
mov dword [ebp - 0x184], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x184]
push eax
lea ecx, [ebp - 0xec]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0041299b
mov dword [ebp - 0x188], eax
mov edx, dword [ebp - 0x188]
mov dword [ebp - 0x18c], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00412979
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xec]
call fcn.00412862
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd8]
call fcn.00412862
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.004127f9
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64]
call fcn.00410ef0
lea ecx, [ebp - 0x3c]
call fcn.00410d00
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
test edx, edx
jle 0x40fd10
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00410cb0
lea ecx, [ebp - 0x6c]
call fcn.00410f30
mov edx, dword [eax]
mov dword [ebp - 0x68], edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x18
call fcn.00412d5a
and eax, 0xff
test eax, eax
je 0x40f8e2
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0xf4], ecx
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xf0], edx
cmp dword [ebp - 0xf0], 0
je 0x40f8b5
push 1
mov ecx, dword [ebp - 0xf0]
call fcn.00410b20
mov dword [ebp - 0x190], eax
jmp 0x40f8bf
mov dword [ebp - 0x190], 0
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0xf8]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00410e30
lea ecx, [ebp - 0x3c]
call fcn.00410d00
mov dword [ebp - 0x28], eax
jmp 0x40f83d
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x68]
add ecx, 0x18
call fcn.00412d5a
and eax, 0xff
test eax, eax
je 0x40fb5d
mov dword [ebp - 0x70], 0
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x48]
call fcn.00410cb0
jmp 0x40f924
push 0
lea ecx, [ebp - 0xfc]
push ecx
lea ecx, [ebp - 0x74]
call fcn.00410f50
lea edx, [ebp - 0x100]
push edx
lea ecx, [ebp - 0x48]
call fcn.00410ce0
push eax
lea ecx, [ebp - 0x74]
call fcn.00410f80
and eax, 0xff
test eax, eax
je 0x40f99e
lea ecx, [ebp - 0x74]
call fcn.00410f30
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x68]
add ecx, 4
push ecx
mov ecx, dword [ebp - 0x78]
add ecx, 4
call fcn.00413194
and eax, 0xff
test eax, eax
je 0x40f999
mov edx, dword [ebp - 0x68]
add edx, 0x18
push edx
mov ecx, dword [ebp - 0x78]
add ecx, 0x18
call fcn.00413171
and eax, 0xff
test eax, eax
je 0x40f999
mov eax, dword [ebp - 0x70]
add eax, 1
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 1
jle 0x40f999
jmp 0x40f99e
jmp 0x40f913
cmp dword [ebp - 0x70], 1
jle 0x40fafd
push 0
lea ecx, [ebp - 0x80]
call fcn.00410f10
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00410cb0
lea edx, [ebp - 0x104]
push edx
lea ecx, [ebp - 0x48]
call fcn.00410ce0
push eax
lea ecx, [ebp - 0x7c]
call fcn.00410f80
and eax, 0xff
test eax, eax
je 0x40faac
lea ecx, [ebp - 0x7c]
call fcn.00410f30
mov eax, dword [eax]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x68]
add ecx, 4
push ecx
mov ecx, dword [ebp - 0x84]
add ecx, 4
call fcn.00413194
and eax, 0xff
test eax, eax
je 0x40fa96
mov edx, dword [ebp - 0x68]
add edx, 0x18
push edx
mov ecx, dword [ebp - 0x84]
add ecx, 0x18
call fcn.00413171
and eax, 0xff
test eax, eax
je 0x40fa96
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x108], ecx
cmp dword [ebp - 0x108], 0
je 0x40fa69
push 1
mov ecx, dword [ebp - 0x108]
call fcn.00410b20
mov dword [ebp - 0x194], eax
jmp 0x40fa73
mov dword [ebp - 0x194], 0
mov edx, dword [ebp - 0x7c]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x48]
call fcn.00410e30
mov ecx, dword [eax]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], edx
jmp 0x40f9be
push 0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00410f50
jmp 0x40f9be
push 0
lea ecx, [ebp - 0x118]
call fcn.00410f10
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x80]
call fcn.00410f80
and eax, 0xff
test eax, eax
je 0x40fae8
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x80]
push eax
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00410d80
mov edx, dword [ebp - 0x6c]
push edx
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00410e30
jmp 0x40fb4d
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x124], edx
cmp dword [ebp - 0x124], 0
je 0x40fb30
push 1
mov ecx, dword [ebp - 0x124]
call fcn.00410b20
mov dword [ebp - 0x198], eax
jmp 0x40fb3a
mov dword [ebp - 0x198], 0
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00410e30
lea ecx, [ebp - 0x3c]
call fcn.00410d00
mov dword [ebp - 0x28], eax
jmp 0x40f83d
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x68]
add ecx, 4
call fcn.00413171
and eax, 0xff
test eax, eax
je 0x40fcec
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x48]
call fcn.00410cb0
lea ecx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00410ce0
push eax
lea ecx, [ebp - 0x88]
call fcn.00410f80
and eax, 0xff
test eax, eax
je 0x40fc3b
lea ecx, [ebp - 0x88]
call fcn.00410f30
mov edx, dword [eax]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x68]
add eax, 4
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 4
call fcn.00413194
and eax, 0xff
test eax, eax
je 0x40fc22
mov ecx, dword [ebp - 0x68]
add ecx, 0x18
push ecx
mov ecx, dword [ebp - 0x8c]
add ecx, 0x18
call fcn.00413171
and eax, 0xff
test eax, eax
je 0x40fc22
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x48]
call fcn.00410e30
mov ecx, dword [eax]
mov dword [ebp - 0x88], ecx
jmp 0x40fb88
push 0
lea edx, [ebp - 0x138]
push edx
lea ecx, [ebp - 0x88]
call fcn.00410f50
jmp 0x40fb88
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x48]
call fcn.00410d50
push 0x428194
lea ecx, [ebp - 0x14c]
call fcn.00412618
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x19c]
mov dword [ebp - 0x1a0], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x1a0]
push edx
lea eax, [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x18
call fcn.0041299b
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x1a8], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x1a8]
push edx
lea ecx, [ebp - 0x5c]
call fcn.00412979
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x160]
call fcn.00412862
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14c]
call fcn.00412862
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x164]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00410e30
lea ecx, [ebp - 0x3c]
call fcn.00410d00
mov dword [ebp - 0x28], eax
jmp 0x40f83d
mov edx, dword [ebp - 0x6c]
push edx
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00410e30
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00410d50
jmp 0x40f83d
lea edx, [ebp - 0x16c]
push edx
lea ecx, [ebp - 0x48]
call fcn.00410cb0
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
jmp 0x40fd37
push 0
lea ecx, [ebp - 0x170]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00410f50
lea edx, [ebp - 0x174]
push edx
lea ecx, [ebp - 0x48]
call fcn.00410ce0
push eax
lea ecx, [ebp - 0x64]
call fcn.00410f80
and eax, 0xff
test eax, eax
je 0x40fdd7
lea ecx, [ebp - 0xac]
call fcn.00404590
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x64]
call fcn.00410f30
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xa0]
call sub.MFC42.DLL_CString::operator
push 0x428198
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CString::operator_1
push 0x4281a0
lea ecx, [ebp - 0x98]
call sub.MFC42.DLL_CString::operator_1
push str.1.0.0.1
lea ecx, [ebp - 0xa4]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0xac]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00408f40
mov ecx, eax
call fcn.00404332
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xac]
call fcn.004044e0
jmp 0x40fd26
lea ecx, [ebp - 0x48]
call fcn.00410d00
test eax, eax
jbe 0x40fe25
lea edx, [ebp - 0xbc]
push edx
lea ecx, [ebp - 0x48]
call fcn.00410d20
mov ecx, dword [eax]
add ecx, 0x18
call fcn.00412881
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00410aa0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 0x178], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.00412862
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00412862
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00410c50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00410ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00410c50
mov al, byte [ebp - 0x178]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc