Function at 0x40d2b6
Capabilities:
Get disk information
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2ac
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_CheckDlgButton]
mov ebx, ecx
push edi
mov edi, dword [esp + 0x2c0]
mov byte [esp + 0x13], dl
movzx eax, byte [edi + 0x17]
and eax, 1
push eax
push 5
push ebx
call esi
mov eax, dword [edi + 0x14]
shr eax, 0x1f
push eax
push 8
push ebx
call esi
xor eax, eax
xor esi, esi
push 0x1fe
mov word [esp + 0xbc], ax
lea eax, [esp + 0xbe]
push esi
push eax
call fcn.004b6030
add esp, 0xc
push 0x32
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x5284e796
mov edx, 0x88dbee68
mov dword [esp + 0x1c], esi
mov ecx, 0xedd342b7
mov ebx, eax
call fcn.004014a6
pop ecx
mov edx, eax
mov ecx, ebx
call fcn.0040bfcb
lea eax, [esp + 0xa8]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [esp + 0x13], 0
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
je 0x40d4f4
push 0x10024
push esi
push 0x1036
push ebx
call ebp
push 0xa
pop ecx
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov ecx, dword [0x521818]
lea eax, [esp + 0xb8]
mov edi, 0x100
mov dword [esp + 0x30], 6
push edi
push eax
push 0x1d
mov dword [esp + 0x44], 0x32
call fcn.0041c148
test eax, eax
jne 0x40d3d3
movzx edx, word [0x51742a]
lea eax, [esp + 0xb8]
push edi
push eax
xor edx, 0xc7c7
mov ecx, 0x51742c
call fcn.00415bfb
pop ecx
pop ecx
lea eax, [esp + 0xb8]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
push eax
push esi
push 0x1061
push ebx
call ebp
mov ecx, dword [0x521818]
lea eax, [esp + 0xb8]
push edi
push eax
push 0x1e
mov dword [esp + 0x44], 0x64
call fcn.0041c148
test eax, eax
jne 0x40d430
movzx edx, word [0x517438]
lea eax, [esp + 0xb8]
push edi
push eax
xor edx, 0xc7c7
mov ecx, 0x51743a
call fcn.00415bfb
pop ecx
pop ecx
lea eax, [esp + 0x30]
push eax
push 1
push 0x1061
push ebx
call ebp
mov eax, dword [esp + 0xb0]
sub eax, dword [esp + 0xa8]
mov ecx, dword [0x521818]
sub eax, 0xfa
mov dword [esp + 0x38], eax
lea eax, [esp + 0xb8]
push edi
push eax
push 0x1f
call fcn.0041c148
test eax, eax
jne 0x40d492
movzx edx, word [0x517448]
lea eax, [esp + 0xb8]
push edi
push eax
xor edx, 0xc7c7
mov ecx, 0x51744a
call fcn.00415bfb
pop ecx
pop ecx
lea eax, [esp + 0x30]
push eax
push 2
push 0x1061
push ebx
call ebp
mov ecx, dword [0x521818]
lea eax, [esp + 0xb8]
push edi
push eax
push 0x20
mov dword [esp + 0x44], 0x64
call fcn.0041c148
test eax, eax
jne 0x40d4e5
movzx edx, word [0x51745a]
lea eax, [esp + 0xb8]
push edi
push eax
xor edx, 0xc7c7
mov ecx, 0x51745c
call fcn.00415bfb
pop ecx
pop ecx
lea eax, [esp + 0x30]
push eax
push 3
push 0x1061
push ebx
call ebp
push esi
push esi
push 0x1009
push ebx
call ebp
push 0x38
lea eax, [esp + 0x74]
push esi
push eax
call fcn.004b6030
add esp, 0xc
mov dword [esp + 0x70], esi
lea eax, [esp + 0xb8]
mov dword [esp + 0x6c], 1
mov dword [esp + 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
xor ecx, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ecx
xor eax, eax
inc eax
shl eax, cl
mov dword [esp + 0x2c], eax
test esi, eax
je 0x40d6af
lea edx, [ecx + 0x41]
movzx eax, dl
mov eax, dword [eax*4 + 0x5217fc]
mov dword [esp + 0x28], eax
test eax, eax
je 0x40d6af
lea ecx, [eax + 0x251]
add eax, 0x248
push ecx
push eax
push edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], eax
call fcn.004091d1
mov esi, dword [esp + 0x14]
mov edi, eax
and dword [esp + 0x74], 0
add esi, 0x41
push 0x3a
pop eax
mov word [esp + 0xba], ax
xor eax, eax
mov word [esp + 0xbc], ax
lea eax, [esp + 0x6c]
push eax
push 0
movzx edx, si
shl edx, 0x10
movzx ecx, di
push 0x104d
or edx, ecx
mov dword [esp + 0x78], 5
push ebx
mov dword [esp + 0x9c], edx
mov word [esp + 0xc8], si
call ebp
mov esi, eax
mov dword [esp + 0x40], 0xf000
mov eax, 0x1000
test edi, edi
mov ecx, 0x2000
cmovne ecx, eax
lea eax, [esp + 0x30]
push eax
push esi
push 0x102b
push ebx
mov dword [esp + 0x4c], ecx
call ebp
mov dword [esp + 0x6c], 1
test edi, edi
je 0x40d616
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
inc dword [esp + 0x74]
lea eax, [esp + 0xb8]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x100
push eax
push 0xffffffffffffffff
push dword [esp + 0x30]
push 0
push 0
call edi
lea eax, [esp + 0x6c]
push eax
push esi
push 0x104c
push ebx
call ebp
inc dword [esp + 0x74]
lea eax, [esp + 0xb8]
push 0x100
push eax
push 0xffffffffffffffff
push dword [esp + 0x28]
push 0
push 0
call edi
lea eax, [esp + 0x6c]
push eax
push esi
push 0x104c
push ebx
call ebp
inc dword [esp + 0x74]
lea eax, [esp + 0xb8]
push 0x100
push eax
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
add eax, 0x262
push eax
push 0
push 0
call edi
lea eax, [esp + 0x6c]
push eax
push esi
push 0x104c
push ebx
call ebp
inc dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, 0x1a
jl 0x40d53a
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x200000
je 0x40d719
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
lea edi, [esp + 0x34]
push 0xa
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
push 5
mov dword [esp + 0x34], 2
call esi
mov edi, dword [esp + 0xb0]
sub edi, dword [esp + 0xa8]
push 2
sub edi, eax
call esi
sub edi, eax
lea eax, [esp + 0x30]
push eax
push 2
push 0x1060
sub edi, 0xfa
push ebx
mov dword [esp + 0x48], edi
call ebp
push 2
pop eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
push eax
push 0
push 0x102b
push ebx
call ebp
mov ecx, dword [esp + 0x2b8]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x2ac
ret