Function at 0x40b129
Capabilities:
Get disk size

Disassembly:
push 0xfc
mov eax, 0x4e3345
call fcn.004c2a93
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xf4], ebx
lea eax, [ebp - 0xfc]
push eax
mov dword [ebp - 4], ebx
call fcn.0040ae9d
pop ecx
test al, al
je 0x40b4df
mov edi, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xfc]
sub edi, ecx
sar edi, 2
mov eax, ebx
mov dword [ebp - 0xd4], eax
test edi, edi
jle 0x40b4d2
mov eax, dword [ecx + eax*4]
sub eax, 0x10
push eax
call fcn.00403806
add eax, 0x10
pop ecx
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xe4], ebx
mov ecx, dword [0x541ad4]
push 2
pop eax
mov byte [ebp - 4], al
lea eax, [ecx + 1]
imul eax, ecx
push 9
cdq
pop ecx
idiv ecx
cmp edx, 8
jne 0x40b1e3
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
push str.Volatile_Environment
lea ecx, [ebp - 0xe0]
call fcn.00401824
push 0x5401f0
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 3
call fcn.00401718
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 4
call fcn.0045107a
lea ecx, [ebp - 0xe0]
push ecx
push eax
lea eax, [ebp - 0x100]
push eax
mov byte [ebp - 4], 5
call fcn.0045107a
add esp, 0x18
lea ecx, [ebp - 0xec]
push 0x20019
push dword [eax]
push SysReAllocStringLen
call fcn.004079e9
mov ecx, dword [ebp - 0x100]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
call fcn.00404fef
mov ecx, dword [ebp - 0x108]
lea ecx, [ecx - 0x10]
call fcn.00404fef
mov ecx, dword [ebp - 0xf0]
lea ecx, [ecx - 0x10]
call fcn.00404fef
mov ecx, dword [ebp - 0xe0]
push 2
pop eax
lea ecx, [ecx - 0x10]
mov byte [ebp - 4], al
call fcn.00404fef
inc bl
je 0x40b493
xor ecx, ecx
push 2
pop edx
mov eax, 0x400
mul edx
seto cl
mov dword [ebp - 0xc4], 0x400
neg ecx
or ecx, eax
push ecx
call fcn.004c0e30
mov dword [esp], 0x800
xor ebx, ebx
mov esi, eax
push ebx
push esi
call fcn.004c3990
add esp, 0xc
call fcn.00450ad2
test al, al
je 0x40b434
mov ecx, dword [ebp - 0xcc]
push str.LOCALAPPDATA
call fcn.00403865
test eax, eax
jne 0x40b434
lea eax, [ebp - 0xc4]
push eax
push esi
push str.HOMEDRIVE
lea ecx, [ebp - 0xec]
call fcn.00407a67
test eax, eax
jne 0x40b47f
push esi
lea ecx, [ebp - 0xd8]
call fcn.00401824
push 0x800
push ebx
push esi
mov byte [ebp - 4], 6
mov dword [ebp - 0xc4], 0x400
call fcn.004c3990
add esp, 0xc
lea eax, [ebp - 0xc4]
push eax
push esi
push str.HOMEPATH
lea ecx, [ebp - 0xec]
call fcn.00407a67
test eax, eax
jne 0x40b418
push esi
lea ecx, [ebp - 0xdc]
call fcn.00401824
mov byte [ebp - 4], 7
call fcn.0040ba71
test al, al
jne 0x40b38f
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00401e15
add esp, 0xc
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0xc0]
mov eax, dword [eax - 0xc]
dec eax
push eax
mov byte [ebp - 4], 8
call fcn.00403b51
push 0x5c
pop ecx
cmp ax, cx
je 0x40b3da
push ecx
lea ecx, [ebp - 0xc0]
call fcn.00409f96
push str.Local_SettingsApplication_Data
lea ecx, [ebp - 0xc0]
call fcn.00401f4c
mov ecx, dword [ebp - 0xc8]
lea eax, [ebp - 0xc0]
push eax
call fcn.00408509
mov ecx, dword [ebp - 0xc0]
lea ecx, [ecx - 0x10]
call fcn.00404fef
mov ecx, dword [ebp - 0xdc]
lea ecx, [ecx - 0x10]
call fcn.00404fef
call fcn.0040ba49
test al, al
jne 0x40b42c
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov ecx, dword [ebp - 0xd8]
jmp 0x40b477
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0xcc]
push esi
push dword [eax]
lea ecx, [ebp - 0xec]
call fcn.00407a67
test eax, eax
jne 0x40b47f
push esi
lea ecx, [ebp - 0x104]
call fcn.00401824
push 9
pop ecx
mov byte [ebp - 4], cl
mov ecx, dword [ebp - 0xc8]
push eax
call fcn.0040bb2f
mov ecx, dword [ebp - 0x104]
lea ecx, [ecx - 0x10]
call fcn.00404fef
push esi
call fcn.004c1c8e
pop ecx
lea ecx, [ebp - 0xec]
call fcn.00406e5e
jmp 0x40b495
xor ebx, ebx
lea ecx, [ebp - 0xec]
call fcn.00406e5e
mov ecx, dword [ebp - 0xd0]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.00404fef
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xfc]
inc eax
mov dword [ebp - 0xd4], eax
cmp eax, edi
jl 0x40b197
mov esi, dword [ebp - 0xc8]
mov eax, dword [esi + 4]
sub eax, dword [esi]
test eax, 0xfffffffc
setne bl
lea ecx, [ebp - 0xfc]
call fcn.00406958
mov al, bl
call fcn.004c2a42
ret