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

Disassembly:
push 0x640
mov eax, 0x56a89f
call fcn.00523a34
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.00517bf0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4ea2f4
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 0x278]
call fcn.00403350
mov dword [ebp - 4], ebx
push str.PerformanceWinSATDataStore_
mov eax, esi
push eax
call fcn.0040d9a0
mov eax, esi
push eax
lea esi, [ebp - 0x25c]
call fcn.0040d97a
mov byte [ebp - 4], 1
push 0x5b2948
mov eax, esi
push eax
call fcn.0040d9a0
push 0x250
push ebx
lea eax, [ebp - 0x57c]
push eax
call fcn.00517bf0
add esp, 0xc
cmp dword [ebp - 0x248], 8
mov eax, dword [ebp - 0x25c]
jae 0x4e9e4d
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 0x4ea2d6
lea ecx, [ebp - 0x294]
call fcn.0040333d
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.0040d97a
mov byte [ebp - 4], 3
lea eax, [ebp - 0x550]
push eax
mov eax, esi
push eax
call fcn.0040d9a0
test byte [ebp - 0x57c], 0x10
jne 0x4e9f1e
push 6
push str.Formal
xor eax, eax
mov ecx, esi
call fcn.0040ed93
cmp eax, 0xffffffff
je 0x4e9f1e
cmp dword [ebp - 0x22c], 8
mov eax, dword [ebp - 0x240]
jae 0x4e9ed5
mov eax, esi
lea ecx, [ebp - 0x2b8]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4e9f1e
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [ebp - 0x2a8]
cmp ecx, edi
jl 0x4e9f1e
jg 0x4e9f02
cmp eax, dword [ebp - 0x594]
jbe 0x4e9f1e
mov dword [ebp - 0x594], eax
mov edi, ecx
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x240]
lea ecx, [ebp - 0x294]
call fcn.0040406a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00403372
lea eax, [ebp - 0x57c]
push eax
push dword [ebp - 0x580]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4e9e81
push dword [ebp - 0x580]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x294]
call fcn.00494934
mov esi, eax
mov dword [ebp - 0x59c], esi
mov byte [ebp - 4], 5
lea eax, [ebp - 0x234]
call fcn.0040ea61
mov byte [ebp - 4], 6
push esi
lea ecx, [ebp - 0x234]
call fcn.00493b61
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 0x4ea1dd
mov ecx, dword [ebp - 0x584]
mov esi, dword [eax + ecx*4]
lea ecx, [ebp - 0x2d4]
mov eax, esi
call fcn.00493e80
mov byte [ebp - 4], 7
push str.WinSPR
mov ecx, eax
call fcn.00410382
test eax, eax
setne bl
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2d4]
call fcn.00403372
test bl, bl
jne 0x4ea1d0
lea eax, [ebp - 0x5b0]
call fcn.0040ea61
mov byte [ebp - 4], 8
push esi
lea ecx, [ebp - 0x5b0]
call fcn.00493b61
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 0x4ea1c1
mov ecx, dword [ebp - 0x588]
mov edi, dword [eax + ecx*4]
lea ecx, [ebp - 0x2f0]
mov eax, edi
call fcn.00493e99
mov byte [ebp - 4], 9
cmp dword [eax + 0x10], 0
setne bl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2f0]
call fcn.00403372
test bl, bl
je 0x4ea1b6
push 0x38
call fcn.00515827
pop ecx
mov esi, eax
mov dword [ebp - 0x58c], esi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x4ea09b
mov ecx, esi
call fcn.0040333d
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x1c]
call fcn.0040333d
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xa
jmp 0x4ea09d
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.00493e80
mov byte [ebp - 4], 0xe
mov ebx, eax
mov eax, esi
call fcn.00404022
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x30c]
call fcn.00403372
lea ecx, [ebp - 0x328]
mov eax, edi
call fcn.00493e99
mov byte [ebp - 4], 0xf
mov ebx, eax
lea eax, [esi + 0x1c]
call fcn.00404022
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x328]
call fcn.00403372
mov dword [ebp - 0x580], esi
mov esi, dword [ebp - 0x598]
mov eax, dword [esi + 0x1e38]
lea ecx, [ebp - 0x580]
cmp ecx, eax
jae 0x4ea16b
mov ecx, dword [esi + 0x1e34]
lea edx, [ebp - 0x580]
cmp ecx, edx
ja 0x4ea16b
mov ebx, edx
sub ebx, ecx
sar ebx, 2
cmp eax, dword [esi + 0x1e3c]
jne 0x4ea144
lea ecx, [esi + 0x1e34]
call fcn.004ebca4
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 0x4ea1a0
mov ecx, dword [ecx]
jmp 0x4ea19e
cmp eax, dword [esi + 0x1e3c]
jne 0x4ea17e
lea ecx, [esi + 0x1e34]
call fcn.004ebca4
mov eax, dword [esi + 0x1e38]
mov dword [ebp - 0x590], eax
mov dword [ebp - 0x58c], eax
mov byte [ebp - 4], 0x11
test eax, eax
je 0x4ea1a0
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 0x4ea011
mov byte [ebp - 4], 6
lea esi, [ebp - 0x5b0]
call fcn.004e7046
inc dword [ebp - 0x584]
xor ebx, ebx
jmp 0x4e9f90
mov byte [ebp - 4], 5
lea esi, [ebp - 0x234]
call fcn.004e7046
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x59c]
cmp ecx, ebx
je 0x4ea200
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x294]
call fcn.00403372
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.00403372
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.00403372
mov al, 1
jmp 0x4ea2f6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.00403372
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.00403372
xor al, al
call fcn.00523a90
ret 4