Function at 0x1001b7d0
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x1002908a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [sym.rlmfc.dll_int_R_RemedyInit::count]
push ebx
mov ebx, ecx
mov ecx, eax
inc eax
test ecx, ecx
mov dword [esp + 8], ebx
mov dword [sym.rlmfc.dll_int_R_RemedyInit::count], eax
jne 0x1001ba5c
push ebp
push esi
push edi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x20], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov cl, byte [esp + 0x13]
mov byte [esp + 0x1c], cl
push 0
lea ecx, [esp + 0x20]
mov esi, eax
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
test esi, esi
mov dword [esp + 0x74], 0
je 0x1001b996
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
push 1
push ebp
lea ecx, [esp + 0x34]
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 0x1001b89d
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push str.verbose_
push edx
mov byte [esp + 0x80], 1
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push str..txt
push eax
lea eax, [esp + 0x70]
mov bl, 2
push eax
mov byte [esp + 0x8c], bl
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x18
mov ecx, 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 [ecx]
push edx
xor esi, esi
push esi
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 3
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 + 0x60]
mov byte [esp + 0x78], bl
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, dword [esp + 0x40]
cmp eax, esi
je 0x1001b928
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x1001b91f
cmp al, 0xff
je 0x1001b91f
dec al
mov byte [ecx], al
jmp 0x1001b928
push ecx
call fcn.10028130
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov byte [esp + 0x74], 0
je 0x1001b952
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x1001b98b
cmp al, 0xff
je 0x1001b98b
dec al
mov byte [ecx], al
mov ebx, dword [esp + 0x14]
push 0x634
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
pop edi
pop esi
mov byte [esp + 0x6c], 4
pop ebp
je 0x1001b9e2
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x1001b981
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push edx
mov ecx, eax
call sym.rlmfc.dll_private:_void___thiscall_R_System::constructor_char_const__
jmp 0x1001b9e4
push ecx
call fcn.10028130
add esp, 4
jmp 0x1001b952
or ecx, 0xffffffff
xor eax, eax
mov edi, str.verbose.txt
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
push 1
push ebp
lea ecx, [esp + 0x24]
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 0x1001b956
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
mov esi, str.verbose.txt
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
mov byte [ecx + ebp], 0
jmp 0x1001b956
xor eax, eax
push 0x56c
mov byte [esp + 0x6c], 0
mov dword [sym.rlmfc.dll_class_R_System__Sys], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov byte [esp + 0x68], 5
je 0x1001ba11
mov ecx, eax
call sym.rlmfc.dll_private:_void___thiscall_R_File::constructor_void_
jmp 0x1001ba13
xor eax, eax
mov ecx, dword [sym.rlmfc.dll_class_R_System__Sys]
mov byte [esp + 0x68], 0
mov dword [sym.rlmfc.dll_class_R_File__File], eax
call fcn.10026c50
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1001ba5c
mov al, byte [ecx - 1]
test al, al
je 0x1001ba52
cmp al, 0xff
je 0x1001ba52
dec al
mov byte [ecx - 1], al
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret
dec ecx
push ecx
call fcn.10028130
add esp, 4
mov ecx, dword [esp + 0x60]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret