Function at 0x413fc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596479
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x274], 0
call fcn.0040bce0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x41402a
push 0x80004005
call fcn.0040c390
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x268]
mov edx, str.MozillaFirefoxProfiles
mov dword [ebp - 0x274], 1
call fcn.0050b050
mov dword [ebp - 4], 1
push dword [ebp - 0x268]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
je 0x414104
push 0x250
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.00559380
push str..default
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x278]
call fcn.00414260
add esp, 0x10
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x278]
mov esi, eax
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4140cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0xffffffff
je 0x414104
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ebx, [ebx]
test byte [ebp - 0x260], 0x10
jne 0x414145
lea eax, [ebp - 0x260]
push eax
push esi
call ebx
test eax, eax
jne 0x4140e0
mov ebx, dword [ebp - 0x270]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x268]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x414125
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x264]
call fcn.0040c2d0
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x26c]
call fcn.00513e30
add esp, 4
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x270]
mov ecx, ebx
push eax
call fcn.0040b7d0
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x26c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4141ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4141ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.prefs.js
lea ecx, [ebp - 0x264]
call fcn.0040c2d0
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 4
push eax
mov edx, ebx
lea ecx, [ebp - 0x26c]
call fcn.00513e30
add esp, 4
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.0040b7d0
mov byte [ebp - 4], 4
mov ecx, edi
mov edx, dword [ebp - 0x26c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414228
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4140fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4140fd