Function at 0x18041788
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2b4
mov eax, dword [0x180f51f0]
xor eax, esp
mov dword [esp + 0x2b0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
movzx ecx, byte [0x180fb8f9]
neg ecx
push edi
sbb ecx, ecx
and ecx, 0x180fbba0
push 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], esi
mov ebx, edx
pop edi
je 0x180417fc
push 3
push edi
mov dword [esp + 0x40], ecx
call fcn.18001d8a
push dword [ebx]
mov dword [esp + 0x40], eax
push dword [esi]
lea eax, [esp + 0x40]
push str._PackageCache::PurgeAppLowerVersions___s___s_
push eax
mov dword [esp + 0x50], 3
mov dword [esp + 0x54], edi
call fcn.18001000
add esp, 0x10
mov ecx, dword [esp + 0x10]
add ecx, 0x14
mov eax, dword [ecx]
mov dword [esp + 0x3c], ecx
call dword [eax + 4]
push ebx
call fcn.180044ef
mov dword [esp + 0x24], eax
or eax, edx
pop ecx
mov dword [esp + 0x24], edx
jne 0x18041846
mov esi, 0x80070057
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x2bc]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.1809ccb5
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x180fa268]
mov esi, 0x180fa268
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [0x180fa268]
mov ecx, esi
call dword [eax + 0xc]
mov ebx, eax
mov eax, dword [0x180fa268]
add ebx, 0x10
mov ecx, esi
mov dword [esp + 0xc], ebx
call dword [eax + 0xc]
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
add esi, 0x10
push dword [esp + 0x1c]
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], esi
call fcn.18041dca
mov dword [esp + 0xc], eax
lea eax, [esi - 0x10]
call fcn.18004250
lea eax, [ebx - 0x10]
call fcn.18004250
xor eax, eax
cmp dword [esp + 0xc], eax
jge 0x18041912
movzx ecx, byte [0x180fb8f9]
mov ebx, dword [esp + 0x14]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
je 0x18041901
push 0xfffffffffffffffe
pop esi
push esi
push edi
mov dword [esp + 0x28], ecx
call fcn.18001d8a
push dword [esp + 0xc]
mov dword [esp + 0x28], eax
push ebx
lea eax, [esp + 0x28]
push str._BuildCacheFileName_fail___s__0x_x_
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edi
call fcn.18001000
add esp, 0x10
lea eax, [ebx - 0x10]
call fcn.18004250
mov esi, dword [esp + 0xc]
jmp 0x18041824
push 0x24c
push eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x74]
push eax
call fcn.1809d820
add esp, 0xc
push 0x180c2d58
lea eax, [esp + 0x18]
lea ecx, [esp + 0x38]
call fcn.18002e5e
mov eax, dword [eax]
pop ecx
lea ecx, [esp + 0x68]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.18004250
cmp dword [esp + 0x10], 0xffffffff
jne 0x180419b7
call fcn.1800fc86
movzx ecx, byte [0x180fb8f9]
mov ebx, dword [esp + 0x14]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
mov esi, eax
je 0x180419aa
push edi
push edi
mov dword [esp + 0x28], ecx
call fcn.18001d8a
push esi
push ebx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push str._FindFirstFile_failed___s__0x_x_
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.18001000
add esp, 0x10
lea eax, [ebx - 0x10]
call fcn.18004250
jmp 0x18041824
lea eax, [esp + 0x68]
call fcn.18040bc0
test al, al
jne 0x18041ae8
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x1c]
call fcn.18003fba
lea eax, [esp + 0x18]
push eax
call fcn.180044ef
mov ebx, eax
mov eax, dword [esp + 0x1c]
pop ecx
add eax, 0xfffffff0
mov esi, edx
call fcn.18004250
mov eax, ebx
or eax, esi
je 0x18041aa1
cmp esi, dword [esp + 0x24]
ja 0x18041aa1
jb 0x18041a14
cmp ebx, dword [esp + 0x20]
jae 0x18041aa1
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x20]
call fcn.18003fba
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
lea ebx, [esp + 0x10]
call fcn.1800bc24
mov eax, dword [esp + 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.18004250
mov ebx, dword [esp + 0xc]
call fcn.180052e1
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
mov esi, eax
je 0x18041a93
push 3
pop ebx
push ebx
push edi
mov dword [esp + 0x50], ecx
call fcn.18001d8a
push esi
push dword [esp + 0x10]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
push str._Purge_version___s__0x_x_
push eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], edi
call fcn.18001000
add esp, 0x10
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.18004250
jmp 0x18041ae8
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
je 0x18041ae8
push 2
pop esi
push esi
push edi
mov dword [esp + 0x60], ecx
call fcn.18001d8a
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x5c]
push str._Not_purging_version___s_
push eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], edi
call fcn.18001000
add esp, 0xc
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180419b7
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.18004250
xor esi, esi
jmp 0x18041824