Function at 0x40d8f0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x42c680
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
push str.Emptying_recycle_bins
lea ecx, [esp + 0x1c]
call fcn.0042432b
or ebp, 0xffffffff
lea eax, [esp + 0x18]
push ebp
push eax
mov ecx, esi
mov dword [esp + 0x40], 0
call fcn.00402b50
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], ebp
call fcn.004242bd
mov eax, dword [0x43c8fc]
test eax, eax
je 0x40dac4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHQueryRecycleBinA
push eax
call edi
mov ecx, dword [0x43c8fc]
mov ebx, eax
push str.SHEmptyRecycleBinA
push ecx
mov dword [esp + 0x24], ebx
call edi
mov ecx, dword [0x43c8fc]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x40dac4
test ebx, ebx
je 0x40dac4
test eax, eax
je 0x40dac4
push 0x14
call fcn.00423ffe
mov edi, eax
add esp, 4
mov dword [edi], 0x14
mov edx, dword [0x43b340]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x14], 0x43
mov bl, 2
mov al, byte [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x14], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40da89
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.004243fa
mov eax, dword [esp + 0x18]
push edi
push eax
call dword [esp + 0x24]
test eax, eax
jne 0x40da89
mov eax, dword [edi + 0x10]
test eax, eax
jl 0x40da89
jg 0x40da16
mov eax, dword [edi + 0xc]
test eax, eax
jbe 0x40da89
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x1c]
push 1
push ecx
push edx
call dword [esp + 0x2c]
test eax, eax
jne 0x40da89
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x70]
add ecx, eax
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x70], ecx
mov ecx, dword [edi + 0xc]
add eax, ecx
push str.Emptied_Recycle_Bin_on_drive
lea ecx, [esp + 0x2c]
mov dword [esi + 0x6c], eax
call fcn.0042432b
lea edx, [esp + 0x10]
mov byte [esp + 0x38], bl
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00424506
push eax
mov ecx, esi
mov byte [esp + 0x3c], 3
call fcn.00402c20
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], bl
call fcn.004242bd
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 1
call fcn.004242bd
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x5a
mov dword [esp + 0x14], eax
jle 0x40d9ca
push edi
call fcn.00424027
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], ebp
call fcn.004242bd
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [esp + 0x15], 0x3a
mov byte [esp + 0x16], 0x5c
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], 0x43
mov bl, 8
mov cl, byte [esp + 0x18]
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x18], cl
call edi
cmp eax, 3
jne 0x40dbdf
push 1
push 1
lea ecx, [esp + 0x18]
call fcn.0041ef90
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
mov dword [esp + 0x3c], 4
call fcn.0042432b
push str.Recycled
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x44], 5
call fcn.00424506
lea edx, [esp + 0x10]
mov ecx, esi
push edx
push eax
mov byte [esp + 0x40], 6
call fcn.004023f0
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 5
call fcn.004242bd
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 4
call fcn.004242bd
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], ebp
call fcn.004242bd
push 1
push 1
lea ecx, [esp + 0x24]
call fcn.0041ef90
lea eax, [esp + 0x14]
lea ecx, [esp + 0x2c]
push eax
mov dword [esp + 0x3c], 7
call fcn.0042432b
push str.Recycler
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x44], bl
call fcn.00424506
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
push eax
mov byte [esp + 0x40], 9
call fcn.004023f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], bl
call fcn.004242bd
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 7
call fcn.004242bd
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], ebp
call fcn.004242bd
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0x5a
mov dword [esp + 0x18], eax
jle 0x40dae3
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret