Function at 0x40e980
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x42dee0
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.00425828
or ebp, 0xffffffff
lea eax, [esp + 0x18]
push ebp
push eax
mov ecx, esi
mov dword [esp + 0x40], 0
call fcn.00402c40
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], ebp
call fcn.004257ba
mov eax, dword [0x43db0c]
test eax, eax
je 0x40eb50
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHQueryRecycleBinA
push eax
call edi
mov ecx, dword [0x43db0c]
mov ebx, eax
push str.SHEmptyRecycleBinA
push ecx
mov dword [esp + 0x24], ebx
call edi
mov ecx, dword [0x43db0c]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x40eb50
test ebx, ebx
je 0x40eb50
test eax, eax
je 0x40eb50
push 0x14
call fcn.004254fb
mov edi, eax
add esp, 4
mov dword [edi], 0x14
mov edx, dword [0x43c520]
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
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], al
call fcn.004258f7
mov edx, dword [esp + 0x18]
push edi
push edx
call dword [esp + 0x24]
test eax, eax
jne 0x40eb15
mov eax, dword [edi + 0x10]
test eax, eax
jl 0x40eb15
jg 0x40ea96
mov eax, dword [edi + 0xc]
test eax, eax
jbe 0x40eb15
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x1c]
push 1
push eax
push ecx
call dword [esp + 0x2c]
test eax, eax
jne 0x40eb15
mov edx, dword [edi + 4]
mov eax, dword [esi + 0xa4]
mov ecx, dword [esi + 0xa0]
add eax, edx
mov dword [esi + 0xa4], eax
mov eax, dword [edi + 0xc]
add ecx, eax
push str.Emptied_Recycle_Bin_on_drive
mov dword [esi + 0xa0], ecx
lea ecx, [esp + 0x2c]
call fcn.00425828
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push eax
push edx
mov byte [esp + 0x44], bl
call fcn.00425a03
push eax
mov ecx, esi
mov byte [esp + 0x3c], 3
call fcn.00402d10
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], bl
call fcn.004257ba
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 1
call fcn.004257ba
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x5a
mov dword [esp + 0x14], eax
jle 0x40ea5a
push edi
call fcn.00425524
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], ebp
call fcn.004257ba
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 al, byte [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x18], al
call edi
cmp eax, 3
jne 0x40ec6b
push 1
push 1
lea ecx, [esp + 0x18]
call fcn.00420410
lea edx, [esp + 0x14]
lea ecx, [esp + 0x24]
push edx
mov dword [esp + 0x3c], 4
call fcn.00425828
push str.Recycled
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x40], 5
push eax
call fcn.00425a03
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 6
push ecx
push eax
mov ecx, esi
call fcn.00402490
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 5
call fcn.004257ba
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 4
call fcn.004257ba
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], ebp
call fcn.004257ba
push 1
push 1
lea ecx, [esp + 0x24]
call fcn.00420410
lea edx, [esp + 0x14]
lea ecx, [esp + 0x2c]
push edx
mov dword [esp + 0x3c], 7
call fcn.00425828
push str.Recycler
push eax
lea eax, [esp + 0x28]
mov byte [esp + 0x40], bl
push eax
call fcn.00425a03
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 9
push ecx
push eax
mov ecx, esi
call fcn.00402490
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], bl
call fcn.004257ba
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 7
call fcn.004257ba
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], ebp
call fcn.004257ba
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0x5a
mov dword [esp + 0x18], eax
jle 0x40eb6f
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret