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

Disassembly:
push 0x640
mov eax, 0x5b0529
call fcn.0056bee1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x598], eax
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
xor ebx, ebx
push ebx
lea eax, [ebp - 0x222]
push eax
call fcn.0055fda0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4cd650
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 0x278]
call fcn.004037ae
mov dword [ebp - 4], ebx
push str.PerformanceWinSATDataStore_
mov eax, esi
push eax
call fcn.0040dc78
mov eax, esi
push eax
lea esi, [ebp - 0x25c]
call fcn.0040dc52
mov byte [ebp - 4], 1
push 0x5f0ec8
mov eax, esi
push eax
call fcn.0040dc78
push 0x250
push ebx
lea eax, [ebp - 0x57c]
push eax
call fcn.0055fda0
add esp, 0xc
cmp dword [ebp - 0x248], 8
mov eax, dword [ebp - 0x25c]
jae 0x4cd1a9
mov eax, esi
lea ecx, [ebp - 0x57c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x580], eax
cmp eax, 0xffffffff
je 0x4cd632
lea ecx, [ebp - 0x294]
call fcn.0040379b
mov byte [ebp - 4], 2
mov dword [ebp - 0x594], ebx
xor edi, edi
lea eax, [ebp - 0x278]
push eax
lea esi, [ebp - 0x240]
call fcn.0040dc52
mov byte [ebp - 4], 3
lea eax, [ebp - 0x550]
push eax
mov eax, esi
push eax
call fcn.0040dc78
test byte [ebp - 0x57c], 0x10
jne 0x4cd27a
push 6
push str.Formal
xor eax, eax
mov ecx, esi
call fcn.0040ee00
cmp eax, 0xffffffff
je 0x4cd27a
cmp dword [ebp - 0x22c], 8
mov eax, dword [ebp - 0x240]
jae 0x4cd231
mov eax, esi
lea ecx, [ebp - 0x2b8]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4cd27a
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [ebp - 0x2a8]
cmp ecx, edi
jl 0x4cd27a
jg 0x4cd25e
cmp eax, dword [ebp - 0x594]
jbe 0x4cd27a
mov dword [ebp - 0x594], eax
mov edi, ecx
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x240]
lea ecx, [ebp - 0x294]
call fcn.004044c6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.004037d0
lea eax, [ebp - 0x57c]
push eax
push dword [ebp - 0x580]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4cd1dd
push dword [ebp - 0x580]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x294]
call fcn.00482267
mov esi, eax
mov dword [ebp - 0x59c], esi
mov byte [ebp - 4], 5
lea eax, [ebp - 0x234]
call fcn.0041a607
mov byte [ebp - 4], 6
push esi
lea ecx, [ebp - 0x234]
call fcn.004813e5
mov dword [ebp - 0x584], ebx
mov ecx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x234]
sub ecx, eax
sar ecx, 2
cmp dword [ebp - 0x584], ecx
jae 0x4cd539
mov ecx, dword [ebp - 0x584]
mov esi, dword [eax + ecx*4]
lea ecx, [ebp - 0x2d4]
mov eax, esi
call fcn.00481704
mov byte [ebp - 4], 7
push str.WinSPR
mov ecx, eax
call fcn.004107df
test eax, eax
setne bl
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2d4]
call fcn.004037d0
test bl, bl
jne 0x4cd52c
lea eax, [ebp - 0x5b0]
call fcn.0041a607
mov byte [ebp - 4], 8
push esi
lea ecx, [ebp - 0x5b0]
call fcn.004813e5
and dword [ebp - 0x588], 0
mov ecx, dword [ebp - 0x5ac]
mov eax, dword [ebp - 0x5b0]
sub ecx, eax
sar ecx, 2
cmp dword [ebp - 0x588], ecx
jae 0x4cd51d
mov ecx, dword [ebp - 0x588]
mov edi, dword [eax + ecx*4]
lea ecx, [ebp - 0x2f0]
mov eax, edi
call fcn.0048171d
mov byte [ebp - 4], 9
cmp dword [eax + 0x10], 0
setne bl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2f0]
call fcn.004037d0
test bl, bl
je 0x4cd512
push 0x38
call fcn.0055db17
pop ecx
mov esi, eax
mov dword [ebp - 0x58c], esi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x4cd3f7
mov ecx, esi
call fcn.0040379b
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x1c]
call fcn.0040379b
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xa
jmp 0x4cd3f9
xor esi, esi
mov byte [ebp - 4], 8
mov dword [ebp - 0x5a0], esi
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x30c]
mov eax, edi
call fcn.00481704
mov byte [ebp - 4], 0xe
mov ebx, eax
mov eax, esi
call fcn.0040447e
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x30c]
call fcn.004037d0
lea ecx, [ebp - 0x328]
mov eax, edi
call fcn.0048171d
mov byte [ebp - 4], 0xf
mov ebx, eax
lea eax, [esi + 0x1c]
call fcn.0040447e
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x328]
call fcn.004037d0
mov dword [ebp - 0x580], esi
mov esi, dword [ebp - 0x598]
mov eax, dword [esi + 0x1e38]
lea ecx, [ebp - 0x580]
cmp ecx, eax
jae 0x4cd4c7
mov ecx, dword [esi + 0x1e34]
lea edx, [ebp - 0x580]
cmp ecx, edx
ja 0x4cd4c7
mov ebx, edx
sub ebx, ecx
sar ebx, 2
cmp eax, dword [esi + 0x1e3c]
jne 0x4cd4a0
lea ecx, [esi + 0x1e34]
call fcn.004dd5e0
mov eax, dword [esi + 0x1e34]
lea ecx, [eax + ebx*4]
mov eax, dword [esi + 0x1e38]
mov dword [ebp - 0x58c], eax
mov dword [ebp - 0x590], eax
mov byte [ebp - 4], 0x10
test eax, eax
je 0x4cd4fc
mov ecx, dword [ecx]
jmp 0x4cd4fa
cmp eax, dword [esi + 0x1e3c]
jne 0x4cd4da
lea ecx, [esi + 0x1e34]
call fcn.004dd5e0
mov eax, dword [esi + 0x1e38]
mov dword [ebp - 0x590], eax
mov dword [ebp - 0x58c], eax
mov byte [ebp - 4], 0x11
test eax, eax
je 0x4cd4fc
mov ecx, dword [ebp - 0x580]
mov dword [eax], ecx
mov byte [ebp - 4], 0xd
add dword [esi + 0x1e38], 4
and dword [ebp - 0x5a0], 0
mov byte [ebp - 4], 8
inc dword [ebp - 0x588]
jmp 0x4cd36d
mov byte [ebp - 4], 6
lea esi, [ebp - 0x5b0]
call fcn.0043460f
inc dword [ebp - 0x584]
xor ebx, ebx
jmp 0x4cd2ec
mov byte [ebp - 4], 5
lea esi, [ebp - 0x234]
call fcn.0043460f
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x59c]
cmp ecx, ebx
je 0x4cd55c
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x294]
call fcn.004037d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.004037d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.004037d0
mov al, 1
jmp 0x4cd652
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.004037d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.004037d0
xor al, al
call fcn.0056bf3d
ret 4