Function at 0x588afc
Capabilities:
Access peb ldr_data
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff18
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xe8], edx
mov dword [ebp - 0xe4], edx
mov dword [ebp - 0xe0], edx
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xd8], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov ebx, eax
lea eax, [ebp - 0xd0]
mov edx, dword [0x419350]
call fcn.00407e64
xor eax, eax
push ebp
push 0x588e2c
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x588de4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 0x34]
call fcn.0040769c
mov edx, eax
lea eax, [ebp - 0xd8]
call fcn.004076ec
mov eax, dword [ebp - 0xd8]
call fcn.0040769c
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd1], al
cmp byte [ebp - 0xd1], 0
jne 0x588c10
call sub.kernel32.dll_GetLastError
mov esi, eax
mov eax, dword [ebx + 0x34]
call fcn.0040769c
mov edx, eax
lea eax, [ebp - 0xdc]
call fcn.004076ec
mov eax, dword [ebp - 0xdc]
call fcn.0040769c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x588c0a
test ah, 4
je 0x588c0a
test al, 0x10
je 0x588c0a
mov eax, dword [ebx + 0x34]
call fcn.0040769c
mov edx, eax
lea eax, [ebp - 0xe0]
call fcn.004076ec
mov eax, dword [ebp - 0xe0]
call fcn.0040769c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd1], al
jmp 0x588c10
push esi
call sub.kernel32.dll_SetLastError
lea ecx, [ebp - 0xe4]
mov eax, dword [ebx + 0x34]
xor edx, edx
call fcn.00569b2c
mov eax, dword [ebp - 0xe4]
call fcn.0041e944
call fcn.00428a70
push eax
mov ecx, dword [ebx + 0x34]
mov dl, 1
mov eax, dword [0x45358c]
call fcn.00454d44
mov esi, eax
call fcn.00420b24
fstp qword [ebx + 8]
wait
push dword [ebx + 0xc]
push dword [ebx + 8]
lea ecx, [ebp - 8]
mov edx, dword [0x5c7c34]
mov eax, 0x588e48
call fcn.004219a4
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 8]
call fcn.00406ee8
lea eax, [ebp - 4]
mov edx, 0x588e68
call fcn.00406f30
push 0x588e84
mov ecx, 0x588ecc
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
push 1
mov ecx, 0x588ee4
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
lea edx, [ebp - 0xd0]
mov eax, 0x588f00
call fcn.00422a68
push dword [ebx + 0xc]
push dword [ebx + 8]
lea ecx, [ebp - 0xd0]
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004218dc
mov eax, dword [ebp - 0xc]
push eax
mov ecx, 0x588f18
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x10]
push eax
mov ecx, 0x588f48
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x14]
push eax
mov ecx, 0x588f84
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x38]
push eax
mov ecx, 0x588f9c
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x18]
push eax
mov ecx, 0x588fbc
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
lea edx, [ebp - 0xe8]
mov eax, dword [ebx + 0x1c]
call fcn.00562948
mov eax, dword [ebp - 0xe8]
push eax
mov ecx, 0x588fdc
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x20]
push eax
mov ecx, 0x588ff8
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 0x28]
push eax
mov ecx, 0x589024
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebx + 0x2c]
push eax
mov ecx, 0x589044
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebx + 0x30]
push eax
mov ecx, 0x589064
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x34]
mov cl, 1
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x2c]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x40]
mov cl, 1
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x2c]
call fcn.00428a70
mov dword [esi + 0xc], eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x60]
mov eax, esi
call fcn.00405080
mov eax, dword [ebx + 4]
mov byte [eax + 0xd4], 0
mov byte [ebx + 0x3c], 1
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x588df0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x588e33
lea eax, [ebp - 0xe8]
mov edx, 5
call fcn.00406b68
lea eax, [ebp - 0xd0]
mov edx, dword [0x419350]
call fcn.00407f3c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406b68
ret