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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd72c
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x633ef8]
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 esi, ecx
mov dword [ebp - 0x268], esi
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x114]
push eax
call fcn.0059e3a0
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00416780
lea eax, [esi + 0x24]
push eax
push dword [esi]
lea ebx, [esi + 4]
push str._s_sProfiles
push ebx
call fcn.00415ec0
add esp, 0x10
call fcn.004555ae
mov ecx, eax
test ecx, ecx
jne 0x424545
push 0x80004005
call fcn.00416970
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x270], eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x124], ecx
mov dword [ebp - 4], 0
call fcn.004555ae
mov ecx, eax
test ecx, ecx
jne 0x424575
push 0x80004005
call fcn.00416970
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x11c], edi
mov byte [ebp - 4], 1
push dword [ebx]
call dword [0x641008]
or esi, 0xffffffff
test eax, eax
je 0x424706
push ebx
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x118], 0
call fcn.004163d0
push str..
mov byte [ebp - 4], 2
call fcn.0059e3a0
add esp, 4
lea ecx, [ebp - 0x118]
push eax
push str..
call fcn.0042d0e0
mov ebx, dword [ebp - 0x118]
lea eax, [ebp - 0x264]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x26c], eax
cmp eax, esi
je 0x4246eb
mov eax, dword [ebp - 0x264]
shr eax, 4
and al, 1
cmp byte [ebp - 0x238], 0x2e
je 0x4246c1
test al, al
je 0x4246c1
call fcn.004555ae
test eax, eax
je 0x42453b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 3
push eax
mov eax, dword [ebp - 0x268]
push dword [eax + 4]
lea eax, [ebp - 0x120]
push str._s_s
push eax
call fcn.00415ec0
mov esi, dword [ebp - 0x120]
add esp, 0x10
cmp dword [esi - 0xc], 0
jl 0x4246a5
push str..default
push esi
call fcn.0059bf87
add esp, 8
test eax, eax
je 0x4246a5
sub eax, esi
js 0x4246a5
push esi
lea eax, [ebp - 0x11c]
push str._sprefs.js
push eax
call fcn.00415ec0
mov edi, dword [ebp - 0x11c]
add esp, 0xc
push edi
call dword [0x641008]
test eax, eax
jne 0x42475c
or eax, 0xffffffff
mov byte [ebp - 4], 2
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4246c1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4245f4
or esi, 0xffffffff
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
mov byte [ebp - 4], 1
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x424706
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x424721
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x270]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x424740
mov ecx, dword [edx]
push edx
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.005892bc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x238]
push eax
call fcn.0059e3a0
mov ecx, dword [ebp - 0x268]
add esp, 4
push eax
lea eax, [ebp - 0x238]
push eax
lea ecx, [ecx + 0x10]
call fcn.00416780
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ecx + 8]
call fcn.00416300
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ecx + 0xc]
call fcn.00416300
mov eax, dword [ebp - 0x268]
push esi
add eax, 0x14
push str._sextensions.json
push eax
call fcn.00415ec0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
or esi, 0xffffffff
add esp, 0xc
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4246df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4246df