Function at 0x4142d0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x422ecc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov al, byte [esp + 3]
push ebp
push esi
mov esi, ecx
push edi
push 0
mov dword [esp + 0x14], esi
mov byte [esi], 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 cl, byte [esp + 0xf]
lea edi, [esi + 0x10]
push 0
mov dword [esp + 0x30], 0
mov byte [edi], cl
mov ecx, edi
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 dl, byte [esp + 0xf]
lea ebp, [esi + 0x20]
push 0
mov ecx, ebp
mov byte [esp + 0x30], 1
mov byte [ebp], 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_]
lea eax, [esp + 0x14]
mov ecx, esi
push eax
mov byte [esp + 0x30], 2
call fcn.004144f0
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 byte [esp + 0x2c], 3
mov edx, dword [ecx]
mov ecx, esi
push edx
push 0
push eax
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 eax, dword [esp + 0x18]
mov byte [esp + 0x2c], 2
test eax, eax
je 0x414387
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41437e
cmp al, 0xff
je 0x41437e
dec al
mov byte [ecx], al
jmp 0x414387
push ecx
call fcn.004218a8
add esp, 4
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.004147f0
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 byte [esp + 0x2c], 4
mov edx, dword [ecx]
mov ecx, edi
push edx
push 0
push eax
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 eax, dword [esp + 0x18]
mov byte [esp + 0x2c], 2
test eax, eax
je 0x4143d6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4143cd
cmp al, 0xff
je 0x4143cd
dec al
mov byte [ecx], al
jmp 0x4143d6
push ecx
call fcn.004218a8
add esp, 4
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00414aa0
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 byte [esp + 0x2c], 5
mov edx, dword [ecx]
mov ecx, ebp
push edx
push 0
push eax
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 eax, dword [esp + 0x18]
test eax, eax
je 0x414432
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x414429
cmp al, 0xff
je 0x414429
dec al
pop edi
mov byte [ecx], al
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push ecx
call fcn.004218a8
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret