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

Disassembly:
push ebx
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40465f
mov eax, dword [esp + 0x34]
mov dword [0x4199cc], eax
mov edx, dword [esp + 0x30]
lea ecx, [esp]
call fcn.00405000
mov edx, 0x416028
lea ecx, [esp + 0x1c]
call fcn.00405008
mov edx, dword [esp]
push dword [0x4199cc]
push edx
call fcn.00413260
mov edx, 0x416bf2
push edx
call fcn.00413260
lea eax, [esp + 0x14]
push eax
call fcn.004131e0
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetDriveTypeW
mov dword [esp + 8], eax
push dword [0x4199cc]
push dword [0x4199cc]
push 0x100
call fcn.00410b90
lea eax, [esp + 0x18]
push eax
call fcn.004131e0
push dword [0x4199cc]
push dword [0x4199cc]
push 0x100
call fcn.00410b90
lea eax, [esp + 0x1c]
push eax
call fcn.004131e0
push 0xff
mov eax, dword [esp + 0x18]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0xff
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x2c]
push eax
call sub.KERNEL32.dll_GetVolumeInformationW
and eax, eax
je 0x40489c
push dword [esp + 8]
mov ebx, 2
cmp ebx, dword [esp]
jne 0x4047d6
mov edx, dword [esp + 4]
push dword [0x4199cc]
push edx
call fcn.00413260
mov edx, 0x416136
push edx
call fcn.00413260
mov edx, dword [esp + 0x24]
push edx
call fcn.00413260
mov edx, 0x4161ac
push edx
call fcn.00413260
push dword [0x4199cc]
mov edx, dword [esp + 0xc]
push dword [0x4199cc]
push edx
call fcn.00413260
mov edx, 0x416136
push edx
call fcn.00413260
mov edx, dword [0x417b40]
add dword [esp], edx
call fcn.0040412e
pop eax
mov edx, 0x4161b0
push edx
call fcn.00413260
mov edx, dword [esp + 0x24]
push edx
call fcn.00413260
mov edx, str.Rem
push edx
call fcn.00413260
lea eax, [esp + 8]
push eax
call fcn.004131e0
jmp 0x404899
mov ebx, 3
cmp ebx, dword [esp]
jne 0x404870
mov edx, dword [esp + 4]
push dword [0x4199cc]
push edx
call fcn.00413260
mov edx, 0x416136
push edx
call fcn.00413260
mov edx, dword [esp + 0x24]
push edx
call fcn.00413260
mov edx, 0x4161ac
push edx
call fcn.00413260
push dword [0x4199cc]
mov edx, dword [esp + 0xc]
push dword [0x4199cc]
push edx
call fcn.00413260
mov edx, 0x416136
push edx
call fcn.00413260
mov edx, dword [0x417b40]
add dword [esp], edx
call fcn.0040412e
pop eax
mov edx, 0x4161b0
push edx
call fcn.00413260
mov edx, dword [esp + 0x24]
push edx
call fcn.00413260
mov edx, str.Fixed
push edx
call fcn.00413260
lea eax, [esp + 8]
push eax
call fcn.004131e0
jmp 0x404899
mov eax, dword [esp + 0x38]
mov dword [0x4199cc], eax
mov edx, 0x4160c6
push dword [0x4199cc]
push edx
call fcn.00413260
pop eax
add eax, dword [0x417b40]
add esp, 4
jmp 0x404975
pop eax
jmp 0x4048b9
mov edx, 0x4160c6
push dword [0x4199cc]
push edx
call fcn.00413260
pop eax
add eax, dword [0x417b40]
jmp 0x404975
mov edx, dword [esp]
push dword [0x4199cc]
push edx
call fcn.00413260
mov edx, dword [esp + 0x20]
push edx
call fcn.00413260
mov edx, dword [esp + 0x1c]
push edx
call fcn.00413260
mov edx, dword [esp + 0x20]
push edx
call fcn.00413260
mov edx, dword [esp + 0x18]
push edx
call fcn.00413260
lea eax, [esp + 4]
push eax
call fcn.004131e0
push 0
lea eax, [esp + 0x24]
push eax
push 0
push dword [esp + 0x1c]
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
and eax, eax
je 0x40494d
mov edx, dword [esp]
push dword [0x4199cc]
push edx
call fcn.00413260
mov edx, dword [esp + 0x20]
push edx
call fcn.00413260
push dword [0x4199cc]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.004029af
pop eax
lea eax, [esp + 4]
push eax
call fcn.004131e0
mov edx, dword [esp]
push dword [0x4199cc]
push edx
call fcn.00413260
pop eax
add eax, dword [0x417b40]
jmp 0x404975
push dword [esp]
call fcn.004132c0
push dword [esp + 0x1c]
call fcn.004132c0
push dword [esp + 0x18]
call fcn.004132c0
push dword [esp + 0x10]
call fcn.004132c0
push dword [esp + 0x14]
call fcn.004132c0
add esp, 0x28
pop ebx
ret 4