Function at 0x508aa9
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xb0
mov eax, 0x69ce1d
call fcn.0056e2a9
mov esi, ecx
lea ecx, [ebp - 0xa4]
call fcn.0041d3ed
mov dword [ebp - 4], 1
lea eax, [ebp - 0xa4]
push eax
push str._FirefoxProfile_prefs.js
push dword [esi + 0x94]
mov ecx, 0x796ad8
call fcn.004c53d7
mov eax, dword [ebp - 0xa4]
mov esi, dword [eax]
xor ebx, ebx
mov dword [ebp - 0x9c], esi
cmp esi, eax
je 0x508d6f
lea edi, [esi + 0xc]
cmp dword [edi + 0x14], 8
jb 0x508b0d
mov eax, dword [edi]
jmp 0x508b0f
mov eax, edi
push eax
call fcn.005655b9
pop ecx
mov dword [ebp - 0x94], eax
test eax, eax
je 0x508d62
inc eax
push eax
call fcn.0056e306
pop ecx
mov dword [ebp - 0x90], eax
test eax, eax
je 0x508d62
mov ecx, dword [ebp - 0x94]
inc ecx
push ecx
push eax
call fcn.0059e3f3
pop ecx
pop ecx
cmp dword [edi + 0x14], 8
jb 0x508b52
mov edi, dword [edi]
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push edi
call fcn.005654e9
add esp, 0x1c
mov edi, eax
mov dword [ebp - 0xa8], edi
cmp edi, 0xffffffff
je 0x508d53
mov dword [ebp - 0x98], ebx
push ebx
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x94]
push dword [ebp - 0x90]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x508d4c
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], ebx
xor eax, eax
mov word [ebp - 0x74], ax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x90]
call fcn.00562889
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], ebx
xor eax, eax
mov word [ebp - 0x5c], ax
push str.user_pref__browser.download.lastDir_______
call fcn.00647fd1
add esp, 0xc
push eax
push str.user_pref__browser.download.lastDir_______
lea ecx, [ebp - 0x5c]
call fcn.004044d0
mov byte [ebp - 4], 3
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], ebx
xor eax, eax
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 4
push 0x100
push str.user_pref__browser.download.lastDir____.___
lea ecx, [ebp - 0xbc]
call fcn.00442d94
mov byte [ebp - 4], 5
mov byte [ebp - 4], 6
push ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004586e3
add esp, 0x14
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x44]
call fcn.004d1682
mov byte [ebp - 4], 6
push ebx
push 1
lea ecx, [ebp - 0x8c]
call fcn.00401d60
mov dword [ebp - 4], 5
jmp 0x508c9c
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x508d10
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], 9
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.005627ff
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push ebx
lea ecx, [ebp - 0x98]
push ecx
push dword [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x508d01
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov byte [ebp - 4], 5
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041c86a
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xbc]
call fcn.00443c16
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.00401d60
mov byte [ebp - 4], 2
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.00401d60
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.00401d60
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push dword [ebp - 0x90]
call fcn.0056df27
pop ecx
pop ecx
mov esi, dword [esi]
mov eax, dword [ebp - 0xa4]
jmp 0x508af2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.004246c9
xor eax, eax
inc eax
call fcn.0056e1f6
ret