Function at 0x404900
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c469
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4632c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x40], 0
je 0x404944
xor eax, eax
jmp 0x404c11
lea ecx, [ebp - 0x44]
call fcn.00404d20
mov dword [ebp - 4], 0
mov dword [ebp - 0x4c], 0
push 0
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0
push 0xf
mov ecx, dword [ebp - 0x98]
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 - 0x50], eax
call fcn.0041cb40
test eax, eax
je 0x40498e
call fcn.00403ff0
call fcn.00428bd0
cmp dword [ebp - 0x50], 0
je 0x4049b7
mov dword [ebp - 0x5c], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00404d90
mov eax, dword [ebp - 0x5c]
jmp 0x404c11
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0
je 0x404a6c
mov eax, dword [ebp - 0x54]
movzx ecx, word [eax + 8]
cmp ecx, 0xf
jne 0x404a5f
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x98]
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 0x404a5f
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0x54]
movzx ecx, word [eax + 0x1c]
push ecx
lea edx, [ebp - 0x84]
push edx
call fcn.00405c20
add esp, 0xc
push eax
lea ecx, [ebp - 0x7c]
call fcn.00405c40
mov byte [ebp - 4], 1
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00404e60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00404c30
push 0x2e
push 0x86
call fcn.0041c6a0
add esp, 8
cmp eax, 0x1814
jne 0x404a5f
call fcn.0041c760
test eax, eax
je 0x404a5f
call fcn.00446a30
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx]
mov dword [ebp - 0x54], edx
jmp 0x4049bd
cmp dword [ebp - 0x4c], 0
je 0x404a84
push 1
mov eax, dword [ebp - 0x4c]
push eax
call sub.DNSAPI.dll_DnsFree
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x2c]
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], 2
call fcn.00403d00
test eax, eax
je 0x404a9f
call fcn.00424570
mov dword [ebp - 0x58], 0
jmp 0x404ab1
mov ecx, dword [ebp - 0x58]
add ecx, 1
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x44]
call fcn.00404df0
cmp dword [ebp - 0x58], eax
jae 0x404b07
mov edx, dword [ebp - 0x58]
push edx
lea ecx, [ebp - 0x44]
call fcn.00404e10
cmp dword [eax], 0x11
jne 0x404b05
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x44]
call fcn.00404e10
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 0x404b05
mov ecx, dword [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00404e10
add eax, 4
push eax
lea ecx, [ebp - 0x2c]
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__]
jmp 0x404b07
jmp 0x404aa8
lea ecx, [ebp - 0x2c]
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 0x404b45
mov dword [ebp - 0x88], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
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 - 0x44]
call fcn.00404d90
mov eax, dword [ebp - 0x88]
jmp 0x404c11
lea ecx, [ebp - 0x2c]
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 - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x404b8e
mov dword [ebp - 0x8c], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
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 - 0x44]
call fcn.00404d90
mov eax, dword [ebp - 0x8c]
jmp 0x404c11
push 4
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x98]
add edx, 0x40
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x40], 0
jne 0x404be5
mov dword [ebp - 0x90], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
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 - 0x44]
call fcn.00404d90
mov eax, dword [ebp - 0x90]
jmp 0x404c11
mov dword [ebp - 0x94], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
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 - 0x44]
call fcn.00404d90
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b4f4
mov esp, ebp
pop ebp
ret