Function at 0x452c10
Capabilities:
Delete directory
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x481288]
xor eax, ebp
mov dword [ebp - 0x3c], eax
push esi
push 0x4882d8
push 0x4884e0
call fcn.004159fc
add esp, 8
test eax, eax
je 0x452c46
mov dword [0x489b64], 1
jmp 0x452c50
mov dword [0x489b64], 0
push 0x4884e0
call fcn.00414d31
add esp, 4
test eax, eax
jbe 0x452ef8
push 0x4882d8
push 0x4884e0
call fcn.004159fc
add esp, 8
test eax, eax
je 0x452ef8
mov word [ebp - 0x248], 0
push 0x206
push 0
lea eax, [ebp - 0x246]
push eax
call fcn.00415680
add esp, 0xc
mov word [ebp - 0x458], 0
push 0x206
push 0
lea ecx, [ebp - 0x456]
push ecx
call fcn.00415680
add esp, 0xc
push 0x4882d8
push 0x478c7c
push 0x208
push 0x104
lea edx, [ebp - 0x248]
push edx
call fcn.004157ac
add esp, 0x14
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea ecx, [ebp - 0x248]
push ecx
call fcn.00414d31
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jbe 0x452d61
mov edx, dword [ebp - 0x24]
movzx eax, word [ebp + edx*2 - 0x24a]
cmp eax, 0x5c
je 0x452d3c
lea ecx, [ebp - 0x248]
push ecx
push 0x478c84
push 0x208
push 0x104
lea edx, [ebp - 0x458]
push edx
call fcn.004157ac
add esp, 0x14
jmp 0x452d61
lea eax, [ebp - 0x248]
push eax
push 0x478c8c
push 0x208
push 0x104
lea ecx, [ebp - 0x458]
push ecx
call fcn.004157ac
add esp, 0x14
lea edx, [ebp - 0x458]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 4
jne 0x452d81
mov eax, 1
jmp 0x452efd
push 0x4882d8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x24c], 0x1388
push 0x4884e0
lea eax, [ebp - 0x24c]
push eax
call fcn.00452720
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x38], 0
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], 0
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], 0
xor eax, eax
mov dword [ebp - 4], eax
mov word [ebp - 0x660], 0
push 0x206
push 0
lea ecx, [ebp - 0x65e]
push ecx
call fcn.00415680
add esp, 0xc
push 3
push 0x4882d8
lea edx, [ebp - 0x660]
push edx
call fcn.00414cf4
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x34]
xor edx, edx
mov cl, 0x20
call fcn.00464f90
mov ecx, dword [ebp - 0x38]
xor esi, esi
add eax, ecx
adc edx, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
movzx edx, word [0x4882d8]
movzx eax, word [0x4880d0]
sub edx, eax
mov dword [ebp - 0x28], edx
je 0x452e5e
cmp dword [ebp - 0x28], 0xffffffe0
je 0x452e5e
cmp dword [ebp - 0x28], 0x20
jne 0x452e76
mov ecx, dword [0x4822ec]
xor edx, edx
mov eax, dword [ebp - 0x18]
sub eax, ecx
mov ecx, dword [ebp - 0x14]
sbb ecx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0xc]
jg 0x452ef8
jl 0x452e88
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jae 0x452ef8
mov word [ebp - 0x868], 0
push 0x206
push 0
lea ecx, [ebp - 0x866]
push ecx
call fcn.00415680
add esp, 0xc
fild qword [ebp - 0x10]
fdiv qword [0x47ab30]
fdiv qword [0x47ab30]
sub esp, 8
fstp qword [esp]
push 0x478c98
push 0x208
push 0x104
lea edx, [ebp - 0x868]
push edx
call fcn.004157ac
add esp, 0x18
push 0x10
push 0x478cec
lea eax, [ebp - 0x868]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00458ce0
add esp, 0x10
xor eax, eax
jmp 0x452efd
mov eax, 1
pop esi
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.004151d0
mov esp, ebp
pop ebp
ret