Function at 0x10050e40
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005625c
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x100695e8]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x100695e8]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x16c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [esp + 0x16c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050ea6
sub ecx, edx
push ecx
lea eax, [esp + 0x170]
push eax
mov ecx, ebx
call fcn.1000bfd0
lea eax, [ebx + 0x20]
push eax
push dword [ebx]
lea esi, [ebx + 4]
push str._s_sProfiles
push esi
call fcn.1000c0d0
mov eax, dword [0x10069550]
add esp, 0x10
mov ecx, 0x10069550
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x288], 0
mov eax, dword [0x10069550]
mov ecx, 0x10069550
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x288], 1
push dword [esi]
call dword [0x1006c918]
or esi, 0xffffffff
test eax, eax
je 0x10051079
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.1000de10
add eax, 0x10
add esp, 4
mov dword [esp + 0x20], eax
push 4
push str..
lea ecx, [esp + 0x28]
mov byte [esp + 0x290], 2
call fcn.100142b0
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x28], eax
cmp eax, esi
je 0x10051054
mov eax, dword [esp + 0x2c]
shr eax, 4
and al, 1
cmp byte [esp + 0x58], 0x2e
je 0x10051030
test al, al
je 0x10051030
mov eax, dword [0x10069550]
mov ecx, 0x10069550
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28c], 3
push dword [eax + 4]
lea eax, [esp + 0x24]
push str._s_s
push eax
call fcn.1000c0d0
mov esi, dword [esp + 0x2c]
add esp, 0x10
cmp dword [esi - 0xc], 0
jl 0x1005100e
push str..default
push esi
call fcn.10026907
add esp, 8
test eax, eax
je 0x1005100e
sub eax, esi
js 0x1005100e
push esi
lea eax, [esp + 0x1c]
push str._sprefs.js
push eax
call fcn.1000c0d0
mov edi, dword [esp + 0x24]
add esp, 0xc
push edi
call dword [0x1006c918]
test eax, eax
jne 0x100510e0
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
mov byte [esp + 0x288], 2
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10051030
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10050f72
or esi, 0xffffffff
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FindClose]
add ebx, 0xfffffff0
mov ecx, esi
lea eax, [ebx + 0xc]
mov byte [esp + 0x288], 1
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10051075
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [esp + 0x14]
add edi, 0xfffffff0
mov byte [esp + 0x288], 0
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1005109a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov dword [esp + 0x288], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x100510bc
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.10026aaf
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x58]
lea ecx, [ecx + 0x10]
lea eax, [edx + 1]
mov dword [esp + 0x24], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x100510f2
sub edx, dword [esp + 0x24]
lea eax, [esp + 0x58]
push edx
push eax
call fcn.1000bfd0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
lea ecx, [ecx + 8]
push eax
call fcn.10014240
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
lea ecx, [ecx + 0xc]
push eax
call fcn.10014240
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [esp + 0x288], 2
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1005104a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1005104a