Function at 0x4064d6
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2c58
mov eax, dword fs:[0]
push eax
mov eax, 0x1550
call fcn.004c3960
mov eax, dword [0x540698]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call fcn.00406d61
xor ecx, ecx
test al, al
jne 0x406526
push ecx
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x4067b8
mov edi, 0x4f62ac
push edi
lea ecx, [ebp + 8]
call fcn.00403865
test eax, eax
je 0x4067b8
push 0x4f62a4
lea ecx, [ebp + 8]
call fcn.00403865
test eax, eax
je 0x4067b8
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x4067b8
push edi
lea ecx, [ebp + 0xc]
call fcn.00403865
test eax, eax
je 0x4067b8
push 0x4f62a4
lea ecx, [ebp + 0xc]
call fcn.00403865
test eax, eax
je 0x4067b8
call fcn.00406d9d
test al, al
jne 0x4065a0
inc dword [0x541bb8]
push ecx
mov ecx, esp
mov dword [ebp - 0x1538], esp
mov edi, 0x4f6500
push edi
call fcn.00401824
mov edx, dword [esi]
push ecx
push esp
mov ecx, esi
mov byte [ebp - 4], 2
call dword [edx + 0x14]
lea eax, [ebp - 0x1544]
push eax
mov byte [ebp - 4], bl
call fcn.0040a128
add esp, 0xc
mov byte [ebp - 4], 3
call fcn.00406d61
test al, al
jne 0x4065e6
dec dword [0x541ad4]
push ecx
mov ecx, esp
mov dword [ebp - 0x1534], esp
push edi
call fcn.00401824
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov byte [ebp - 4], 4
call fcn.00403806
add eax, 0x10
mov dword [esi], eax
pop ecx
lea eax, [ebp - 0x1550]
push eax
mov byte [ebp - 4], 3
call fcn.0040a128
add esp, 0xc
mov byte [ebp - 4], 5
call fcn.00406cb1
test al, al
jne 0x40669a
xor eax, eax
push 0x151e
push eax
mov word [ebp - 0x1530], ax
lea eax, [ebp - 0x152e]
push eax
call fcn.004c3990
add esp, 0xc
xor edi, edi
xor esi, esi
xor edx, edx
test edi, edi
je 0x40667a
test edx, edx
je 0x40667a
lea eax, [esi + edx]
lea ecx, [esi + edx]
mov ax, word [ebp + eax*2 - 0x1598]
inc ax
add ax, word [ebp + ecx*2 - 0x1532]
mov word [ebp + ecx*2 - 0x1530], ax
inc edx
cmp edx, 0x34
jl 0x406652
add esi, 0x34
inc edi
cmp esi, 0xa90
jl 0x406650
movsx eax, word [ebp - 0x12]
mov dword [0x541ad4], eax
mov edi, 0x4f6500
push ecx
mov ecx, esp
mov dword [ebp - 0x1534], esp
push edi
call fcn.00401824
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov byte [ebp - 4], 6
call fcn.00403806
add eax, 0x10
mov dword [esi], eax
pop ecx
lea eax, [ebp - 0x155c]
push eax
mov byte [ebp - 4], 5
call fcn.0040a128
add esp, 0xc
mov eax, dword [ebp - 0x1540]
sub eax, dword [ebp - 0x1544]
push 0x10
and eax, 0xfffffffc
pop edi
mov byte [ebp - 4], 7
cmp eax, edi
jne 0x406793
mov eax, dword [ebp - 0x154c]
sub eax, dword [ebp - 0x1550]
and eax, 0xfffffffc
cmp eax, edi
jne 0x406793
mov eax, dword [ebp - 0x1558]
sub eax, dword [ebp - 0x155c]
and eax, 0xfffffffc
cmp eax, edi
jne 0x406793
xor esi, esi
call fcn.00406cf9
test al, al
jne 0x406735
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
mov eax, dword [ebp - 0x1550]
mov ecx, dword [ebp - 0x1544]
push dword [esi + eax]
lea ecx, [esi + ecx]
call fcn.00403865
test eax, eax
js 0x406793
mov eax, dword [ebp - 0x155c]
mov ecx, dword [ebp - 0x1544]
push dword [esi + eax]
lea ecx, [esi + ecx]
call fcn.00403865
test eax, eax
jg 0x406793
mov ecx, dword [0x541ad4]
mov eax, ecx
imul eax, ecx
imul eax, ecx
push 0x15
cdq
pop ecx
idiv ecx
cmp edx, 4
jne 0x40678a
inc dword [0x541b28]
add esi, 4
cmp esi, edi
jl 0x40671f
jmp 0x406795
xor bl, bl
lea ecx, [ebp - 0x155c]
call fcn.00406958
lea ecx, [ebp - 0x1550]
call fcn.00406958
lea ecx, [ebp - 0x1544]
call fcn.00406958
jmp 0x4067ba
xor bl, bl
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00404fef
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00404fef
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c29c4
leave
ret 8