Function at 0x41165f
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x18ac
call fcn.00419050
push ebx
push esi
push edi
xor eax, eax
push 0x144e
push eax
mov word [esp + 0x470], ax
lea eax, [esp + 0x472]
push eax
call fcn.004130d0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [esp + 0x46c]
push eax
call edi
mov ebx, dword [ebp + 0x10]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add ebx, 0x2c
push ebx
lea eax, [esp + 0x46c]
push eax
call esi
push str.Application_DataMozillaFirefoxProfiles
lea eax, [esp + 0x46c]
push eax
call esi
lea eax, [esp + 0x468]
test eax, eax
je 0x4117b2
xor eax, eax
cmp eax, fcn.0041153f
je 0x4117b2
lea eax, [esp + 0x468]
push eax
lea eax, [esp + 0x264]
push eax
call edi
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411723
test al, 0x10
je 0x411723
push 0x421a50
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x4117b2
test byte [esp + 0x10], 0x10
je 0x41178d
push 0x421a58
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x411795
push 0x421a5c
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x411795
push dword [ebp + 0x14]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x470]
push eax
push dword [ebp + 8]
call fcn.0041153f
add esp, 0x10
test al, al
je 0x4117a8
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41173f
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [esp + 0x46c]
push eax
call edi
push ebx
lea eax, [esp + 0x46c]
push eax
call esi
push str.Application_DataThunderbirdProfiles
lea eax, [esp + 0x46c]
push eax
call esi
lea eax, [esp + 0x468]
test eax, eax
je 0x4118b6
xor eax, eax
cmp eax, fcn.0041153f
je 0x4118b6
lea eax, [esp + 0x468]
push eax
lea eax, [esp + 0x264]
push eax
call edi
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411831
test al, 0x10
je 0x411831
push 0x421a50
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4118b6
test byte [esp + 0x10], 0x10
je 0x411897
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x421a58
lea eax, [esp + 0x40]
push eax
call esi
test eax, eax
je 0x41189f
push 0x421a5c
lea eax, [esp + 0x40]
push eax
call esi
test eax, eax
je 0x41189f
push dword [ebp + 0x14]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x470]
push eax
push dword [ebp + 8]
call fcn.0041153f
add esp, 0x10
test al, al
je 0x4118af
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41184b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret