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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403008
push 0x45d024
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 [0x45f128]
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 0x40ab70
push dword [ebp + 0xc]
mov esi, 0x40aab0
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 0x457640
or dword [ebp - 4], eax
xor eax, eax
jmp 0x457ac2
mov eax, 0x40ab6c
lea edi, [ebp - 0x23c]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x45766d
test cl, cl
je 0x457669
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x45766d
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x45764b
xor eax, eax
jmp 0x457672
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x457a6f
mov eax, 0x40ab68
lea edi, [ebp - 0x23c]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x4576a7
test cl, cl
je 0x4576a3
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x4576a7
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x457685
xor eax, eax
jmp 0x4576ac
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x457a6f
test byte [ebp - 0x268], 0x10
je 0x4578ff
xor edi, edi
cmp dword [0x473700], edi
je 0x4576d8
test byte [ebp - 0x268], 2
jne 0x4578ff
lea eax, [ebp - 0x23c]
push eax
push dword [ebp + 0xc]
push 0x40ab98
push 0x104
lea eax, [ebp - 0x480]
push eax
call ebx
add esp, 0x14
and byte [ebp - 0x37d], 0
cmp dword [ebp + 0x14], edi
je 0x4577ab
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.00455cda
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.00457596
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.0045894e
add esp, 0x18
test eax, eax
je 0x45778a
push 8
push 8
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.004557ea
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.00455821
test al, 0x20
je 0x457a6f
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.00458fdb
jmp 0x457a6f
cmp dword [ebp + 0x1c], edi
je 0x457875
mov al, byte [0x45f128]
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, 0x410a3c
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x45784a
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, 0x40aab0
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.00457596
jmp 0x457a6f
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.00455cda
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.00457596
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.0045894e
add esp, 0x18
test eax, eax
je 0x4578f1
push 8
push 8
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x790]
call fcn.004557ea
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x790]
jmp 0x4577a1
cmp dword [ebp + 0x1c], 0
jne 0x457a6f
cmp dword [0x473700], 0
je 0x45791f
test byte [ebp - 0x268], 2
jne 0x457a6f
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.00426a69
add esp, 0x18
test eax, eax
je 0x45795e
mov dword [ebp - 0x370], 4
jmp 0x45797d
lea eax, [ebp - 0x23c]
push eax
call fcn.00426ac8
pop ecx
test eax, eax
je 0x457a6f
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 0x4579cc
push 1
push dword [ebp - 0x370]
movzx eax, word [ebp + 0x18]
or eax, 0x20000
push eax
jmp 0x4579d6
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.00455cda
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.0045894e
add esp, 0x18
test eax, eax
je 0x457a6f
lea eax, [ebp - 0x23c]
push eax
call fcn.00426a69
pop ecx
test eax, eax
je 0x457a3a
mov dword [ebp - 0x370], 9
jmp 0x457a55
lea eax, [ebp - 0x23c]
push eax
call fcn.00426ac8
pop ecx
test eax, eax
je 0x457a55
mov dword [ebp - 0x370], 7
push dword [ebp - 0x370]
push dword [ebp - 0x370]
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x790]
call fcn.004557ea
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x374]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x457640
push dword [ebp - 0x374]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x374], 0xffffffff
jmp 0x457abb
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