Function at 0x4017c0
Capabilities:
Delete file
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40491c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
push ebx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x158]
xor ebx, ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0x104
push eax
push 0xf01ff
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401832
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
add esp, 0x260
ret
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x158]
push ecx
push edx
push eax
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
test eax, eax
jne 0x40186a
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
add esp, 0x260
ret
mov cl, byte [esp + 0x1b]
push ebp
push esi
mov byte [esp + 0x10], cl
push ebx
lea ecx, [esp + 0x14]
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 + 0x160]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
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 0x4018c9
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x160]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
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_]
mov edi, str.Application_DataMozillaFirefoxprofiles.ini
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x26c], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Application_DataMozillaFirefoxprofiles.ini
lea ecx, [esp + 0x18]
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__::append_char_const___unsigned_int_]
mov al, byte [0x407898]
mov ecx, 0x40
mov byte [esp + 0x5c], al
xor eax, eax
lea edi, [esp + 0x5d]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x24], esi
push esi
push str.Profile
lea ecx, [esp + 0x48]
push str._s_d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp eax, ebx
jne 0x401934
mov eax, 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 eax
lea edx, [esp + 0x60]
push 0x104
push edx
push ebx
lea eax, [esp + 0x50]
push str.Path
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x401b25
lea ecx, [esp + 0x5c]
push 0x2f
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
cmp eax, ebx
je 0x401a4e
mov byte [eax], 0x5c
lea edi, [esp + 0x160]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x14]
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 0x4019bd
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x160]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
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_]
mov edi, str.Application_DataMozillaFirefox_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Application_DataMozillaFirefox_
lea ecx, [esp + 0x18]
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__::append_char_const___unsigned_int_]
lea edi, [esp + 0x5c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
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]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x401a03
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp esi, ebx
jbe 0x401a92
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x14]
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 0x401a92
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, esi
lea esi, [esp + 0x5c]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
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_]
jmp 0x401a92
lea edi, [esp + 0x5c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
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 0x401a92
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x5c]
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 + 0x14]
mov dword [esp + 0x18], ebp
mov byte [eax + ebp], bl
lea ecx, [esp + 0x10]
push str.compreg.dat
lea edx, [esp + 0x50]
push ecx
push edx
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__
mov eax, dword [eax + 4]
add esp, 0xc
cmp eax, ebx
jne 0x401ab5
mov eax, 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]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
push 1
lea ecx, [esp + 0x50]
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 + 0x10]
push str.xpti.dat
lea ecx, [esp + 0x34]
push eax
push ecx
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__
mov eax, dword [eax + 4]
add esp, 0xc
cmp eax, ebx
jne 0x401aed
mov eax, 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 eax
call esi
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x401b15
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x401b0c
cmp al, 0xff
je 0x401b0c
dec al
mov byte [ecx], al
jmp 0x401b15
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x24]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
inc esi
cmp esi, 0x14
mov dword [esp + 0x24], esi
jl 0x40190e
mov ecx, dword [esp + 0x14]
pop esi
cmp ecx, ebx
pop ebp
je 0x401b59
mov al, byte [ecx - 1]
cmp al, bl
je 0x401b4f
cmp al, 0xff
je 0x401b4f
dec al
mov byte [ecx - 1], al
jmp 0x401b59
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x25c]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x260
ret