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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1008823c
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x100a5688]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x100a5688]
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 0x100829d6
sub ecx, edx
push ecx
lea eax, [esp + 0x170]
push eax
mov ecx, ebx
call fcn.10004a50
lea eax, [ebx + 0x20]
push eax
push dword [ebx]
lea esi, [ebx + 4]
push str._s_sProfiles
push esi
call fcn.10004b70
mov eax, dword [0x100a55e8]
add esp, 0x10
mov ecx, 0x100a55e8
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x288], 0
mov eax, dword [0x100a55e8]
mov ecx, 0x100a55e8
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x288], 1
push dword [esi]
call dword [0x100a85f8]
or esi, 0xffffffff
test eax, eax
je 0x10082ba9
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.10004f20
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.1000a4a0
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 0x10082b84
mov eax, dword [esp + 0x2c]
shr eax, 4
and al, 1
cmp byte [esp + 0x58], 0x2e
je 0x10082b60
test al, al
je 0x10082b60
mov eax, dword [0x100a55e8]
mov ecx, 0x100a55e8
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.10004b70
mov esi, dword [esp + 0x2c]
add esp, 0x10
cmp dword [esi - 0xc], 0
jl 0x10082b3e
push str..default
push esi
call fcn.1005abc1
add esp, 8
test eax, eax
je 0x10082b3e
sub eax, esi
js 0x10082b3e
push esi
lea eax, [esp + 0x1c]
push str._sprefs.js
push eax
call fcn.10004b70
mov edi, dword [esp + 0x24]
add esp, 0xc
push edi
call dword [0x100a85f8]
test eax, eax
jne 0x10082c10
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 0x10082b60
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 0x10082aa2
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 0x10082ba5
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 0x10082bca
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 0x10082bec
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.1005ae75
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 0x10082c22
sub edx, dword [esp + 0x24]
lea eax, [esp + 0x58]
push edx
push eax
call fcn.10004a50
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
lea ecx, [ecx + 8]
push eax
call fcn.1000a430
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
lea ecx, [ecx + 0xc]
push eax
call fcn.1000a430
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 0x10082b7a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10082b7a