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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403008
push 0x45db24
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 [0x45fc38]
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 0x4580c1
or dword [ebp - 4], eax
xor eax, eax
jmp 0x458543
mov eax, 0x40aad0
lea edi, [ebp - 0x23c]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x4580ee
test cl, cl
je 0x4580ea
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x4580ee
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x4580cc
xor eax, eax
jmp 0x4580f3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4584f0
mov eax, 0x40aacc
lea edi, [ebp - 0x23c]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x458128
test cl, cl
je 0x458124
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x458128
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x458106
xor eax, eax
jmp 0x45812d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4584f0
test byte [ebp - 0x268], 0x10
je 0x458380
xor edi, edi
cmp dword [0x4753a0], edi
je 0x458159
test byte [ebp - 0x268], 2
jne 0x458380
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 0x45822c
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.0045675b
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.00458017
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.004593cf
add esp, 0x18
test eax, eax
je 0x45820b
push 8
push 8
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.0045626b
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.004562a2
test al, 0x20
je 0x4584f0
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.00459a5c
jmp 0x4584f0
cmp dword [ebp + 0x1c], edi
je 0x4582f6
mov al, byte [0x45fc38]
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, 0x410e28
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x4582cb
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.00458017
jmp 0x4584f0
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.0045675b
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.00458017
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.004593cf
add esp, 0x18
test eax, eax
je 0x458372
push 8
push 8
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x790]
call fcn.0045626b
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x790]
jmp 0x458222
cmp dword [ebp + 0x1c], 0
jne 0x4584f0
cmp dword [0x4753a0], 0
je 0x4583a0
test byte [ebp - 0x268], 2
jne 0x4584f0
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.00426ed5
add esp, 0x18
test eax, eax
je 0x4583df
mov dword [ebp - 0x370], 4
jmp 0x4583fe
lea eax, [ebp - 0x23c]
push eax
call fcn.00426f34
pop ecx
test eax, eax
je 0x4584f0
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 0x45844d
push 1
push dword [ebp - 0x370]
movzx eax, word [ebp + 0x18]
or eax, 0x20000
push eax
jmp 0x458457
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.0045675b
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.004593cf
add esp, 0x18
test eax, eax
je 0x4584f0
lea eax, [ebp - 0x23c]
push eax
call fcn.00426ed5
pop ecx
test eax, eax
je 0x4584bb
mov dword [ebp - 0x370], 9
jmp 0x4584d6
lea eax, [ebp - 0x23c]
push eax
call fcn.00426f34
pop ecx
test eax, eax
je 0x4584d6
mov dword [ebp - 0x370], 7
push dword [ebp - 0x370]
push dword [ebp - 0x370]
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x790]
call fcn.0045626b
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x374]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4580c1
push dword [ebp - 0x374]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x374], 0xffffffff
jmp 0x45853c
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