Function at 0x406cec
Capabilities:
Get disk size
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x424504]
and word [ebp - 0x448], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], eax
push 0x3f7
mov ecx, 0x82
push dword [esi + 4]
xor eax, eax
lea edi, [ebp - 0x446]
rep stosd dword es:[edi], eax
call ebx
lea ecx, [ebp - 0x448]
push 0x104
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x448]
test eax, eax
je 0x406d53
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x448]
push ecx
push eax
lea ecx, [ebp - 4]
call fcn.00406047
xor edi, edi
lea ecx, [ebp - 4]
push edi
push 0x4249ac
call fcn.00407351
cmp eax, edi
jle 0x406fdc
add eax, 2
lea ecx, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.004072ab
mov dword [ebp - 0x2c], edi
xor eax, eax
and dword [ebp - 0x34], eax
lea edi, [ebp - 0x28]
and dword [ebp - 0x14], eax
stosd dword es:[edi], eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x406f31
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 0x14
pop ecx
call fcn.0041e640
and word [ebp - 0x85c], 0
mov edx, eax
mov ecx, 0x82
xor eax, eax
and word [ebp - 0x23c], ax
lea edi, [ebp - 0x85a]
rep stosd dword es:[edi], eax
mov ecx, 0x81
lea edi, [ebp - 0x23a]
rep stosd dword es:[edi], eax
cmp edx, 0x400
mov dword [ebp - 8], edx
stosw word es:[edi], ax
jb 0x406e39
and dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], edx
fild qword [ebp - 0x1c]
push ecx
push ecx
lea eax, [ebp - 0x23c]
fmul dword [0x41f7ac]
fstp qword [esp]
push str._.2f_GB
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x406e54
push edx
push str._d_MB
lea eax, [ebp - 0x23c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x23c]
mov edi, str.8.05
push eax
push edi
push 0x424a2c
lea eax, [ebp - 0x85c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push edi
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 0x18
cmp eax, dword [ebp - 8]
jbe 0x406e98
mov dword [esi + 0x19c], 1
mov dword [esi + 0x7c], 0x3333cc
lea eax, [ebp - 0x85c]
push eax
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SetWindowTextW]
and word [ebp - 0x650], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x64e]
rep stosd dword es:[edi], eax
push 0x3f7
push dword [esi + 4]
stosw word es:[edi], ax
call ebx
lea ecx, [ebp - 0x650]
push 0x103
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x650]
lea edi, [esi + 0x194]
test eax, eax
je 0x406efb
lea eax, [ebp - 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x650]
push ecx
push eax
mov ecx, edi
call fcn.00406047
lea eax, [ebp - 0x24]
push 1
mov dword [ebp - 0x24], 0x55
mov dword [ebp - 0x20], 0x82
mov dword [ebp - 0x1c], 0x177
mov dword [ebp - 0x18], 0x9c
push eax
jmp 0x406fcb
push 0x40
push dword [0x42a774]
push 0x4249fc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
and word [ebp - 0x23c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x23a]
rep stosd dword es:[edi], eax
push 0x3f7
push dword [esi + 4]
stosw word es:[edi], ax
call ebx
lea ecx, [ebp - 0x23c]
push 0x103
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x194]
lea ecx, [ebp - 0x23c]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x406fc7
mov eax, dword [esi + 0x194]
and dword [esi + 0x198], 0
push 0x3f7
lea edi, [esi + 0x198]
push dword [esi + 4]
mov dword [ebp - 8], eax
call ebx
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [edi], 1
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [ebp - 0xc]
call fcn.00403e0f
lea ecx, [ebp - 4]
call fcn.00403e0f
pop edi
pop esi
pop ebx
leave
ret