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

Disassembly:
push 0x62c
mov eax, 0x49bc88
call fcn.0045208a
mov dword [ebp - 0x564], ecx
push 0x208
xor ebx, ebx
push ebx
lea eax, [ebp - 0x220]
push eax
call fcn.0046a220
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40f593
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x250]
call fcn.00401688
mov dword [ebp - 4], ebx
push str.PerformanceWinSATDataStore_
lea ecx, [ebp - 0x250]
call fcn.00401638
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x268]
call fcn.00402a9b
mov byte [ebp - 4], 1
push 0x4b7e14
lea ecx, [ebp - 0x268]
call fcn.00401638
push 0x250
push ebx
lea eax, [ebp - 0x558]
push eax
call fcn.0046a220
add esp, 0xc
lea eax, [ebp - 0x558]
push eax
lea ecx, [ebp - 0x268]
call fcn.00402109
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f056
mov byte [ebp - 4], bl
jmp 0x40f579
lea ecx, [ebp - 0x280]
call fcn.00401a80
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movlpd qword [ebp - 0x598], xmm0
mov edi, dword [ebp - 0x594]
mov ebx, dword [ebp - 0x598]
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x238]
call fcn.00402a9b
mov byte [ebp - 4], 3
lea eax, [ebp - 0x52c]
push eax
lea ecx, [ebp - 0x238]
call fcn.00401638
test byte [ebp - 0x558], 0x10
jne 0x40f112
push ecx
push str.Formal
lea ecx, [ebp - 0x238]
call fcn.00412f69
cmp eax, 0xffffffff
je 0x40f112
lea eax, [ebp - 0x2a4]
push eax
push 0
lea ecx, [ebp - 0x238]
call fcn.00402109
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x40f112
cmp dword [ebp - 0x294], edi
jl 0x40f112
jg 0x40f0f4
cmp dword [ebp - 0x298], ebx
jbe 0x40f112
mov ebx, dword [ebp - 0x298]
mov edi, dword [ebp - 0x294]
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x280]
call fcn.00402a72
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.004020b0
lea eax, [ebp - 0x558]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f07c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x280]
call fcn.0043bc83
mov dword [ebp - 0x584], eax
mov byte [ebp - 4], 5
xor ebx, ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x584]
lea eax, [ebp - 0x568]
push eax
lea ecx, [esi + 0x38]
call fcn.00420609
mov edx, dword [eax]
lea eax, [ebp - 0x560]
push eax
lea ecx, [esi + 0x38]
call fcn.00420618
push dword [ebp - 0x568]
push edx
push dword [eax]
lea ecx, [ebp - 0x22c]
call fcn.0043c313
mov ecx, ebx
mov dword [ebp - 0x580], ecx
mov eax, dword [ebp - 0x228]
mov edx, dword [ebp - 0x22c]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x40f42b
mov esi, dword [edx + ecx*4]
lea eax, [ebp - 0x2bc]
push eax
mov ecx, esi
call fcn.0043c294
mov byte [ebp - 4], 7
push str.WinSPR
mov ecx, eax
call fcn.0040b3fc
mov bl, al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2bc]
call fcn.004020b0
test bl, bl
jne 0x40f207
xor ebx, ebx
jmp 0x40f41f
xor ebx, ebx
mov dword [ebp - 0x574], ebx
mov dword [ebp - 0x570], ebx
mov dword [ebp - 0x56c], ebx
mov byte [ebp - 4], 8
lea eax, [ebp - 0x59c]
push eax
lea ecx, [esi + 0x38]
call fcn.00420609
mov edx, dword [eax]
lea eax, [ebp - 0x58c]
push eax
lea ecx, [esi + 0x38]
call fcn.00420618
push dword [ebp - 0x58c]
push edx
push dword [eax]
lea ecx, [ebp - 0x574]
call fcn.0043c313
mov edi, ebx
mov dword [ebp - 0x588], edi
mov eax, dword [ebp - 0x570]
mov ecx, dword [ebp - 0x574]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x40f3b7
mov eax, dword [ecx + edi*4]
mov dword [ebp - 0x560], eax
lea ecx, [ebp - 0x2d4]
push ecx
mov ecx, eax
call fcn.0043c2b5
mov byte [ebp - 4], 9
mov ecx, eax
call fcn.004063ed
mov bl, al
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2d4]
call fcn.004020b0
test bl, bl
jne 0x40f3af
push 0x30
call fcn.00451ccc
pop ecx
mov esi, eax
mov dword [ebp - 0x594], esi
mov ecx, esi
call fcn.00401a80
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x18]
call fcn.00401a80
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 8
mov dword [ebp - 0x55c], esi
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x2ec]
push eax
mov ecx, dword [ebp - 0x560]
call fcn.0043c294
mov byte [ebp - 4], 0xd
push eax
mov ecx, dword [ebp - 0x55c]
call fcn.0040165f
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2ec]
call fcn.004020b0
lea eax, [ebp - 0x304]
push eax
mov ecx, dword [ebp - 0x560]
call fcn.0043c2b5
mov byte [ebp - 4], 0xe
push eax
mov ecx, dword [ebp - 0x55c]
lea ecx, [ecx + 0x18]
call fcn.0040165f
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x304]
call fcn.004020b0
mov esi, dword [ebp - 0x55c]
mov dword [ebp - 0x568], esi
mov ebx, dword [ebp - 0x564]
mov eax, dword [ebx + 0x19f8]
cmp dword [ebx + 0x19fc], eax
je 0x40f37e
push eax
push 4
call fcn.00402248
pop ecx
pop ecx
mov dword [eax], esi
add dword [ebx + 0x19f8], 4
jmp 0x40f391
lea ecx, [ebp - 0x568]
push ecx
push eax
lea ecx, [ebx + 0x19f4]
call fcn.0041443e
xor ebx, ebx
mov dword [ebp - 0x55c], ebx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x55c]
test ecx, ecx
je 0x40f3b1
push ecx
call fcn.00413430
jmp 0x40f3b1
xor ebx, ebx
inc edi
jmp 0x40f255
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x574]
test ecx, ecx
je 0x40f41f
mov eax, dword [ebp - 0x56c]
sub eax, ecx
and eax, 0xfffffffc
mov dword [ebp - 0x578], eax
mov dword [ebp - 0x57c], ecx
cmp eax, 0x1000
jb 0x40f404
lea eax, [ebp - 0x578]
push eax
lea eax, [ebp - 0x57c]
push eax
call fcn.00402250
pop ecx
pop ecx
mov eax, dword [ebp - 0x578]
mov ecx, dword [ebp - 0x57c]
push eax
push ecx
call fcn.00451cfc
pop ecx
pop ecx
mov dword [ebp - 0x574], ebx
mov dword [ebp - 0x570], ebx
mov dword [ebp - 0x56c], ebx
mov ecx, dword [ebp - 0x580]
inc ecx
jmp 0x40f1ab
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
je 0x40f493
mov eax, dword [ebp - 0x224]
sub eax, ecx
and eax, 0xfffffffc
mov dword [ebp - 0x564], eax
mov dword [ebp - 0x560], ecx
cmp eax, 0x1000
jb 0x40f478
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0x560]
push eax
call fcn.00402250
pop ecx
pop ecx
mov eax, dword [ebp - 0x564]
mov ecx, dword [ebp - 0x560]
push eax
push ecx
call fcn.00451cfc
pop ecx
pop ecx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x584]
call fcn.00412f42
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.004020b0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x268]
call fcn.004020b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.004020b0
mov al, 1
jmp 0x40f595
lea ecx, [ebp - 0x268]
call fcn.004020b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.004020b0
xor al, al
call fcn.00451fd6
ret