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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x425504]
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 0x406dce
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.0040608d
xor edi, edi
lea ecx, [ebp - 4]
push edi
push 0x4259cc
call fcn.0040743b
cmp eax, edi
jle 0x407057
add eax, 2
lea ecx, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.00407395
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 0x406fac
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 0x14
pop ecx
call fcn.0041f460
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 0x406eb4
and dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], edx
fild qword [ebp - 0x1c]
push ecx
push ecx
lea eax, [ebp - 0x23c]
fmul dword [0x4207cc]
fstp qword [esp]
push str._.2f_GB
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x406ecf
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 0x425a4c
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 0x406f13
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 0x406f76
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.0040608d
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 0x407046
push 0x40
push dword [0x42b934]
push 0x425a1c
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 0x407042
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.00403e55
lea ecx, [ebp - 4]
call fcn.00403e55
pop edi
pop esi
pop ebx
leave
ret