Function at 0x481690
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x62a4
call fcn.004eba30
mov eax, dword [0x53f4a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0xf
lea edx, [ebp - 0x6004]
mov dword [ebp - 0x6290], eax
mov dword [ebp - 0x6024], ebx
mov dword [ebp - 0x6028], esi
mov byte [ebp - 0x6038], 0
mov dword [ebp - 0x6008], ebx
mov dword [ebp - 0x600c], esi
mov byte [ebp - 0x601c], 0
mov dword [ebp - 0x6294], esi
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x4816f3
lea eax, [ebp - 0x6004]
add eax, 0xfffffffe
jmp 0x481710
mov cx, word [eax + 2]
add eax, 2
cmp cx, si
jne 0x481710
mov ecx, dword [0x5109c0]
mov edx, dword [0x5109c4]
mov dword [eax], ecx
mov cx, word [0x5109c8]
mov dword [eax + 4], edx
lea edx, [ebp - 0x628c]
mov word [eax + 8], cx
push edx
lea eax, [ebp - 0x6004]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x62a4], eax
cmp eax, 0xffffffff
je 0x481c5b
jmp 0x481760
test byte [ebp - 0x628c], 0x10
je 0x48185d
lea eax, [ebp - 0x6260]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x481776
mov si, word [ebp - 0x6260]
sub eax, edx
sar eax, 1
cmp eax, 1
jne 0x48179b
cmp si, 0x2e
je 0x481b26
lea eax, [ebp - 0x6260]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4817a4
sub eax, edx
sar eax, 1
cmp eax, 2
jne 0x4817cb
cmp si, word [ebp - 0x625e]
jne 0x4817cb
cmp si, 0x2e
je 0x481b26
lea edx, [ebp - 0x4004]
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4817d5
lea edi, [ebp - 0x4004]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4817f0
mov ecx, dword [0x50f2fc]
lea eax, [ebp - 0x6260]
mov dword [edi], ecx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x481810
lea edi, [ebp - 0x4004]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x481826
mov ecx, eax
shr ecx, 2
mov esi, edx
mov edx, dword [ebp - 0x6290]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
lea eax, [ebp - 0x4004]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00481690
add esp, 8
jmp 0x481b23
lea ecx, [ebp - 0x6260]
push str.prefs.js
push ecx
call fcn.004eb4e2
add esp, 8
test eax, eax
jne 0x481b26
lea edx, [ebp - 0x2004]
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x481883
lea eax, [ebp - 0x2004]
add eax, 0xfffffffe
jmp 0x4818a0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4818a0
mov edx, dword [0x510998]
mov ecx, dword [0x51099c]
push 0
mov dword [eax], edx
mov edx, dword [0x5109a0]
push 0
mov dword [eax + 4], ecx
mov ecx, dword [0x5109a4]
push 3
mov dword [eax + 8], edx
mov edx, dword [0x5109a8]
push 0
mov dword [eax + 0xc], ecx
push 1
mov dword [eax + 0x10], edx
push 0xc0000000
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x6298], eax
cmp eax, 0xffffffff
je 0x481b26
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.004e9cc4
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x481b16
push esi
push 0
push ebx
call fcn.004eb2d0
mov edx, dword [ebp - 0x6298]
add esp, 0xc
push 0
lea ecx, [ebp - 0x6294]
push ecx
push edi
push ebx
push edx
mov dword [ebp - 0x6294], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x481b0d
cmp dword [ebp - 0x6294], edi
jne 0x481b0d
push ebx
call fcn.004eca7e
add esp, 4
push ebx
lea ecx, [ebp - 0x603c]
call fcn.004016e0
push str.user_pref__browser.startup.homepage__
push ebx
call fcn.004ec7e0
mov edi, eax
add esp, 8
test edi, edi
je 0x481ac2
push 0x51096c
push edi
call fcn.004ec7e0
add esp, 8
mov dword [ebp - 0x62a0], eax
test eax, eax
je 0x481b0d
mov eax, dword [ebp - 0x6290]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x629c], eax
test eax, eax
je 0x481b0d
inc eax
push eax
call fcn.004e9cc4
mov esi, eax
add esp, 4
test esi, esi
je 0x481b0d
mov eax, dword [ebp - 0x629c]
inc eax
push eax
push 0
push esi
call fcn.004eb2d0
mov ecx, dword [ebp - 0x629c]
mov edx, dword [ebp - 0x6290]
add esp, 0xc
push 0
push 0
push ecx
push esi
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push str.user_pref__browser.startup.homepage____
lea ecx, [ebp - 0x6020]
call fcn.004016e0
push esi
lea ecx, [ebp - 0x6020]
call fcn.004014a0
push 0x510a84
lea ecx, [ebp - 0x6020]
call fcn.004014a0
cmp dword [ebp - 0x6008], 0x10
mov eax, dword [ebp - 0x601c]
jae 0x481a5f
lea eax, [ebp - 0x601c]
push eax
mov eax, dword [ebp - 0x62a0]
sub eax, edi
push eax
sub edi, ebx
push edi
lea ecx, [ebp - 0x603c]
call fcn.00481660
mov edi, dword [ebp - 0x6298]
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x6024], 0x10
mov eax, dword [ebp - 0x6038]
jae 0x481a9f
lea eax, [ebp - 0x6038]
mov edx, dword [ebp - 0x6028]
push 0
lea ecx, [ebp - 0x6294]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.004ea481
add esp, 4
jmp 0x481b0d
push str.user_pref__browser.startup.homepage_override.mstone__
push ebx
call fcn.004ec7e0
add esp, 8
mov dword [ebp - 0x629c], eax
test eax, eax
je 0x481b0d
mov eax, dword [ebp - 0x6290]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x481b0d
lea ecx, [edi + 5]
push ecx
call fcn.004e9cc4
mov esi, eax
add esp, 4
test esi, esi
jne 0x481b47
push ebx
call fcn.004ea481
add esp, 4
mov edx, dword [ebp - 0x6298]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x62a4]
lea eax, [ebp - 0x628c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x481760
jmp 0x481c49
lea edx, [edi + 5]
push edx
push 0
push esi
call fcn.004eb2d0
mov eax, dword [ebp - 0x6290]
add esp, 0xc
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x27
push str.user_pref__browser.startup.homepage____
lea ecx, [ebp - 0x6020]
call fcn.00401900
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x481b86
sub eax, edi
push eax
push esi
lea ecx, [ebp - 0x6020]
call fcn.004017e0
push 3
push 0x510a40
lea ecx, [ebp - 0x6020]
call fcn.004017e0
mov edi, dword [ebp - 0x6298]
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x6008], 0x10
mov edx, dword [ebp - 0x601c]
jae 0x481bd6
lea edx, [ebp - 0x601c]
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 0x62a0], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x481be1
sub eax, dword [ebp - 0x62a0]
lea ecx, [ebp - 0x603c]
push eax
mov eax, dword [ebp - 0x629c]
push edx
push 0
sub eax, ebx
push eax
call fcn.00480ed0
cmp dword [ebp - 0x6024], 0x10
mov eax, dword [ebp - 0x6038]
jae 0x481c1b
lea eax, [ebp - 0x6038]
mov ecx, dword [ebp - 0x6028]
push 0
lea edx, [ebp - 0x6294]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.004ea481
push ebx
call fcn.004ea481
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x62a4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, 0xf
mov esi, 0x10
cmp dword [ebp - 0x6008], esi
jb 0x481c77
mov eax, dword [ebp - 0x601c]
push eax
call fcn.004ea481
add esp, 4
cmp dword [ebp - 0x6024], esi
pop edi
pop esi
mov dword [ebp - 0x6008], ebx
mov dword [ebp - 0x600c], 0
mov byte [ebp - 0x601c], 0
pop ebx
jb 0x481ca8
mov ecx, dword [ebp - 0x6038]
push ecx
call fcn.004ea481
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret