Function at 0x4e0588
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd6c
push ebx
xor eax, eax
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x280]
mov edx, dword [0x41a8d4]
call fcn.0040bb58
xor eax, eax
push ebp
push 0x4e091c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x4f78e4]
call fcn.004dea58
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004230e4
lea eax, [ebp - 0xc]
mov ecx, 0x4e0934
mov edx, dword [ebp - 8]
call fcn.0040b840
mov eax, dword [ebp - 0xc]
call fcn.0040b5f0
push eax
call sub.kernel32.dll_DeleteFileW
test eax, eax
jne 0x4e0656
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [0x4efd08]
mov edx, 0x4e0958
call fcn.00408668
call fcn.0040d2e4
mov edx, 0x4e099c
call fcn.00408668
mov edx, dword [ebp - 0xc]
call fcn.00408668
call main
call fcn.00406f90
jmp 0x4e08de
mov eax, dword [0x4efd08]
mov edx, 0x4e09c4
call fcn.00408668
mov edx, dword [ebp - 0xc]
call fcn.00408668
call main
call fcn.00406f90
mov eax, dword [ebp - 4]
call fcn.0040b5f0
push eax
call sub.kernel32.dll_DeleteFileW
test eax, eax
jne 0x4e06cb
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [0x4efd08]
mov edx, 0x4e0958
call fcn.00408668
call fcn.0040d2e4
mov edx, 0x4e099c
call fcn.00408668
mov edx, dword [ebp - 4]
call fcn.00408668
call main
call fcn.00406f90
jmp 0x4e08de
mov eax, dword [0x4efd08]
mov edx, 0x4e09c4
call fcn.00408668
mov edx, dword [ebp - 4]
call fcn.00408668
call main
call fcn.00406f90
lea eax, [ebp - 0x284]
mov ecx, 0x4e09f8
mov edx, dword [ebp - 8]
call fcn.0040b840
mov eax, dword [ebp - 0x284]
lea ecx, [ebp - 0x280]
mov edx, 0x1ff
call fcn.00423054
test eax, eax
jne 0x4e086c
mov eax, dword [ebp - 0x270]
and eax, 0x10
cmp eax, 0x10
jne 0x4e07da
mov eax, dword [ebp - 0x26c]
mov edx, 0x4e0a0c
call fcn.0040b978
je 0x4e0859
mov eax, dword [ebp - 0x26c]
mov edx, 0x4e0a1c
call fcn.0040b978
je 0x4e0859
lea eax, [ebp - 0x288]
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ebp - 8]
call fcn.0040b840
mov eax, dword [ebp - 0x288]
call fcn.004232a0
test al, al
jne 0x4e0859
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [0x4efd08]
mov edx, 0x4e0a30
call fcn.00408668
call fcn.0040d2e4
mov edx, 0x4e0a74
call fcn.00408668
push eax
lea eax, [ebp - 0x28c]
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ebp - 8]
call fcn.0040b840
mov edx, dword [ebp - 0x28c]
pop eax
call fcn.00408668
call main
call fcn.00406f90
jmp 0x4e0859
lea eax, [ebp - 0x290]
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ebp - 8]
call fcn.0040b840
mov eax, dword [ebp - 0x290]
call fcn.0040b5f0
push eax
call sub.kernel32.dll_DeleteFileW
test eax, eax
jne 0x4e0859
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [0x4efd08]
mov edx, 0x4e0958
call fcn.00408668
call fcn.0040d2e4
mov edx, 0x4e099c
call fcn.00408668
push eax
lea eax, [ebp - 0x294]
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ebp - 8]
call fcn.0040b840
mov edx, dword [ebp - 0x294]
pop eax
call fcn.00408668
call main
call fcn.00406f90
lea eax, [ebp - 0x280]
call fcn.004230a4
test eax, eax
je 0x4e071d
mov eax, dword [ebp - 8]
call fcn.0040b5f0
push eax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
jne 0x4e08bd
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [0x4efd08]
mov edx, 0x4e0aa4
call fcn.00408668
call fcn.0040d2e4
mov edx, 0x4e0af4
call fcn.00408668
mov edx, dword [ebp - 8]
call fcn.00408668
call main
call fcn.00406f90
jmp 0x4e08de
mov eax, dword [0x4efd08]
mov edx, 0x4e0b20
call fcn.00408668
mov edx, dword [ebp - 8]
call fcn.00408668
call main
call fcn.00406f90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0923
lea eax, [ebp - 0x294]
mov edx, 5
call fcn.0040ab94
lea eax, [ebp - 0x280]
mov edx, dword [0x41a8d4]
call fcn.0040bf44
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040ab94
pop eax
jmp eax