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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x460b46
mov eax, dword fs:[0]
push eax
sub esp, 0x3e8
mov eax, dword [0x480208]
xor eax, esp
mov dword [esp + 0x3b0], eax
push ebx
push esi
push edi
mov eax, dword [0x480208]
xor eax, esp
push eax
lea eax, [esp + 0x3f8]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x2a4]
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x40]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 0x55555556
imul ecx
mov edi, edx
push 0
push 0
shr edi, 0x1f
add edi, edx
mov edx, dword [esi + 0x2a4]
push 0x1037
push edx
call ebx
or eax, 0x20
push eax
mov eax, dword [esi + 0x2a4]
push 0
push 0x1036
push eax
call ebx
call fcn.0042b725
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f3f0
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
push 0xffffffffffffffff
add edi, edi
push edi
push 0
push str.Volume
lea ecx, [esi + 0x284]
push 0
mov dword [esp + 0x414], 0
call fcn.0042afba
mov ecx, dword [esp + 0x48]
sub ecx, edi
sub ecx, dword [esp + 0x40]
push 0xffffffffffffffff
push ecx
xor edi, edi
push edi
push str.Capacity
push 1
lea ecx, [esi + 0x284]
call fcn.0042afba
mov edx, dword [esi + 0x2a4]
push edi
push edi
push 0x1009
push edx
call ebx
mov eax, dword [0x59e700]
imul eax, eax, 0x3d0
cmp dword [eax + 0x49afb0], edi
je 0x40f65c
mov dword [eax + 0x49b07c], edi
cmp dword [eax + 0x49afb0], edi
jle 0x40f65c
nop
movsx ecx, byte [eax + edi + 0x49b0c6]
push ecx
push str._C:_
lea edx, [esp + 0xac]
push 0x104
push edx
call fcn.00441afb
add esp, 0x10
push 0x104
lea eax, [esp + 0x2b8]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x6c]
push eax
push 0x104
lea ecx, [esp + 0x1c4]
push ecx
lea edx, [esp + 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40f642
call fcn.0042b725
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40f3e6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x1b0]
push edx
lea eax, [esp + 0x34]
push 0x4677c0
push eax
mov byte [esp + 0x410], 1
mov dword [esp + 0x70], 1
call fcn.004033c0
mov eax, dword [esi + 0x2a4]
mov ecx, dword [esp + 0x3c]
add esp, 0x10
lea edx, [esp + 0x60]
push edx
push 0
push 0x1007
push eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], 0
mov dword [esp + 0x84], ecx
call ebx
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x40f61a
mov ecx, dword [0x59e700]
mov eax, dword [esp + 0x34]
imul ecx, ecx, 0x3d0
mov edx, dword [esp + 0x38]
shrd eax, edx, 9
add dword [ecx + 0x49b07c], eax
lea ecx, [ecx + 0x49b07c]
shr edx, 9
test eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x60], 1
fild dword [esp + 0x50]
jge 0x40f5d0
fadd qword [0x4677b8]
fmul qword [0x4677b0]
sub esp, 8
lea eax, [esp + 0x34]
fstp qword [esp]
push str._0.2f_GB
push eax
call fcn.004033c0
mov eax, dword [esi + 0x2a4]
mov ecx, dword [esp + 0x3c]
add esp, 0x10
lea edx, [esp + 0x60]
push edx
push 0
push 0x1006
push eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], 1
mov dword [esp + 0x84], ecx
call ebx
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x400], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f642
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x59e700]
imul eax, eax, 0x3d0
add edi, 1
cmp edi, dword [eax + 0x49afb0]
jl 0x40f480
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x400], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f683
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b0]
xor ecx, esp
call fcn.00441a71
mov esp, ebp
pop ebp
ret