Function at 0x478bc2
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aaf70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4c8104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x4cb078]
test esi, esi
je 0x478bd5
mov ecx, dword [0x4c8104]
xor esi, dword [0x4c8104]
and ecx, 0x1f
ror esi, cl
jmp 0x478c1b
push 0x4b1d00
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x478bf6
push str.SetFileInformationByHandle
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x478bfb
mov esi, 0x478590
mov eax, dword [0x4c8104]
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
mov eax, esi
ror eax, cl
mov ecx, 0x4cb078
xor eax, dword [0x4c8104]
xchg dword [ecx], eax
cmp esi, 0x478590
jne 0x478c95
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x478c4e
mov byte [ebp - 0x20], 1
xor edx, edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x10b
jne 0x478c6a
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x478c31
call esi
mov byte [ebp - 0x18], 0
call esi
mov edx, 1
lea ecx, [eax - 2]
cmp edx, ecx
sbb edx, edx
and edx, eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0x2200000
push 3
push 0
push 7
push 0x10000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
jne 0x478cef
call ebx
mov edx, eax
test edx, edx
je 0x478cef
mov byte [ebp - 0x20], 0
cmp edx, 2
jb 0x478cd8
cmp edx, 3
ja 0x478cd8
xor edx, edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 3
push eax
push 0x15
push edi
call esi
test eax, eax
je 0x478d24
xor esi, esi
mov byte [ebp - 0x18], 1
cmp edi, 0xffffffff
je 0x478d1f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x478da0
mov eax, dword [ebp - 0x18]
jmp 0x478d8a
call ebx
mov dword [ebp + 8], eax
cmp eax, 0x57
je 0x478d5c
mov byte [ebp - 0x18], 0
cmp edi, 0xffffffff
je 0x478d42
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x478da5
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 1
push eax
push 4
push edi
call esi
test eax, eax
je 0x478d77
mov byte [ebp - 0x28], 1
xor esi, esi
jmp 0x478d7f
mov byte [ebp - 0x28], 0
call ebx
mov esi, eax
lea ecx, [ebp - 0x14]
call fcn.00478570
mov eax, dword [ebp - 0x28]
mov edx, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call sub.msvcrt.dll_void___cdecl_terminate_void_
call sub.msvcrt.dll_void___cdecl_terminate_void_
int3