Function at 0x458f52
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403010
push 0x45ea34
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x784
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x790], ecx
or dword [ebp - 0x374], 0xffffffff
mov al, byte [0x460a68]
mov byte [ebp - 0x128], al
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40aad4
push dword [ebp + 0xc]
mov esi, 0x40aa14
push esi
push 0x104
lea eax, [ebp - 0x36c]
push eax
mov ebx, dword [sym.imp.MSVCRT.dll__snprintf]
call ebx
add esp, 0x14
and byte [ebp - 0x269], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x374], eax
cmp eax, 0xffffffff
jne 0x458ffc
or dword [ebp - 4], eax
xor eax, eax
jmp 0x45947e
mov eax, 0x40aad0
lea edi, [ebp - 0x23c]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x459029
test cl, cl
je 0x459025
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x459029
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x459007
xor eax, eax
jmp 0x45902e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45942b
mov eax, 0x40aacc
lea edi, [ebp - 0x23c]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x459063
test cl, cl
je 0x45905f
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x459063
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x459041
xor eax, eax
jmp 0x459068
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45942b
test byte [ebp - 0x268], 0x10
je 0x4592bb
xor edi, edi
cmp dword [0x4766d4], edi
je 0x459094
test byte [ebp - 0x268], 2
jne 0x4592bb
lea eax, [ebp - 0x23c]
push eax
push dword [ebp + 0xc]
push 0x40aafc
push 0x104
lea eax, [ebp - 0x480]
push eax
call ebx
add esp, 0x14
and byte [ebp - 0x37d], 0
cmp dword [ebp + 0x14], edi
je 0x459167
push 1
push 2
movzx eax, word [ebp + 0x18]
or eax, 0x10000
push eax
mov edi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0x23c]
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0x790]
call fcn.00457698
mov dword [ebp - 0x1c], eax
push 0
push dword [ebp + 0x18]
push 1
inc edi
push edi
lea ecx, [ebp - 0x480]
push ecx
push eax
mov edi, dword [ebp - 0x790]
mov ecx, edi
call fcn.00458f52
lea eax, [ebp - 0x23c]
push eax
push dword [ebp + 0xc]
push esi
push 0x103
lea eax, [ebp - 0x128]
push eax
call ebx
lea eax, [ebp - 0x128]
push eax
call fcn.0045a30a
add esp, 0x18
test eax, eax
je 0x459146
push 8
push 8
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.004571a8
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.004571df
test al, 0x20
je 0x45942b
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.0045a997
jmp 0x45942b
cmp dword [ebp + 0x1c], edi
je 0x459231
mov al, byte [0x460a68]
mov byte [ebp - 0x584], al
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x583]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x104
push esi
lea eax, [ebp - 0x584]
push eax
lea eax, [ebp - 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edi, [ebp - 0x584]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub esi, ecx
mov edx, 0x411228
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x459206
lea esi, [ebp - 0x584]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, esi
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x584]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, 0x40aa14
push dword [ebp + 0x1c]
push 0
push 0
mov eax, dword [ebp + 0x10]
inc eax
push eax
lea eax, [ebp - 0x480]
push eax
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x790]
call fcn.00458f52
jmp 0x45942b
push 1
push 2
push 1
mov edi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0x23c]
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0x790]
call fcn.00457698
mov dword [ebp - 0x1c], eax
xor eax, eax
push eax
push eax
push eax
inc edi
push edi
lea eax, [ebp - 0x480]
push eax
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x790]
call fcn.00458f52
lea eax, [ebp - 0x23c]
push eax
push dword [ebp + 0xc]
push esi
push 0x103
lea eax, [ebp - 0x128]
push eax
call ebx
lea eax, [ebp - 0x128]
push eax
call fcn.0045a30a
add esp, 0x18
test eax, eax
je 0x4592ad
push 8
push 8
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x790]
call fcn.004571a8
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x790]
jmp 0x45915d
cmp dword [ebp + 0x1c], 0
jne 0x45942b
cmp dword [0x4766d4], 0
je 0x4592db
test byte [ebp - 0x268], 2
jne 0x45942b
lea eax, [ebp - 0x23c]
push eax
push dword [ebp + 0xc]
push esi
push 0x104
lea eax, [ebp - 0x78c]
push eax
call ebx
and byte [ebp - 0x689], 0
lea eax, [ebp - 0x23c]
push eax
call fcn.004272c6
add esp, 0x18
test eax, eax
je 0x45931a
mov dword [ebp - 0x370], 4
jmp 0x459339
lea eax, [ebp - 0x23c]
push eax
call fcn.00427325
pop ecx
test eax, eax
je 0x45942b
mov dword [ebp - 0x370], 3
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x688]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x23c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffb
push ecx
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x688]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x459388
push 1
push dword [ebp - 0x370]
movzx eax, word [ebp + 0x18]
or eax, 0x20000
push eax
jmp 0x459392
push 0
push dword [ebp - 0x370]
push 2
push dword [ebp + 0x10]
lea eax, [ebp - 0x688]
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0x790]
call fcn.00457698
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x23c]
push eax
push dword [ebp + 0xc]
push esi
push 0x103
lea eax, [ebp - 0x128]
push eax
call ebx
lea eax, [ebp - 0x128]
push eax
call fcn.0045a30a
add esp, 0x18
test eax, eax
je 0x45942b
lea eax, [ebp - 0x23c]
push eax
call fcn.004272c6
pop ecx
test eax, eax
je 0x4593f6
mov dword [ebp - 0x370], 9
jmp 0x459411
lea eax, [ebp - 0x23c]
push eax
call fcn.00427325
pop ecx
test eax, eax
je 0x459411
mov dword [ebp - 0x370], 7
push dword [ebp - 0x370]
push dword [ebp - 0x370]
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x790]
call fcn.004571a8
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x374]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x458ffc
push dword [ebp - 0x374]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x374], 0xffffffff
jmp 0x459477
or dword [ebp - 4], 0xffffffff
push 1
pop eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x18