Function at 0x480fbb
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x57e28c]
test eax, eax
jne 0x481294
mov eax, dword [0xa3dd4c]
test eax, eax
jne 0x480ff0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0045bb9e
mov dword [0xa3dd4c], eax
mov dword [esp + 4], 1
mov dword [esp], 0x54e547
call fcn.0045ba1b
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0045c4c9
mov edx, eax
mov eax, dword [0xa3dd4c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0045bd05
mov eax, dword [0xa3dd50]
test eax, eax
jne 0x481048
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0045bb9e
mov dword [0xa3dd50], eax
mov eax, dword [0xa3dd54]
test eax, eax
jne 0x48106a
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0045bb9e
mov dword [0xa3dd54], eax
mov edx, dword [0xa3dd4c]
mov eax, dword [0xa3dd50]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0045bd05
mov eax, dword [0xa3dd50]
mov eax, dword [eax + 4]
mov dword [0xa3dd58], eax
jmp 0x4810df
mov eax, dword [0xa3dd50]
mov eax, dword [eax]
mov edx, dword [0xa3dd58]
sub edx, 1
add eax, edx
movzx eax, byte [eax]
cmp al, 0x2f
je 0x4810c2
mov eax, dword [0xa3dd50]
mov eax, dword [eax]
mov edx, dword [0xa3dd58]
sub edx, 1
add eax, edx
movzx eax, byte [eax]
cmp al, 0x5c
jne 0x4810d2
mov eax, dword [0xa3dd50]
mov edx, dword [0xa3dd58]
mov dword [eax + 4], edx
jmp 0x4810ed
mov eax, dword [0xa3dd58]
sub eax, 1
mov dword [0xa3dd58], eax
mov eax, dword [0xa3dd58]
test eax, eax
setg al
test al, al
jne 0x481090
mov eax, dword [0xa3dd58]
test eax, eax
jne 0x481102
mov eax, dword [0xa3dd50]
mov dword [eax + 4], 0
mov dword [0xa3dd5c], 0
mov eax, dword [0xa3dd4c]
mov dword [esp], eax
call fcn.00450953
mov dword [esp + 4], 0xa3dd60
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
call eax
sub esp, 8
mov dword [0xa3dea0], eax
mov eax, dword [0xa3dea0]
cmp eax, 0xffffffff
jne 0x48114e
mov dword [esp], 0x35
call fcn.0045a484
jmp 0x481298
mov eax, dword [0xa3dd60]
and eax, 0x10
test eax, eax
jne 0x481244
mov dword [esp], 0xa3dd8c
call sub.msvcrt.dll_strlen
add eax, 1
mov dword [esp + 4], eax
mov dword [esp], 0xa3dd8c
call fcn.0045ba1b
mov edx, eax
mov eax, dword [0xa3dd50]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0045c4c9
mov edx, eax
mov eax, dword [0xa3dd54]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0045bd05
mov eax, dword [0xa3dd54]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call eax
sub esp, 4
test eax, eax
sete al
test al, al
je 0x481237
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0xa3dd58], eax
mov eax, dword [0xa3dd58]
cmp eax, 5
je 0x4811f4
mov eax, dword [0xa3dd58]
cmp eax, 0x13
je 0x4811f4
mov eax, dword [0xa3dd58]
cmp eax, 0x21
je 0x4811f4
mov eax, dword [0xa3dd58]
cmp eax, 0x20
jne 0x481217
mov eax, dword [0xa3dea0]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
sub esp, 4
mov dword [esp], 0x37
call fcn.0045a484
jmp 0x481298
mov eax, dword [0xa3dea0]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
sub esp, 4
mov dword [esp], 0x35
call fcn.0045a484
jmp 0x481298
mov eax, dword [0xa3dd5c]
add eax, 1
mov dword [0xa3dd5c], eax
mov eax, dword [0xa3dea0]
mov dword [esp + 4], 0xa3dd60
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileA]
call eax
sub esp, 8
test eax, eax
setne al
test al, al
jne 0x48114e
mov eax, dword [0xa3dea0]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
sub esp, 4
mov eax, dword [0xa3dd5c]
test eax, eax
jne 0x481297
mov dword [esp], 0x35
call fcn.0045a484
jmp 0x481298
nop
jmp 0x481298
nop
leave
ret