Function at 0x10008610
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x58
mov al, byte [esp + 0x5c]
push esi
push 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov esi, dword [esp + 0x64]
test esi, esi
jne 0x10008656
mov esi, dword [esp + 0x60]
mov cl, byte [esp + 0xc]
push 0
mov byte [esi], cl
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0xc]
mov eax, dword [edx]
push eax
push 0
push ecx
jmp 0x100086bd
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edx, eax
test edx, edx
mov dword [esp + 8], edx
jne 0x10008676
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push str._exlog__GetHostByName__s__failed:__d
jmp 0x1000868a
mov ax, word [edx + 8]
cmp ax, 2
je 0x100086d8
movsx ecx, ax
push ecx
push esi
push str._exlog__GetHostByName__s__faield:_h_addrtype__d__is_not_AF_INET
mov edx, dword [0x10053690]
push edx
call fcn.10026380
mov esi, dword [esp + 0x70]
mov al, byte [esp + 0x1c]
add esp, 0x10
mov ecx, esi
mov byte [esi], al
push 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0xc]
mov edx, dword [ecx]
push edx
push 0
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, esi
pop esi
add esp, 0x58
ret
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [edx + 0xc]
cmp dword [eax], 0
je 0x10008845
push ebx
push ebp
xor ebx, ebx
jmp 0x10008704
mov esi, dword [esp + 0x70]
mov ecx, dword [ebx + eax]
mov eax, dword [ecx]
xor ecx, ecx
mov edx, eax
mov dword [esp + 0x10], eax
mov cl, byte [esp + 0x12]
shr edx, 0x18
push edx
xor edx, edx
mov dl, ah
push ecx
and eax, 0xff
push edx
push eax
push 0x1004c8ac
lea eax, [esp + 0x3c]
push 0x40
push eax
call fcn.1002d190
mov edx, dword [0x10053690]
lea ecx, [esp + 0x44]
push ecx
push esi
push str._exlog__GetHostByName__s__resolved__s
push edx
call fcn.10026380
mov edi, 0x1004c880
or ecx, 0xffffffff
xor eax, eax
add esp, 0x2c
repne scasb al, byte es:[edi]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [esp + 0x20]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x10008778
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x100087c0
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebp, [edx + esi]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x100087c0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ecx, esi
mov esi, 0x1004c880
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [ecx + ebp], 0
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
repne scasb al, byte es:[edi]
mov eax, dword [edx]
mov edx, dword [esp + 0x20]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x100087e8
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x1000882f
mov ecx, dword [esp + 0x20]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x1c]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1000882f
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, esi
lea esi, [esp + 0x28]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x14]
add ebx, 4
mov eax, dword [ecx + 0xc]
cmp dword [ebx + eax], 0
jne 0x10008700
pop ebp
pop ebx
mov esi, dword [esp + 0x64]
mov dl, byte [esp + 0x10]
mov byte [esi], dl
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push ecx
push 0
push edx
mov ecx, esi
call dword [sym.imp.MSVCP60.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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x14]
pop edi
test ecx, ecx
je 0x100088a5
mov al, byte [ecx - 1]
test al, al
je 0x1000889b
cmp al, 0xff
je 0x1000889b
dec al
mov byte [ecx - 1], al
mov eax, esi
pop esi
add esp, 0x58
ret
dec ecx
push ecx
call fcn.100463e2
add esp, 4
mov eax, esi
pop esi
add esp, 0x58
ret