Function at 0x412010
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x428d58
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x43bca0]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [0x43bca0]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 8], 0
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0xc], esi
jb 0x412065
mov eax, dword [eax + 4]
jmp 0x412068
add eax, 4
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x412116
push 1
push 2
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
push 0x430a3c
mov dword [esp + 0xe0], 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [esp + 0x34]
push str.InetAddress::getHostByName_error_code:
push eax
call fcn.0040dcf0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.0040dcf0
add esp, 8
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
cmp dword [eax + 0x18], 0x10
jb 0x4120d9
mov eax, dword [eax + 4]
jmp 0x4120dc
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll____kLR____zj1.G_1sW_x43h__fXWou___Tn]
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0x42dca4
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x2c]
mov dword [esp + 8], 1
mov byte [esp + 0xdc], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
jmp 0x41217d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
test eax, eax
jne 0x41212e
push 0x42dca4
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
jmp 0x41217d
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0xb4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0xb0]
push ecx
mov ecx, esi
mov dword [esp + 0xe0], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0xb0]
mov dword [esp + 8], 1
mov byte [esp + 0xdc], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00426052
add esp, 0xdc
ret