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

Disassembly:
push 0x640
mov eax, 0x56ab98
call fcn.00523ccd
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.00517e90
add esp, 0xc
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4ea1e1
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 0x278]
call fcn.0040338f
mov dword [ebp - 4], ebx
push str.PerformanceWinSATDataStore_
mov eax, esi
push eax
call fcn.0040d964
mov eax, esi
push eax
lea esi, [ebp - 0x25c]
call fcn.0040d93e
mov byte [ebp - 4], 1
push 0x5b2a08
mov eax, esi
push eax
call fcn.0040d964
push 0x250
push ebx
lea eax, [ebp - 0x57c]
push eax
call fcn.00517e90
add esp, 0xc
cmp dword [ebp - 0x248], 8
mov eax, dword [ebp - 0x25c]
jae 0x4e9d3a
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 0x4ea1c3
lea ecx, [ebp - 0x294]
call fcn.0040337c
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.0040d93e
mov byte [ebp - 4], 3
lea eax, [ebp - 0x550]
push eax
mov eax, esi
push eax
call fcn.0040d964
test byte [ebp - 0x57c], 0x10
jne 0x4e9e0b
push 6
push str.Formal
xor eax, eax
mov ecx, esi
call fcn.0040eda1
cmp eax, 0xffffffff
je 0x4e9e0b
cmp dword [ebp - 0x22c], 8
mov eax, dword [ebp - 0x240]
jae 0x4e9dc2
mov eax, esi
lea ecx, [ebp - 0x2b8]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4e9e0b
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [ebp - 0x2a8]
cmp ecx, edi
jl 0x4e9e0b
jg 0x4e9def
cmp eax, dword [ebp - 0x594]
jbe 0x4e9e0b
mov dword [ebp - 0x594], eax
mov edi, ecx
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x240]
lea ecx, [ebp - 0x294]
call fcn.00404082
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.004033b1
lea eax, [ebp - 0x57c]
push eax
push dword [ebp - 0x580]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4e9d6e
push dword [ebp - 0x580]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x294]
call fcn.00494607
mov esi, eax
mov dword [ebp - 0x59c], esi
mov byte [ebp - 4], 5
lea eax, [ebp - 0x234]
call fcn.0040ea48
mov byte [ebp - 4], 6
push esi
lea ecx, [ebp - 0x234]
call fcn.00493a00
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 0x4ea0ca
mov ecx, dword [ebp - 0x584]
mov esi, dword [eax + ecx*4]
lea ecx, [ebp - 0x2d4]
mov eax, esi
call fcn.00493d1f
mov byte [ebp - 4], 7
push str.WinSPR
mov ecx, eax
call fcn.00410364
test eax, eax
setne bl
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2d4]
call fcn.004033b1
test bl, bl
jne 0x4ea0bd
lea eax, [ebp - 0x5b0]
call fcn.0040ea48
mov byte [ebp - 4], 8
push esi
lea ecx, [ebp - 0x5b0]
call fcn.00493a00
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 0x4ea0ae
mov ecx, dword [ebp - 0x588]
mov edi, dword [eax + ecx*4]
lea ecx, [ebp - 0x2f0]
mov eax, edi
call fcn.00493d38
mov byte [ebp - 4], 9
cmp dword [eax + 0x10], 0
setne bl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2f0]
call fcn.004033b1
test bl, bl
je 0x4ea0a3
push 0x38
call fcn.00515ac7
pop ecx
mov esi, eax
mov dword [ebp - 0x58c], esi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x4e9f88
mov ecx, esi
call fcn.0040337c
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x1c]
call fcn.0040337c
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xa
jmp 0x4e9f8a
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.00493d1f
mov byte [ebp - 4], 0xe
mov ebx, eax
mov eax, esi
call fcn.0040403a
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x30c]
call fcn.004033b1
lea ecx, [ebp - 0x328]
mov eax, edi
call fcn.00493d38
mov byte [ebp - 4], 0xf
mov ebx, eax
lea eax, [esi + 0x1c]
call fcn.0040403a
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x328]
call fcn.004033b1
mov dword [ebp - 0x580], esi
mov esi, dword [ebp - 0x598]
mov eax, dword [esi + 0x1e38]
lea ecx, [ebp - 0x580]
cmp ecx, eax
jae 0x4ea058
mov ecx, dword [esi + 0x1e34]
lea edx, [ebp - 0x580]
cmp ecx, edx
ja 0x4ea058
mov ebx, edx
sub ebx, ecx
sar ebx, 2
cmp eax, dword [esi + 0x1e3c]
jne 0x4ea031
lea ecx, [esi + 0x1e34]
call fcn.004ebb91
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 0x4ea08d
mov ecx, dword [ecx]
jmp 0x4ea08b
cmp eax, dword [esi + 0x1e3c]
jne 0x4ea06b
lea ecx, [esi + 0x1e34]
call fcn.004ebb91
mov eax, dword [esi + 0x1e38]
mov dword [ebp - 0x590], eax
mov dword [ebp - 0x58c], eax
mov byte [ebp - 4], 0x11
test eax, eax
je 0x4ea08d
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 0x4e9efe
mov byte [ebp - 4], 6
lea esi, [ebp - 0x5b0]
call fcn.00426e9d
inc dword [ebp - 0x584]
xor ebx, ebx
jmp 0x4e9e7d
mov byte [ebp - 4], 5
lea esi, [ebp - 0x234]
call fcn.00426e9d
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x59c]
cmp ecx, ebx
je 0x4ea0ed
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x294]
call fcn.004033b1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.004033b1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.004033b1
mov al, 1
jmp 0x4ea1e3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.004033b1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.004033b1
xor al, al
call fcn.00523d29
ret 4