Function at 0x4a4070
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d8a35
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x50e018]
xor eax, esp
mov dword [esp + 0xdc], eax
push ebx
push edi
mov eax, dword [0x50e018]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
push 1
xor ebx, ebx
push ebx
push 0x4e457c
mov edi, ecx
mov dword [esp + 0x18], ebx
call fcn.0040a570
cmp eax, 0xffffffff
jne 0x4a416d
lea eax, [esp + 0x14]
push eax
call fcn.00404920
mov dword [esp + 0xf8], ebx
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
push ebx
push ebx
lea ecx, [esp + ecx + 0x1c]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov dword [esp + 0xc4], ebx
mov word [esp + 0xbc], bx
mov dword [esp + 0xc0], ebx
lea edx, [esp + 0x24]
push 0x4f10ec
push edx
mov dword [esp + 0x100], 1
call fcn.00405c70
add esp, 8
cmp dword [edi + 0x14], 0x10
jb 0x4a412c
mov edi, dword [edi]
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00405c70
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0xf8], 0xffffffff
call fcn.00458570
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x4eb6d4
mov ecx, esi
mov byte [esi], 0
call fcn.00405360
jmp 0x4a44bb
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.004059c0
call fcn.00460790
add esp, 0x1c
test al, al
je 0x4a41b6
push 7
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push str.NOTHING
mov ecx, esi
mov byte [esi], bl
call fcn.00405360
jmp 0x4a44bb
mov dword [esp + 0xc], ebx
lea ebx, [ebx]
mov ecx, edi
call fcn.004054d0
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
jne 0x4a431d
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, 5
jb 0x4a41c0
lea ecx, [esp + 0x14]
push ecx
call fcn.00404920
mov dword [esp + 0xf8], 2
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
push ebx
push ebx
lea ecx, [esp + ecx + 0x1c]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov dword [esp + 0xc4], ebx
mov word [esp + 0xbc], bx
mov dword [esp + 0xc0], ebx
lea eax, [esp + 0x24]
push 0x4f10f8
push eax
mov dword [esp + 0x100], 3
call fcn.00405c70
add esp, 8
cmp dword [edi + 0x14], 0x10
jb 0x4a424b
mov eax, dword [edi]
jmp 0x4a424d
mov eax, edi
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00405c70
lea edx, [esp + 0x2c]
push 0x4e4674
push edx
call fcn.00405c70
add esp, 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
lea ecx, [esp + 0x14]
mov dword [esp + 0xf8], 0xffffffff
call fcn.00458570
lea eax, [esp + 0x14]
push eax
call fcn.00404920
mov dword [esp + 0xf8], 4
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
push ebx
push ebx
lea ecx, [esp + ecx + 0x1c]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov dword [esp + 0xc4], ebx
mov word [esp + 0xbc], 0
mov dword [esp + 0xc0], ebx
lea edx, [esp + 0x24]
push 0x4ed8e4
push edx
mov dword [esp + 0x100], 5
call fcn.00405c70
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0xf8], 0xffffffff
call fcn.00458570
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push edi
mov ecx, esi
mov byte [esi], 0
call fcn.004059c0
jmp 0x4a44bb
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], 0
mov byte [esp + 0xcc], 0
mov dword [esp + 0xf8], 6
mov edi, dword [ebx]
test edi, edi
je 0x4a4368
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a4351
sub eax, edx
push eax
push edi
lea ecx, [esp + 0xd4]
call fcn.0040e4c0
mov eax, dword [ebx + 4]
xor edi, edi
cmp eax, edi
je 0x4a43d1
mov dword [esp + 0xc], edi
cmp dword [eax], edi
je 0x4a43d1
cmp dword [esp + 0xdc], 0
je 0x4a4396
push 1
push 0x4e4684
lea ecx, [esp + 0xd4]
call fcn.0040e4c0
mov eax, dword [ebx + 4]
mov edi, dword [edi + eax]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a43a1
sub eax, edx
push eax
push edi
lea ecx, [esp + 0xd4]
call fcn.0040e4c0
mov eax, dword [esp + 0xc]
mov ecx, dword [ebx + 4]
inc eax
lea edi, [eax*4]
cmp dword [edi + ecx], 0
mov dword [esp + 0xc], eax
jne 0x4a4379
cmp dword [esp + 0xdc], 0
jne 0x4a43ff
push 7
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push str.NOTHING
mov ecx, esi
mov byte [esi], 0
call fcn.00405360
jmp 0x4a44a0
call dword [sym.imp.MSVCP100.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_void_]
mov dword [esp + 0xc], eax
call dword [sym.imp.MSVCP100.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Getgloballocale_void_]
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::locale::facet::_Incref_void_]
mov byte [esp + 0xf8], 7
mov edx, dword [esp + 0xe0]
mov ecx, dword [esp + 0xcc]
mov eax, ecx
cmp edx, 0x10
jae 0x4a443d
lea eax, [esp + 0xcc]
mov ecx, eax
mov edi, dword [esp + 0xdc]
add edi, ecx
cmp eax, edi
je 0x4a445c
lea ecx, [esp + 0xc]
push ecx
push eax
lea ebx, [esp + 0x18]
call fcn.0040e200
add esp, 8
mov byte [esp + 0xf8], 6
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4a4480
call dword [sym.imp.MSVCP100.dll_public:_class_std::locale::facet____thiscall_std::locale::facet::_Decref_void_]
test eax, eax
je 0x4a4480
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0xcc]
push ecx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
mov byte [esi], 0
call fcn.004045b0
cmp dword [esp + 0xe0], 0x10
jb 0x4a44bb
mov edx, dword [esp + 0xcc]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.004a665a
mov esp, ebp
pop ebp
ret