Function at 0x409510
Capabilities:
Get disk size

Disassembly:
sub esp, 0x264
mov eax, dword [0x4b77c0]
xor eax, esp
mov dword [esp + 0x260], eax
mov eax, dword [0x4b9448]
push esi
mov esi, dword [esp + 0x26c]
push edi
mov edi, dword [esp + 0x274]
test eax, eax
je 0x409595
mov ecx, dword [0x4b944c]
test ecx, ecx
jne 0x409595
mov edx, dword [0x4b9478]
mov eax, dword [0x4b947c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
cmp dword [esp + 0x278], ecx
je 0x409579
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x168]
push edx
push edi
call fcn.00406db0
add esp, 0xc
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0046be7b
add esp, 0x264
ret
cmp dword [0x4b94a4], 0
jne 0x40966e
push 0x104
lea eax, [esp + 0x64]
push eax
push 0x4b8c40
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
test eax, eax
jne 0x4095dd
push esi
call fcn.00434ad0
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0046be7b
add esp, 0x264
ret
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x409621
cmp dword [esp + 0x278], 0
je 0x409608
push edi
call fcn.00406fd0
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0046be7b
add esp, 0x264
ret
cmp dword [esp + 0x278], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
je 0x409579
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x64]
push eax
push edi
call fcn.00406db0
add esp, 0xc
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0046be7b
add esp, 0x264
ret
lea ecx, [esp + 0x40]
push ecx
push 0x4b8fd8
call fcn.00433380
lea edx, [esp + 0x30]
push edx
push 0x4b8fd8
mov esi, eax
call fcn.00433420
add esp, 0x10
test esi, esi
jne 0x40969d
test eax, eax
je 0x4095f5
call fcn.00407eb0
lea ecx, [eax - 0x200]
cmp ecx, 0xe00
ja 0x40980f
and eax, 0x800001ff
jns 0x4096c2
dec eax
or eax, 0xfffffe00
inc eax
jne 0x40980f
push ebx
test esi, esi
je 0x40976f
mov ebx, dword [esp + 0x27c]
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [0x4b9468], esi
mov dword [0x4b946c], edx
test ebx, ebx
je 0x40970e
lea eax, [esp + 0x4c]
push eax
push 0x4b8fd8
push edi
call fcn.00406db0
mov esi, dword [0x4b9468]
add esp, 0xc
mov dword [0x4b215c], eax
mov eax, dword [0x4b215c]
mov ecx, dword [esp + 0x50]
cdq
push edx
mov edx, dword [esp + 0x50]
push eax
push ecx
push edx
call fcn.0046bbf0
or esi, dword [0x4b946c]
mov dword [0x4b9460], eax
mov dword [0x4b9464], edx
jne 0x4097f2
test ebx, ebx
je 0x409755
push str.EXT_PARTITION
call fcn.0044c960
add esp, 4
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0046be7b
add esp, 0x264
ret
mov eax, dword [esp + 0x38]
mul dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push 0
push ecx
push edx
push eax
call fcn.0046bca0
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push ecx
push edx
push eax
call fcn.0046bca0
cmp dword [esp + 0x27c], 0
mov esi, eax
mov ecx, edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [0x4b9468], esi
mov dword [0x4b946c], ecx
je 0x4097d8
lea edx, [esp + 0xc]
push edx
push 0x4b8fd8
push edi
call fcn.00406db0
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
add esp, 0xc
mov dword [0x4b215c], eax
mov eax, dword [0x4b215c]
cdq
push edx
push eax
push ecx
push esi
call fcn.0046bbf0
mov dword [0x4b9460], eax
mov dword [0x4b9464], edx
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0046be7b
add esp, 0x264
ret
push str.SECTOR_SIZE_UNSUPPORTED
call fcn.00433d70
mov ecx, dword [esp + 0x26c]
add esp, 4
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0046be7b
add esp, 0x264
ret