Function at 0x534e49
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6c69
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0xa37210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a4], ecx
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
call fcn.00407670
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
push 4
push 0x5bd290
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 2
call fcn.0044ce90
cmp dword [ebp - 0x130], 0x10
lea ecx, [ebp - 0x29c]
lea eax, [ebp - 0x144]
cmovae eax, dword [ebp - 0x144]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x534eca
xor esi, esi
jmp 0x5351c3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, byte [ebp - 0x29d]
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x144]
call fcn.00407670
call esi
cmp byte [ebp - 0x270], 0x2e
je 0x53517b
mov eax, dword [ebp - 0x29c]
cmp eax, 0x2010
je 0x534fa9
cmp eax, 0x10
je 0x534fa9
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00407670
push 1
push 0x5b1910
lea ecx, [ebp - 0x12c]
call fcn.0044ce90
cmp byte [ebp - 0x270], 0
jne 0x534f47
xor ecx, ecx
jmp 0x534f59
lea ecx, [ebp - 0x270]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x534f50
sub ecx, edx
push ecx
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0044ce90
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push 0xfffffffffffffffe
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x535176
cmp dword [ebp - 0x130], 0x10
lea ecx, [ebp - 0x144]
mov eax, dword [ebp - 0x134]
cmovae ecx, dword [ebp - 0x144]
cmp byte [eax + ecx - 1], 0x5c
jne 0x5350e4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x144]
mov dword [ebp - 0x148], 0xf
push eax
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x14c], 0
mov byte [ebp - 0x15c], 0
call fcn.00407670
cmp byte [ebp - 0x270], 0
mov byte [ebp - 4], 3
jne 0x535010
xor ecx, ecx
jmp 0x535029
lea ecx, [ebp - 0x270]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x535020
sub ecx, edx
push ecx
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x15c]
call fcn.0044ce90
push 1
push 0x5b1910
lea ecx, [ebp - 0x15c]
call fcn.0044ce90
cmp dword [ebp - 0x148], 0x10
lea eax, [ebp - 0x15c]
cmovae eax, dword [ebp - 0x15c]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x114], 0
jne 0x535093
xor ecx, ecx
jmp 0x5350af
lea ecx, [ebp - 0x114]
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5350a0
sub ecx, esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea eax, [ebp - 0x114]
mov ecx, edx
push eax
call fcn.004077a0
mov ecx, dword [ebp - 0x2a4]
call fcn.00534e00
cmp dword [ebp - 0x148], 0x10
mov byte [ebp - 4], 2
jb 0x5350e4
push dword [ebp - 0x15c]
call fcn.0057b1ce
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00407670
push 1
push 0x5b1910
lea ecx, [ebp - 0x12c]
call fcn.0044ce90
cmp byte [ebp - 0x270], 0
jne 0x535119
xor ecx, ecx
jmp 0x53512b
lea ecx, [ebp - 0x270]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x535122
sub ecx, edx
push ecx
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0044ce90
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push 0xfffffffffffffffe
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne bl
lea eax, [ebp - 0x29c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x534ed6
call esi
cmp eax, 0x12
jne 0x5351b5
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
cmovae eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov bl, 1
test edi, edi
je 0x5351c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
movzx esi, bl
cmp dword [ebp - 0x118], 0x10
jb 0x5351da
push dword [ebp - 0x12c]
call fcn.0057b1ce
add esp, 4
cmp dword [ebp - 0x130], 0x10
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
jb 0x53520c
push dword [ebp - 0x144]
call fcn.0057b1ce
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
jb 0x535238
push dword [ebp + 8]
call fcn.0057b1ce
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057b964
mov esp, ebp
pop ebp
ret 0x18