Function at 0x4810d0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file size
Read 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 - 0x629c], eax
mov dword [ebp - 0x6294], esi
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 - 0x6290], esi
mov eax, edi
sub edx, edi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x481140
lea eax, [ebp - 0x6004]
add eax, 0xfffffffe
jmp 0x481160
mov cx, word [eax + 2]
add eax, 2
cmp cx, si
jne 0x481160
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 - 0x62a0], eax
cmp eax, 0xffffffff
je 0x481559
jmp 0x4811b0
test byte [ebp - 0x628c], 0x10
je 0x4812bb
lea eax, [ebp - 0x6260]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4811c6
mov si, word [ebp - 0x6260]
sub eax, edx
sar eax, 1
cmp eax, 1
jne 0x4811eb
cmp si, 0x2e
je 0x4814a3
lea eax, [ebp - 0x6260]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4811f4
sub eax, edx
sar eax, 1
cmp eax, 2
jne 0x48121b
cmp si, word [ebp - 0x625e]
jne 0x48121b
cmp si, 0x2e
je 0x4814a3
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 0x481225
lea edi, [ebp - 0x4004]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x481240
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 0x481260
lea edi, [ebp - 0x4004]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x481276
mov ecx, eax
shr ecx, 2
mov esi, edx
mov edx, dword [ebp - 0x629c]
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.004810d0
add esp, 8
mov dword [ebp - 0x6294], eax
test eax, eax
jne 0x4814e7
jmp 0x4814a0
lea ecx, [ebp - 0x6260]
push str.prefs.js
push ecx
call fcn.004eb4e2
add esp, 8
test eax, eax
jne 0x4814a3
lea edx, [ebp - 0x2004]
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x4812e1
lea eax, [ebp - 0x2004]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, si
jne 0x481300
mov edx, dword [0x510998]
mov ecx, dword [0x51099c]
push esi
mov dword [eax], edx
mov edx, dword [0x5109a0]
push esi
mov dword [eax + 4], ecx
mov ecx, dword [0x5109a4]
push 3
mov dword [eax + 8], edx
mov edx, dword [0x5109a8]
push esi
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 0x4814a3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea esi, [ebx + 1]
push esi
call fcn.004e9cc4
mov edi, eax
add esp, 4
test edi, edi
je 0x481493
push esi
push 0
push edi
call fcn.004eb2d0
mov edx, dword [ebp - 0x6298]
add esp, 0xc
push 0
lea ecx, [ebp - 0x6290]
push ecx
push ebx
push edi
push edx
mov dword [ebp - 0x6290], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48148a
cmp dword [ebp - 0x6290], ebx
jne 0x48148a
push edi
call fcn.004eca7e
add esp, 4
push edi
lea ecx, [ebp - 0x603c]
call fcn.004016e0
push str.user_pref__browser.startup.homepage__
push edi
call fcn.004ec7e0
add esp, 8
mov dword [ebp - 0x62a4], eax
test eax, eax
je 0x48148a
push 0x51096c
push eax
call fcn.004ec7e0
add esp, 8
test eax, eax
je 0x48148a
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov byte [eax], 0
mov eax, dword [ebp - 0x629c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
je 0x48148a
lea eax, [ebx + 1]
push eax
call fcn.004e9cc4
mov esi, eax
add esp, 4
test esi, esi
je 0x48148a
lea eax, [ebx + 1]
push eax
push 0
push esi
call fcn.004eb2d0
mov ecx, dword [ebp - 0x629c]
add esp, 0xc
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call fcn.004eca7e
mov edx, dword [ebp - 0x62a4]
push esi
push edx
call fcn.004ec7e0
add esp, 0xc
push esi
test eax, eax
jne 0x4814c2
call fcn.004ea481
add esp, 4
push edi
call fcn.004ea481
add esp, 4
mov eax, dword [ebp - 0x6298]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x62a0]
lea ecx, [ebp - 0x628c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4814e7
xor esi, esi
jmp 0x4811b0
mov dword [ebp - 0x6294], 1
call fcn.004ea481
push edi
call fcn.004ea481
mov eax, dword [ebp - 0x6298]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x62a0]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 0x10
cmp dword [ebp - 0x6008], esi
jb 0x481510
mov edx, dword [ebp - 0x601c]
push edx
call fcn.004ea481
add esp, 4
mov dword [ebp - 0x6008], 0xf
mov dword [ebp - 0x600c], 0
mov byte [ebp - 0x601c], 0
cmp dword [ebp - 0x6024], esi
jb 0x481542
mov eax, dword [ebp - 0x6038]
push eax
call fcn.004ea481
add esp, 4
mov eax, dword [ebp - 0x6294]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret
mov esi, 0x10
cmp dword [ebp - 0x6008], esi
jb 0x481575
mov ecx, dword [ebp - 0x601c]
push ecx
call fcn.004ea481
add esp, 4
mov dword [ebp - 0x6008], ebx
mov dword [ebp - 0x600c], 0
mov byte [ebp - 0x601c], 0
cmp dword [ebp - 0x6024], esi
jb 0x4815a3
mov edx, dword [ebp - 0x6038]
push edx
call fcn.004ea481
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret