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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403050
push 0x45c1d4
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 [0x45e298]
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 0x40aaf8
push dword [ebp + 0xc]
mov esi, 0x40aa38
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 0x456831
or dword [ebp - 4], eax
xor eax, eax
jmp 0x456cb3
mov eax, 0x40aaf4
lea edi, [ebp - 0x23c]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x45685e
test cl, cl
je 0x45685a
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x45685e
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x45683c
xor eax, eax
jmp 0x456863
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x456c60
mov eax, 0x40aaf0
lea edi, [ebp - 0x23c]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x456898
test cl, cl
je 0x456894
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x456898
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x456876
xor eax, eax
jmp 0x45689d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x456c60
test byte [ebp - 0x268], 0x10
je 0x456af0
xor edi, edi
cmp dword [0x472870], edi
je 0x4568c9
test byte [ebp - 0x268], 2
jne 0x456af0
lea eax, [ebp - 0x23c]
push eax
push dword [ebp + 0xc]
push 0x40ab20
push 0x104
lea eax, [ebp - 0x480]
push eax
call ebx
add esp, 0x14
and byte [ebp - 0x37d], 0
cmp dword [ebp + 0x14], edi
je 0x45699c
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.00454ecb
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.00456787
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.00457b3f
add esp, 0x18
test eax, eax
je 0x45697b
push 8
push 8
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.004549db
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.00454a12
test al, 0x20
je 0x456c60
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.004581cc
jmp 0x456c60
cmp dword [ebp + 0x1c], edi
je 0x456a66
mov al, byte [0x45e298]
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, 0x410664
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x456a3b
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, 0x40aa38
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.00456787
jmp 0x456c60
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.00454ecb
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.00456787
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.00457b3f
add esp, 0x18
test eax, eax
je 0x456ae2
push 8
push 8
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x790]
call fcn.004549db
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x790]
jmp 0x456992
cmp dword [ebp + 0x1c], 0
jne 0x456c60
cmp dword [0x472870], 0
je 0x456b10
test byte [ebp - 0x268], 2
jne 0x456c60
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.00426762
add esp, 0x18
test eax, eax
je 0x456b4f
mov dword [ebp - 0x370], 4
jmp 0x456b6e
lea eax, [ebp - 0x23c]
push eax
call fcn.004267c1
pop ecx
test eax, eax
je 0x456c60
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 0x456bbd
push 1
push dword [ebp - 0x370]
movzx eax, word [ebp + 0x18]
or eax, 0x20000
push eax
jmp 0x456bc7
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.00454ecb
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.00457b3f
add esp, 0x18
test eax, eax
je 0x456c60
lea eax, [ebp - 0x23c]
push eax
call fcn.00426762
pop ecx
test eax, eax
je 0x456c2b
mov dword [ebp - 0x370], 9
jmp 0x456c46
lea eax, [ebp - 0x23c]
push eax
call fcn.004267c1
pop ecx
test eax, eax
je 0x456c46
mov dword [ebp - 0x370], 7
push dword [ebp - 0x370]
push dword [ebp - 0x370]
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x790]
call fcn.004549db
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x374]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x456831
push dword [ebp - 0x374]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x374], 0xffffffff
jmp 0x456cac
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