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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x58528c]
test eax, eax
jne 0x4880a8
mov eax, dword [0xa44fac]
test eax, eax
jne 0x487e04
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004629b2
mov dword [0xa44fac], eax
mov dword [esp + 4], 1
mov dword [esp], 0x555587
call fcn.0046282f
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004632dd
mov edx, eax
mov eax, dword [0xa44fac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00462b19
mov eax, dword [0xa44fb0]
test eax, eax
jne 0x487e5c
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004629b2
mov dword [0xa44fb0], eax
mov eax, dword [0xa44fb4]
test eax, eax
jne 0x487e7e
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004629b2
mov dword [0xa44fb4], eax
mov edx, dword [0xa44fac]
mov eax, dword [0xa44fb0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00462b19
mov eax, dword [0xa44fb0]
mov eax, dword [eax + 4]
mov dword [0xa44fb8], eax
jmp 0x487ef3
mov eax, dword [0xa44fb0]
mov eax, dword [eax]
mov edx, dword [0xa44fb8]
sub edx, 1
add eax, edx
movzx eax, byte [eax]
cmp al, 0x2f
je 0x487ed6
mov eax, dword [0xa44fb0]
mov eax, dword [eax]
mov edx, dword [0xa44fb8]
sub edx, 1
add eax, edx
movzx eax, byte [eax]
cmp al, 0x5c
jne 0x487ee6
mov eax, dword [0xa44fb0]
mov edx, dword [0xa44fb8]
mov dword [eax + 4], edx
jmp 0x487f01
mov eax, dword [0xa44fb8]
sub eax, 1
mov dword [0xa44fb8], eax
mov eax, dword [0xa44fb8]
test eax, eax
setg al
test al, al
jne 0x487ea4
mov eax, dword [0xa44fb8]
test eax, eax
jne 0x487f16
mov eax, dword [0xa44fb0]
mov dword [eax + 4], 0
mov dword [0xa44fbc], 0
mov eax, dword [0xa44fac]
mov dword [esp], eax
call fcn.00457767
mov dword [esp + 4], 0xa44fc0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
call eax
sub esp, 8
mov dword [0xa45100], eax
mov eax, dword [0xa45100]
cmp eax, 0xffffffff
jne 0x487f62
mov dword [esp], 0x35
call fcn.00461298
jmp 0x4880ac
mov eax, dword [0xa44fc0]
and eax, 0x10
test eax, eax
jne 0x488058
mov dword [esp], 0xa44fec
call sub.msvcrt.dll_strlen
add eax, 1
mov dword [esp + 4], eax
mov dword [esp], 0xa44fec
call fcn.0046282f
mov edx, eax
mov eax, dword [0xa44fb0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004632dd
mov edx, eax
mov eax, dword [0xa44fb4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00462b19
mov eax, dword [0xa44fb4]
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 0x48804b
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0xa44fb8], eax
mov eax, dword [0xa44fb8]
cmp eax, 5
je 0x488008
mov eax, dword [0xa44fb8]
cmp eax, 0x13
je 0x488008
mov eax, dword [0xa44fb8]
cmp eax, 0x21
je 0x488008
mov eax, dword [0xa44fb8]
cmp eax, 0x20
jne 0x48802b
mov eax, dword [0xa45100]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
sub esp, 4
mov dword [esp], 0x37
call fcn.00461298
jmp 0x4880ac
mov eax, dword [0xa45100]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
sub esp, 4
mov dword [esp], 0x35
call fcn.00461298
jmp 0x4880ac
mov eax, dword [0xa44fbc]
add eax, 1
mov dword [0xa44fbc], eax
mov eax, dword [0xa45100]
mov dword [esp + 4], 0xa44fc0
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 0x487f62
mov eax, dword [0xa45100]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
sub esp, 4
mov eax, dword [0xa44fbc]
test eax, eax
jne 0x4880ab
mov dword [esp], 0x35
call fcn.00461298
jmp 0x4880ac
nop
jmp 0x4880ac
nop
leave
ret