Function at 0x405490
Capabilities:
Get common file path

Disassembly:
sub esp, 0x31c
push ebx
push ebp
push esi
push edi
push 0x466020
call fcn.00401810
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x2c]
push 0x466030
push str.ClearBrowsingHistoryOnExit
rep stosd dword es:[edi], eax
push 0x466050
lea eax, [esp + 0x38]
push 0x466084
push eax
call ebp
mov cl, byte [esp + 0x2b]
add esp, 8
mov ebx, esp
push 0
mov byte [ebx], cl
mov ecx, ebx
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 edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x2c], esi
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 0x40552c
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
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 + 0x28]
push ecx
call section..text
add esp, 0x14
lea ecx, [esp + 0x18]
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 0x4660b0
push str.UseAllowList
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x30]
push 0x4660c4
lea edx, [esp + 0x34]
push 0x4660f8
rep stosd dword es:[edi], eax
push edx
call ebp
mov al, byte [esp + 0x27]
add esp, 4
mov ebx, esp
push 0
mov ecx, ebx
mov byte [ebx], 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_]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x2c], esi
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 0x4055c7
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
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 + 0x28]
push ecx
call section..text
add esp, 0x14
lea ecx, [esp + 0x18]
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 0x466124
push str.CleanTIF
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x30]
push 0x466134
lea edx, [esp + 0x34]
push 0x466168
rep stosd dword es:[edi], eax
push edx
call ebp
mov al, byte [esp + 0x27]
add esp, 4
mov ebx, esp
push 0
mov ecx, ebx
mov byte [ebx], 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_]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x2c], esi
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 0x405663
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
lea edx, [esp + 0x28]
push edx
call section..text
add esp, 0x14
lea ecx, [esp + 0x18]
push 1
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, 0x80
xor eax, eax
lea edi, [esp + 0x28]
push 0x466194
rep stosd dword es:[edi], eax
push str.CleanCookies
push 0x4661a8
lea eax, [esp + 0x34]
push 0x4661dc
push eax
call ebp
mov cl, byte [esp + 0x27]
add esp, 4
mov ebx, esp
push 0
mov byte [ebx], cl
mov ecx, ebx
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 edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x2c], esi
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 0x4056ff
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
lea edx, [esp + 0x28]
push edx
call section..text
add esp, 0x14
lea ecx, [esp + 0x18]
push 1
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, 0x80
xor eax, eax
lea edi, [esp + 0x28]
push 0x466208
rep stosd dword es:[edi], eax
push str.CleanHistory
push 0x46621c
lea eax, [esp + 0x34]
push 0x466250
push eax
call ebp
mov cl, byte [esp + 0x27]
add esp, 4
mov ebx, esp
push 0
mov byte [ebx], cl
mov ecx, ebx
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 edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x2c], esi
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 0x40579b
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
lea edx, [esp + 0x28]
push edx
call section..text
add esp, 0x14
lea ecx, [esp + 0x18]
push 1
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, 0x80
xor eax, eax
lea edi, [esp + 0x28]
push 0x46627c
rep stosd dword es:[edi], eax
push str.CleanForms
push 0x46628c
lea eax, [esp + 0x34]
push 0x4662c0
push eax
call ebp
mov cl, byte [esp + 0x27]
add esp, 4
mov ebx, esp
xor esi, esi
push esi
mov byte [ebx], cl
mov ecx, ebx
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 edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, ebx
push edi
mov dword [esp + 0x2c], edi
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 0x40583a
mov ecx, edi
mov edi, dword [ebx + 4]
mov edx, ecx
lea esi, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
xor esi, esi
mov byte [ecx + eax], 0
lea edx, [esp + 0x28]
push edx
call section..text
add esp, 0x14
lea ecx, [esp + 0x18]
push 1
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, 0x80
xor eax, eax
lea edi, [esp + 0x28]
push 0x4662ec
rep stosd dword es:[edi], eax
push str.CleanPassword
push 0x466300
lea eax, [esp + 0x34]
push 0x466334
push eax
call ebp
mov cl, byte [esp + 0x27]
add esp, 4
mov edx, esp
lea edi, [esp + 0x38]
xor eax, eax
mov byte [edx], cl
or ecx, 0xffffffff
mov dword [edx + 4], esi
mov dword [edx + 8], esi
mov dword [edx + 0xc], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x38]
push ecx
push eax
mov ecx, edx
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_char_const___unsigned_int_]
lea ecx, [esp + 0x28]
push ecx
call section..text
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp eax, esi
je 0x4058dd
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4058d4
cmp al, 0xff
je 0x4058d4
dec al
mov byte [ecx], al
jmp 0x4058dd
push ecx
call fcn.00459410
add esp, 4
push 0x466360
push str.CleanInPrivateBlocking
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x30]
push str.HKCUSoftwareMicrosoftInternet_ExplorerPrivacy
lea edx, [esp + 0x34]
push str.reg_add___s___v__s__t_REG_DWORD__d__s__f
rep stosd dword es:[edi], eax
push edx
call ebp
mov al, byte [esp + 0x27]
add esp, 4
mov ebx, esp
xor esi, esi
push esi
mov ecx, ebx
mov byte [ebx], 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_]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, ebx
push edi
mov dword [esp + 0x2c], edi
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 0x405963
mov ecx, edi
mov edi, dword [ebx + 4]
mov edx, ecx
lea esi, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
xor esi, esi
mov byte [eax + ecx], 0
lea edx, [esp + 0x28]
push edx
call section..text
add esp, 0x14
lea ecx, [esp + 0x18]
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
call fcn.00403dc0
push 1
call fcn.00403dc0
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
add esp, 8
lea eax, [esp + 0x228]
push esi
push 0x21
push eax
push esi
call edi
test eax, eax
je 0x4059c6
lea ecx, [esp + 0x228]
push ecx
push str.Cook
call fcn.00401810
lea edx, [esp + 0x230]
push edx
call fcn.00403e80
add esp, 0xc
push esi
lea eax, [esp + 0x22c]
push 0x20
push eax
push esi
call edi
test eax, eax
je 0x4059fa
lea ecx, [esp + 0x228]
push ecx
push str.Cache
call fcn.00401810
lea edx, [esp + 0x230]
push edx
call fcn.00403e80
add esp, 0xc
push esi
lea eax, [esp + 0x22c]
push 0x22
push eax
push esi
call edi
test eax, eax
je 0x405a2e
lea ecx, [esp + 0x228]
push ecx
push 0x4663fc
call fcn.00401810
lea edx, [esp + 0x230]
push edx
call fcn.00403e80
add esp, 0xc
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x28]
push 0x46640c
rep stosd dword es:[edi], eax
call fcn.00401810
push str.HKCUSoftwareMicrosoftInternet_ExplorerTypedURLs
lea eax, [esp + 0x30]
push str.reg_delete___s___va__f
push eax
call ebp
mov cl, byte [esp + 0x23]
mov edx, esp
lea edi, [esp + 0x38]
xor eax, eax
mov byte [edx], cl
or ecx, 0xffffffff
mov dword [edx + 4], esi
mov dword [edx + 8], esi
mov dword [edx + 0xc], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x38]
push ecx
push eax
mov ecx, edx
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_char_const___unsigned_int_]
lea ecx, [esp + 0x28]
push ecx
call section..text
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp eax, esi
je 0x405ab5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x405aac
cmp al, 0xff
je 0x405aac
dec al
mov byte [ecx], al
jmp 0x405ab5
push ecx
call fcn.00459410
add esp, 4
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x28]
push 0x466474
rep stosd dword es:[edi], eax
call fcn.00401810
push str.HKCUSoftwareMicrosoftInternet_ExplorerIntelliForms
lea edx, [esp + 0x30]
push str.reg_delete__s__va__f
push edx
call ebp
mov al, byte [esp + 0x23]
mov edx, esp
lea edi, [esp + 0x38]
or ecx, 0xffffffff
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], esi
mov dword [edx + 8], esi
mov dword [edx + 0xc], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edx
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_char_const___unsigned_int_]
lea edx, [esp + 0x28]
push edx
call section..text
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp eax, esi
je 0x405b45
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x405b3c
cmp al, 0xff
je 0x405b3c
dec al
mov byte [ecx], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push ecx
call fcn.00459410
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret