Function at 0x4a795e
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5735a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0052f086
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0054d095
mov byte [ebp - 4], 2
mov ecx, dword [0x5be480]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 3
push 1
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x10]
call fcn.0054a6f2
mov dword [ebp - 0x60], eax
push 0x5b6bd4
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
push ecx
call fcn.00537cf5
add esp, 8
mov dword [ebp - 0x5c], eax
xor edx, edx
cmp dword [ebp - 0x5c], 0
setne dl
mov byte [ebp - 0x48], dl
lea ecx, [ebp - 0x4c]
call fcn.0054d328
mov eax, dword [ebp - 0x48]
and eax, 0xff
test eax, eax
je 0x4a79fd
push 0x5b6bd8
lea ecx, [ebp - 0x10]
call fcn.0054d719
push 0x5b6bdc
lea ecx, [ebp - 0x10]
call fcn.0054d719
push 0
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0052f14b
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4a7b03
lea ecx, [ebp - 0x30]
call fcn.0052f371
mov dword [ebp - 0x34], eax
push 0x10
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x30]
call dword [edx + 0x38]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x4a7aa4
lea ecx, [ebp - 0x30]
call fcn.0052f334
test eax, eax
jne 0x4a7aa4
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
call fcn.0052f440
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0052f56c
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
lea edx, [ebp - 0x38]
push edx
call fcn.0054d095
mov dword [ebp - 0x6c], eax
call fcn.004a795e
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
call fcn.0054d328
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0054d328
jmp 0x4a7afe
push 0x10
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x30]
call dword [eax + 0x38]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x4a7afe
lea ecx, [ebp - 0x30]
call fcn.0052f334
test eax, eax
jne 0x4a7afe
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0052f440
mov byte [ebp - 4], 6
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x30]
call fcn.0052f56c
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x44]
call fcn.0054d328
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0054d328
jmp 0x4a7a1b
lea ecx, [ebp - 0x30]
call fcn.0052f101
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4a7b58
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0054d328
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0054d328
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0052f0c5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054d328
mov eax, dword [ebp - 0x54]
jmp 0x4a7b95
mov dword [ebp - 0x58], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0054d328
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0054d328
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0052f0c5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054d328
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret