Function at 0x419320
Capabilities:
Check if file exists
Enumerate files on windows
Query environment variable
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f2ec
mov eax, dword fs:[0]
push eax
sub esp, 0x3e0
mov eax, dword [0x46166c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push str.APPDATA
mov dword [ebp - 0x3e8], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xor esi, esi
mov dword [ebp - 0x22c], 0xf
mov dword [ebp - 0x230], esi
mov byte [ebp - 0x240], 0
lea eax, [ebp - 0x224]
mov dword [ebp - 4], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419393
sub eax, edx
push eax
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x240]
call fcn.0040aae0
push 0x19
push str.MozillaFirefoxProfiles
lea ecx, [ebp - 0x240]
call fcn.0040aae0
mov eax, dword [ebp - 0x240]
mov ebx, 0x10
cmp dword [ebp - 0x22c], ebx
jae 0x4193da
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x419403
cmp dword [ebp - 0x22c], ebx
jb 0x4193fc
mov eax, dword [ebp - 0x240]
push eax
call fcn.0042f0d0
add esp, 4
xor al, al
jmp 0x41974c
mov eax, dword [ebp - 0x240]
cmp dword [ebp - 0x22c], ebx
jae 0x419417
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x11c]
push 0x104
push ecx
call fcn.00430087
push str..
lea edx, [ebp - 0x11c]
push 0x104
push edx
call fcn.004300e6
add esp, 0x18
lea eax, [ebp - 0x3d4]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x3ec], eax
cmp eax, 0xffffffff
jne 0x41947f
cmp dword [ebp - 0x22c], ebx
jb 0x4193fc
mov edx, dword [ebp - 0x240]
push edx
call fcn.0042f0d0
add esp, 4
xor al, al
jmp 0x41974c
test byte [ebp - 0x3d4], 0x10
je 0x41947f
cmp byte [ebp - 0x3a8], 0x2e
je 0x419719
mov eax, dword [ebp - 0x3e8]
push eax
lea ecx, [ebp - 0x294]
push str.user_pref__browser.startup.homepage____
push ecx
call fcn.0041ca40
push str.____n
push eax
lea edx, [ebp - 0x278]
push edx
mov byte [ebp - 4], 1
call fcn.00410c50
add esp, 0x18
cmp dword [ebp - 0x280], ebx
jb 0x4194dd
mov eax, dword [ebp - 0x294]
push eax
call fcn.0042f0d0
add esp, 4
mov dword [ebp - 0x248], 0xf
mov dword [ebp - 0x24c], esi
mov byte [ebp - 0x25c], 0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x240]
cmp dword [ebp - 0x22c], ebx
jae 0x41950c
lea edx, [ebp - 0x240]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419511
sub eax, edi
push eax
push edx
lea ecx, [ebp - 0x25c]
call fcn.0040aae0
push 1
push 0x45496c
lea ecx, [ebp - 0x25c]
call fcn.0040aae0
lea eax, [ebp - 0x3a8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419542
sub eax, edx
push eax
lea ecx, [ebp - 0x3a8]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.0040aae0
push 9
push str.prefs.js
lea ecx, [ebp - 0x25c]
call fcn.0040aae0
mov eax, dword [ebp - 0x25c]
cmp dword [ebp - 0x248], ebx
jae 0x419584
lea eax, [ebp - 0x25c]
push 0x456750
push eax
call fcn.0043134c
mov edi, eax
add esp, 8
cmp edi, esi
je 0x4196d0
push 2
push esi
push edi
call fcn.00431b89
push edi
call fcn.00431a9a
push esi
push esi
push edi
mov ebx, eax
call fcn.00431b89
push ebx
call fcn.0042e2b1
push edi
push 1
push ebx
push eax
mov dword [ebp - 0x3e0], eax
call fcn.004316a3
push ebx
call fcn.0042e2b1
push ebx
mov esi, eax
push 0
push esi
call fcn.00439380
xor edx, edx
xor ecx, ecx
add esp, 0x40
mov dword [ebp - 0x3d8], edx
mov dword [ebp - 0x3dc], ecx
cmp ebx, edx
jle 0x419686
jmp 0x419600
mov eax, dword [ebp - 0x3e0]
mov al, byte [ecx + eax]
mov byte [edx + esi], al
cmp al, 0xa
jne 0x419671
push str.user_pref__browser.startup.homepage__
push esi
mov dword [ebp - 0x3e4], 0
call fcn.0042ef30
mov eax, dword [ebp - 0x278]
add esp, 8
cmp dword [ebp - 0x264], 0x10
jae 0x41963d
lea eax, [ebp - 0x278]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 1
push esi
mov dword [ebp - 0x3d8], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call fcn.0043188c
mov edx, dword [ebp - 0x3e4]
mov ecx, dword [ebp - 0x3dc]
add esp, 0x10
jmp 0x419672
inc edx
inc ecx
mov dword [ebp - 0x3dc], ecx
cmp ecx, ebx
jl 0x419600
cmp dword [ebp - 0x3d8], 0
jne 0x4196ae
cmp dword [ebp - 0x264], 0x10
mov eax, dword [ebp - 0x278]
jae 0x41969b
lea eax, [ebp - 0x278]
mov ecx, dword [ebp - 0x268]
push edi
push 1
push ecx
push eax
call fcn.0043188c
add esp, 0x10
push esi
call fcn.0042f8c3
mov edx, dword [ebp - 0x3e0]
push edx
call fcn.0042f8c3
push edi
call fcn.00431c72
add esp, 0xc
mov ebx, 0x10
xor esi, esi
cmp dword [ebp - 0x248], ebx
jb 0x4196e7
mov eax, dword [ebp - 0x25c]
push eax
call fcn.0042f0d0
add esp, 4
mov byte [ebp - 4], 0
mov dword [ebp - 0x248], 0xf
mov dword [ebp - 0x24c], esi
mov byte [ebp - 0x25c], 0
cmp dword [ebp - 0x264], ebx
jb 0x419719
mov ecx, dword [ebp - 0x278]
push ecx
call fcn.0042f0d0
add esp, 4
mov eax, dword [ebp - 0x3ec]
lea edx, [ebp - 0x3d4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41947f
cmp dword [ebp - 0x22c], ebx
jb 0x41974c
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.0042f0d0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042ed1f
mov esp, ebp
pop ebp
ret 4