Function at 0x404ad0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a4a9
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x98
mov eax, dword [0x4612c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x9c], ecx
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x40], 0
je 0x404b1b
xor eax, eax
jmp 0x404e66
lea ecx, [ebp - 0x48]
call fcn.00404f80
mov dword [ebp - 4], 0
push 0x39
push 0xff
call fcn.0041c500
add esp, 8
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0x38c7
je 0x404b4d
jmp 0x404b4f
jmp 0x404b59
call fcn.00403e40
call fcn.00403f70
mov dword [ebp - 0x50], 0
push 0
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0
push 0xf
mov ecx, dword [ebp - 0x9c]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call sub.DNSAPI.dll_DnsQuery_A
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x404bd6
mov dword [ebp - 0x60], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00404ff0
mov eax, dword [ebp - 0x60]
jmp 0x404e66
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x58], edx
cmp dword [ebp - 0x58], 0
je 0x404c5c
mov eax, dword [ebp - 0x58]
movzx ecx, word [eax + 8]
cmp ecx, 0xf
jne 0x404c52
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x9c]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
jne 0x404c52
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0x58]
movzx ecx, word [eax + 0x1c]
push ecx
lea edx, [ebp - 0x88]
push edx
call fcn.00405eb0
add esp, 0xc
push eax
lea ecx, [ebp - 0x80]
call fcn.00405ed0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x48]
call fcn.004050c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.00404e90
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
mov dword [ebp - 0x58], edx
jmp 0x404bdc
cmp dword [ebp - 0x50], 0
je 0x404cab
push 1
mov eax, dword [ebp - 0x50]
push eax
call sub.DNSAPI.dll_DnsFree
mov byte [ebp - 4], 2
call fcn.00403d20
jmp 0x404c8f
mov dword [ebp - 4], 0
call fcn.00403d20
test eax, eax
je 0x404ca4
call fcn.00404220
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [ebp - 4], 4
call fcn.00403d20
test eax, eax
je 0x404cc6
call fcn.00404350
mov dword [ebp - 0x5c], 0
jmp 0x404cd8
mov ecx, dword [ebp - 0x5c]
add ecx, 1
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x48]
call fcn.00405050
cmp dword [ebp - 0x5c], eax
jae 0x404d3c
mov edx, dword [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x48]
call fcn.00405070
cmp dword [eax], 0x11
jne 0x404d3a
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x48]
call fcn.00405070
add eax, 4
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
test eax, eax
je 0x404d3a
mov ecx, dword [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00405070
add eax, 4
push eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.00401230
test eax, eax
je 0x404d38
call fcn.004269e0
jmp 0x404d3c
jmp 0x404ccf
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
test eax, eax
jne 0x404d7a
mov dword [ebp - 0x8c], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00404ff0
mov eax, dword [ebp - 0x8c]
jmp 0x404e66
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x404dc3
mov dword [ebp - 0x90], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00404ff0
mov eax, dword [ebp - 0x90]
jmp 0x404e66
push 4
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x9c]
add edx, 0x40
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 0x40], 0
jne 0x404e3a
mov dword [ebp - 0x94], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00404ff0
mov eax, dword [ebp - 0x94]
jmp 0x404e66
mov dword [ebp - 0x98], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00404ff0
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00449600
mov esp, ebp
pop ebp
ret