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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008003c
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x1009d350]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x25c], ebx
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10078c64
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
mov ecx, ebx
call fcn.100081be
lea eax, [ebx + 0x20]
push eax
push dword [ebx]
lea esi, [ebx + 4]
push str._s_sProfiles
push esi
call fcn.10009163
mov eax, dword [0x1009d2a8]
add esp, 0x10
mov ecx, 0x1009d2a8
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x260], ebx
mov dword [ebp - 4], 0
mov eax, dword [0x1009d2a8]
mov ecx, 0x1009d2a8
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x26c], edi
mov byte [ebp - 4], 1
push dword [esi]
call dword [0x100a05e4]
or esi, 0xffffffff
test eax, eax
je 0x10078ea5
mov ebx, dword [ebp - 0x25c]
mov ebx, dword [ebx + 4]
sub ebx, 0x10
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
lea edx, [ebx + 0xc]
mov ecx, eax
jl 0x10078d0a
cmp ecx, dword [ebx]
jne 0x10078d0a
mov eax, 1
lock xadd dword [edx], eax
jmp 0x10078d46
mov eax, dword [ecx]
push 1
push dword [ebx + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x264], edx
test edx, edx
jne 0x10078d24
call fcn.10008235
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ebx + 4]
inc ecx
push ecx
lea eax, [ebx + 0x10]
push eax
push ecx
lea eax, [edx + 0x10]
push eax
call fcn.1004d8fb
mov ebx, dword [ebp - 0x264]
add esp, 0x10
lea eax, [ebx + 0x10]
mov dword [ebp - 0x270], eax
push 4
push str..
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 2
call fcn.100164e0
mov ebx, dword [ebp - 0x270]
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x10078e82
jmp 0x10078d90
mov eax, dword [ebp - 0x258]
shr eax, 4
and al, 1
cmp byte [ebp - 0x22c], 0x2e
je 0x10078e58
test al, al
je 0x10078e58
mov eax, dword [0x1009d2a8]
mov ecx, 0x1009d2a8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x25c]
mov byte [ebp - 4], 3
push dword [eax + 4]
lea eax, [ebp - 0x268]
push str._s_s
push eax
call fcn.10009163
mov esi, dword [ebp - 0x268]
add esp, 0x10
cmp dword [esi - 0xc], 0
jl 0x10078e3a
push str..default
push esi
call fcn.1004c95d
add esp, 8
test eax, eax
je 0x10078e3a
sub eax, esi
js 0x10078e3a
push esi
lea eax, [ebp - 0x26c]
push str._sprefs.js
push eax
call fcn.10009163
mov edi, dword [ebp - 0x26c]
add esp, 0xc
push edi
call dword [0x100a05e4]
test eax, eax
jne 0x10078efc
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
mov byte [ebp - 4], 2
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10078e58
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10078d90
or esi, 0xffffffff
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
add ebx, 0xfffffff0
mov ecx, esi
lea eax, [ebx + 0xc]
mov byte [ebp - 4], 1
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10078e9f
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x260]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10078ec2
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x10078ee0
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004bbda
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x25c]
lea edx, [ebp - 0x22c]
lea ecx, [ecx + 0x10]
lea eax, [edx + 1]
mov dword [ebp - 0x274], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x10078f14
sub edx, dword [ebp - 0x274]
lea eax, [ebp - 0x22c]
push edx
push eax
call fcn.100081be
mov ecx, dword [ebp - 0x25c]
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ecx + 8]
call fcn.100060ed
mov ecx, dword [ebp - 0x25c]
lea eax, [ebp - 0x268]
push eax
lea ecx, [ecx + 0xc]
call fcn.100060ed
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10078e76
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10078e76