Function at 0x4012e0
Capabilities:
Get disk information
Get disk size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x154
push ebx
push esi
mov esi, dword [esp + 0x164]
push edi
push esi
push eax
call fcn.00401040
add esp, 8
test eax, eax
je 0x40131c
mov ecx, dword [esi]
push ecx
call fcn.00401030
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x154
ret
mov eax, dword [0x407a94]
test eax, eax
jne 0x40133f
mov edx, dword [esi]
push edx
call fcn.00401030
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebx
add esp, 0x154
ret
push eax
push 0x407d60
call fcn.0040167b
add esp, 8
mov word [0x407d64], 0x5c
mov word [0x407d66], 0
push 0x407d60
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x40157a
lea eax, [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0x18
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x74]
push 0x80
push ecx
push 0x407d60
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4013ba
call ebx
push eax
push 0x4072c4
call fcn.00401000
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
push 0x407d60
call edi
test eax, eax
jne 0x4013ea
call ebx
push eax
push 0x40728c
call fcn.00401000
add esp, 8
call fcn.00401280
test al, al
jne 0x401412
mov eax, dword [0x407a98]
test eax, eax
je 0x401403
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, 4
pop ebx
add esp, 0x154
ret
mov edx, dword [0x407a88]
mov eax, dword [0x407a84]
mov ecx, dword [0x407030]
push 0x401230
push edx
mov edx, dword [0x407034]
push eax
push ecx
push edx
push 0
push 0x407d60
call dword [fcn.00407f68]
mov eax, dword [0x407a80]
test eax, eax
je 0x401467
mov eax, dword [0x407a98]
test eax, eax
je 0x401458
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, 5
pop ebx
add esp, 0x154
ret
push 0
push 0x407d60
push 5
push 0x2000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, dword [0x407a8c]
test eax, eax
je 0x401491
push 1
push 0x407d60
call dword [fcn.00407d5c]
mov eax, dword [0x407a98]
test eax, eax
je 0x4014a1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x30]
push 0x18
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x74]
push 0x80
push ecx
push 0x407d60
call esi
test eax, eax
jne 0x4014eb
call ebx
push eax
push 0x40725c
call fcn.00401000
add esp, 8
mov eax, 6
pop edi
pop esi
pop ebx
add esp, 0x154
ret
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
push 0x407d60
call edi
test eax, eax
jne 0x401524
call ebx
push eax
push 0x407220
call fcn.00401000
add esp, 8
mov eax, 7
pop edi
pop esi
pop ebx
add esp, 0x154
ret
lea edx, [esp + 0x30]
push 0x18
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x74]
push 0x80
push eax
push 0x407d60
call esi
test eax, eax
jne 0x40156e
call ebx
push eax
push 0x4072c4
call fcn.00401000
add esp, 8
mov eax, 7
pop edi
pop esi
pop ebx
add esp, 0x154
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x154
ret
pop edi
pop esi
mov eax, 3
pop ebx
add esp, 0x154
ret