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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x43a50c]
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 0x40c610
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.00404ce9
xor edi, edi
lea ecx, [ebp - 4]
push edi
push 0x43bbcc
call fcn.00404a64
cmp eax, edi
jle 0x40c899
add eax, 2
lea ecx, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.0040ccb7
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 0x40c7ee
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 0x14
pop ecx
call fcn.0042f5f0
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 0x40c6f6
and dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], edx
fild qword [ebp - 0x1c]
push ecx
push ecx
lea eax, [ebp - 0x23c]
fmul dword [0x433904]
fstp qword [esp]
push str._.2f_GB
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x40c711
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 0x43bc4c
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 0x40c755
mov dword [esi + 0x240], 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 + 0x238]
test eax, eax
je 0x40c7b8
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.00404ce9
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 0x40c888
push 0x40
push dword [0x44462c]
push 0x43bc1c
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 + 0x238]
lea ecx, [ebp - 0x23c]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x40c884
mov eax, dword [esi + 0x238]
and dword [esi + 0x23c], 0
push 0x3f7
lea edi, [esi + 0x23c]
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.00404c0d
lea ecx, [ebp - 4]
call fcn.00404c0d
pop edi
pop esi
pop ebx
leave
ret