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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5a028c]
test eax, eax
jne 0x4a1458
mov eax, dword [0xa603ac]
test eax, eax
jne 0x4a11b4
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047bd62
mov dword [0xa603ac], eax
mov dword [esp + 4], 1
mov dword [esp], 0x56f967
call fcn.0047bbdf
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047c68d
mov edx, eax
mov eax, dword [0xa603ac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
mov eax, dword [0xa603b0]
test eax, eax
jne 0x4a120c
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047bd62
mov dword [0xa603b0], eax
mov eax, dword [0xa603b4]
test eax, eax
jne 0x4a122e
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047bd62
mov dword [0xa603b4], eax
mov edx, dword [0xa603ac]
mov eax, dword [0xa603b0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
mov eax, dword [0xa603b0]
mov eax, dword [eax + 4]
mov dword [0xa603b8], eax
jmp 0x4a12a3
mov eax, dword [0xa603b0]
mov eax, dword [eax]
mov edx, dword [0xa603b8]
sub edx, 1
add eax, edx
movzx eax, byte [eax]
cmp al, 0x2f
je 0x4a1286
mov eax, dword [0xa603b0]
mov eax, dword [eax]
mov edx, dword [0xa603b8]
sub edx, 1
add eax, edx
movzx eax, byte [eax]
cmp al, 0x5c
jne 0x4a1296
mov eax, dword [0xa603b0]
mov edx, dword [0xa603b8]
mov dword [eax + 4], edx
jmp 0x4a12b1
mov eax, dword [0xa603b8]
sub eax, 1
mov dword [0xa603b8], eax
mov eax, dword [0xa603b8]
test eax, eax
setg al
test al, al
jne 0x4a1254
mov eax, dword [0xa603b8]
test eax, eax
jne 0x4a12c6
mov eax, dword [0xa603b0]
mov dword [eax + 4], 0
mov dword [0xa603bc], 0
mov eax, dword [0xa603ac]
mov dword [esp], eax
call fcn.00470b17
mov dword [esp + 4], 0xa603c0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
call eax
sub esp, 8
mov dword [0xa60500], eax
mov eax, dword [0xa60500]
cmp eax, 0xffffffff
jne 0x4a1312
mov dword [esp], 0x35
call fcn.0047a648
jmp 0x4a145c
mov eax, dword [0xa603c0]
and eax, 0x10
test eax, eax
jne 0x4a1408
mov dword [esp], 0xa603ec
call sub.msvcrt.dll_strlen
add eax, 1
mov dword [esp + 4], eax
mov dword [esp], 0xa603ec
call fcn.0047bbdf
mov edx, eax
mov eax, dword [0xa603b0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c68d
mov edx, eax
mov eax, dword [0xa603b4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
mov eax, dword [0xa603b4]
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 0x4a13fb
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0xa603b8], eax
mov eax, dword [0xa603b8]
cmp eax, 5
je 0x4a13b8
mov eax, dword [0xa603b8]
cmp eax, 0x13
je 0x4a13b8
mov eax, dword [0xa603b8]
cmp eax, 0x21
je 0x4a13b8
mov eax, dword [0xa603b8]
cmp eax, 0x20
jne 0x4a13db
mov eax, dword [0xa60500]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
sub esp, 4
mov dword [esp], 0x37
call fcn.0047a648
jmp 0x4a145c
mov eax, dword [0xa60500]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
sub esp, 4
mov dword [esp], 0x35
call fcn.0047a648
jmp 0x4a145c
mov eax, dword [0xa603bc]
add eax, 1
mov dword [0xa603bc], eax
mov eax, dword [0xa60500]
mov dword [esp + 4], 0xa603c0
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 0x4a1312
mov eax, dword [0xa60500]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
sub esp, 4
mov eax, dword [0xa603bc]
test eax, eax
jne 0x4a145b
mov dword [esp], 0x35
call fcn.0047a648
jmp 0x4a145c
nop
jmp 0x4a145c
nop
leave
ret