Function at 0x405370
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x414200
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x110], 3
call fcn.0040cf30
lea ecx, [esi + 0x18]
mov byte [esp + 0x110], 4
call fcn.0040d4d0
mov al, byte [esp + 0x13]
lea ecx, [esi + 0x20]
xor ebx, ebx
mov byte [esp + 0x110], 5
push ebx
mov byte [ecx], 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 dl, byte [esp + 0x13]
lea ecx, [esi + 0x30]
push ebx
mov byte [esp + 0x114], 6
mov byte [ecx], 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_]
mov al, byte [esp + 0x13]
lea edi, [esi + 0x40]
push ebx
mov ecx, edi
mov byte [esp + 0x114], 7
mov byte [edi], 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 + 0x13]
lea ebp, [esi + 0x50]
push ebx
mov byte [esp + 0x114], 8
mov byte [ebp], cl
mov ecx, ebp
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 + 0x13]
lea ecx, [esi + 0x60]
push ebx
mov byte [esp + 0x114], 9
mov byte [ecx], 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_]
mov al, byte [esp + 0x13]
lea ecx, [esi + 0x70]
push ebx
mov byte [esp + 0x114], 0xa
mov byte [ecx], 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 dl, byte [esp + 0x13]
lea ecx, [esi + 0x80]
push ebx
mov byte [esp + 0x114], 0xb
mov byte [ecx], 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_]
mov al, byte [esp + 0x13]
lea ecx, [esi + 0x90]
push ebx
mov byte [esp + 0x114], 0xc
mov byte [ecx], 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 + 0x13]
mov dword [esi + 0xa8], ebx
mov byte [esi + 0xa4], cl
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], ebx
mov dl, byte [esp + 0x13]
mov dword [esi + 0xb8], ebx
mov byte [esi + 0xb4], dl
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc0], ebx
mov al, byte [esp + 0x13]
mov dword [esi + 0xc8], ebx
mov byte [esi + 0xc4], al
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov dl, byte [esp + 0x13]
lea ecx, [esi + 0xe0]
push ebx
mov byte [esp + 0x114], 0x10
mov byte [ecx], 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 ecx, [esp + 0x18]
mov byte [esp + 0x110], 0x11
mov dword [esi], 0x4166b0
mov dword [esi + 0x18], 0x4166bc
call fcn.00404ff0
lea ecx, [esp + 0x18]
call fcn.00405660
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 + 0x148]
mov ecx, dword [eax]
push ecx
push ebx
push edx
mov ecx, edi
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 [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x138]
mov ecx, dword [eax]
push ecx
push ebx
push edx
mov ecx, ebp
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 [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x118]
mov ecx, dword [eax]
push ecx
push ebx
push edx
lea ecx, [esi + 0x60]
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 [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x128]
mov ecx, dword [eax]
push ecx
push ebx
push edx
lea ecx, [esi + 0x80]
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 + 0x11c]
mov byte [esp + 0x114], 2
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 + 0x12c]
cmp eax, ebx
je 0x4055c0
mov cl, byte [eax - 1]
cmp cl, bl
je 0x4055b6
cmp cl, 0xff
je 0x4055b6
dec cl
mov byte [eax - 1], cl
jmp 0x4055c0
dec eax
push eax
call fcn.004134f0
add esp, 4
mov ecx, dword [esp + 0x13c]
mov dword [esp + 0x12c], ebx
cmp ecx, ebx
mov dword [esp + 0x130], ebx
mov dword [esp + 0x134], ebx
je 0x4055fc
mov al, byte [ecx - 1]
cmp al, bl
je 0x4055f2
cmp al, 0xff
je 0x4055f2
dec al
mov byte [ecx - 1], al
jmp 0x4055fc
dec ecx
push ecx
call fcn.004134f0
add esp, 4
mov ecx, dword [esp + 0x14c]
mov dword [esp + 0x13c], ebx
cmp ecx, ebx
mov dword [esp + 0x140], ebx
mov dword [esp + 0x144], ebx
je 0x405638
mov al, byte [ecx - 1]
cmp al, bl
je 0x40562e
cmp al, 0xff
je 0x40562e
dec al
mov byte [ecx - 1], al
jmp 0x405638
dec ecx
push ecx
call fcn.004134f0
add esp, 4
mov ecx, dword [esp + 0x108]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x104
ret 0x40