Function at 0x45fb80
Capabilities:
Check if file exists
Delete file
Get disk size
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4fad60]
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 edi, ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x78]
push edx
lea eax, [edi + 0x58]
push eax
mov dword [ebp - 0x68], edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x45fbdc
mov ebx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
shrd ebx, ecx, 0x14
shr ecx, 0x14
cmp ebx, 0xffffffff
jne 0x45fbe3
xor eax, eax
jmp 0x45fe36
xor edx, edx
push 9
mov eax, str.UDISKSIZE
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
call fcn.00403e70
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
push 9
mov eax, 0x4e2040
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
call fcn.00403e70
lea ecx, [ebp - 0x48]
push ecx
mov ecx, ebx
mov ebx, esi
mov byte [ebp - 4], 1
call fcn.00457190
mov edi, 8
cmp dword [ebp - 0x18], edi
jb 0x45fc4f
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00490a16
add esp, 4
xor esi, esi
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x34], edi
jb 0x45fc79
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00490a16
add esp, 4
mov ebx, dword [ebp - 0x68]
mov eax, dword [ebx + 0x2130]
lea ecx, [ebx + 0x2120]
push 0x4ddda0
xor edi, edi
call fcn.00408eb0
test eax, eax
je 0x45fbdc
mov dword [ebp - 0x38], esi
xor edx, edx
push 6
mov eax, str.DISKID
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], dx
call fcn.00403e70
mov dword [ebp - 4], 2
xor eax, eax
mov word [ebp - 0x2c], ax
push 9
mov eax, 0x4e2040
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
call fcn.00403e70
mov ecx, esi
push ecx
push ebx
lea edx, [ebx + 0x2120]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00455e20
mov esi, 8
movzx edi, al
cmp dword [ebp - 0x18], esi
jb 0x45fd10
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x34], esi
jb 0x45fd3c
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00490a16
add esp, 4
test edi, edi
je 0x45fbdc
mov eax, str.DISKPRODUCTID
lea ecx, [ebp - 0x2c]
call fcn.00403fb0
mov eax, 0x4e2040
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 4
call fcn.00403fb0
lea eax, [ebp - 0x48]
push eax
lea edx, [ebx + 0x213c]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00455e20
movzx edi, al
cmp dword [ebp - 0x34], esi
jb 0x45fd90
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x18], esi
jb 0x45fdbc
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00490a16
add esp, 4
test edi, edi
je 0x45fbdc
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea esi, [ebx + 0x1120]
push esi
call edi
cmp eax, 0xffffffff
je 0x45fdf5
shr eax, 4
not eax
and eax, 1
je 0x45fdf5
push esi
call edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
lea ecx, [ebp - 0x64]
call fcn.00403fb0
lea ecx, [ebp - 0x64]
push ecx
push ebx
mov dword [ebp - 4], 6
call fcn.00457cb0
lea ecx, [ebp - 0x64]
movzx ebx, al
call fcn.00404690
test ebx, ebx
je 0x45fbdc
push esi
call edi
or eax, 7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 1
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.00490a21
mov esp, ebp
pop ebp
ret