Function at 0x405990
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b409
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x9c
mov eax, dword [0x4622c0]
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 0x4059db
xor eax, eax
jmp 0x405df6
lea ecx, [ebp - 0x48]
call fcn.00405f10
mov dword [ebp - 4], 0
push 0x65
push 0x32
call fcn.0041ede0
add esp, 8
cmp eax, 0xca
jne 0x4059ff
jmp 0x405a0d
call fcn.004271f0
call fcn.00404cb0
jmp 0x405a0d
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 1
call fcn.00404ab0
jmp 0x405a36
mov dword [ebp - 4], 0
push 0xa5
push 0xb9
push 0xd2
call fcn.0041e6e0
add esp, 0xc
cmp eax, 0x15e
jne 0x405a69
call fcn.0041e720
test eax, eax
je 0x405a69
call fcn.00446ff0
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 0x405ab3
mov dword [ebp - 0x60], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00405f80
mov eax, dword [ebp - 0x60]
jmp 0x405df6
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x58], edx
cmp dword [ebp - 0x58], 0
je 0x405b91
mov eax, dword [ebp - 0x58]
movzx ecx, word [eax + 8]
cmp ecx, 0xf
jne 0x405b84
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 0x405b84
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.00406f30
add esp, 0xc
push eax
lea ecx, [ebp - 0x80]
call fcn.00406f50
mov byte [ebp - 4], 3
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x48]
call fcn.00406050
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.00405e20
call fcn.00404a80
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 1
je 0x405b51
jmp 0x405b5b
call fcn.00446ff0
call fcn.00446640
mov byte [ebp - 4], 4
call fcn.0043d8a0
jmp 0x405b7d
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
mov dword [ebp - 0x58], edx
jmp 0x405ab9
cmp dword [ebp - 0x50], 0
je 0x405ba9
push 1
mov eax, dword [ebp - 0x50]
push eax
call sub.DNSAPI.dll_DnsFree
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], 6
push 0xd7
call fcn.00401070
add esp, 4
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0x144
je 0x405bd7
jmp 0x405bd9
jmp 0x405be3
call fcn.0043df70
call fcn.00425e70
mov dword [ebp - 0x5c], 0
jmp 0x405bf5
mov ecx, dword [ebp - 0x5c]
add ecx, 1
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x48]
call fcn.00405fe0
cmp dword [ebp - 0x5c], eax
jae 0x405c7d
mov edx, dword [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x48]
call fcn.00406000
cmp dword [eax], 0x11
jne 0x405c78
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x48]
call fcn.00406000
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 0x405c78
mov ecx, dword [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00406000
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__]
jmp 0x405c7d
jmp 0x405bec
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 0x405cbb
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.00405f80
mov eax, dword [ebp - 0x8c]
jmp 0x405df6
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
mov byte [ebp - 4], 7
call fcn.00404a10
jmp 0x405cef
mov dword [ebp - 4], 6
cmp dword [ebp - 0x4c], 0
jne 0x405d2d
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.00405f80
mov eax, dword [ebp - 0x90]
jmp 0x405df6
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 0x405dca
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.00405f80
mov eax, dword [ebp - 0x94]
jmp 0x405df6
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.00405f80
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.0044a380
mov esp, ebp
pop ebp
ret