Function at 0x404880
Capabilities:
Get disk size

Disassembly:
sub esp, 0x130
mov eax, dword [0x422f90]
xor eax, esp
mov dword [esp + 0x12c], eax
test byte [0x424540], 1
push ebx
mov ebx, dword [esp + 0x138]
push esi
mov esi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esp + 0x10], ebx
jne 0x4048c3
or dword [0x424540], 1
push 0xa0a0ff
call esi
mov dword [0x42453c], eax
test byte [0x424540], 2
jne 0x4048df
or dword [0x424540], 2
push 0xd0d0d0
call esi
mov dword [0x424538], eax
cmp dword [esp + 0x140], 0xc8
jne 0x404925
push 2
mov ecx, 0x4399c0
call fcn.00403430
push 0xc8
push ebx
mov dword [0x42452c], 0
call dword [sym.imp.USER32.dll_KillTimer]
pop esi
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0040a9f0
add esp, 0x130
ret
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x20]
movzx edx, word [esp + 0x22]
movzx eax, word [esp + 0x26]
sub ecx, 0x7d0
push ecx
push edx
push eax
lea ecx, [esp + 0x40]
push str._02d._02d._02d
push ecx
call fcn.0040a975
add esp, 0x14
lea edx, [esp + 0x34]
push edx
push 0x3ef
mov ecx, 0x424618
call fcn.004035e0
movzx eax, word [esp + 0x2c]
movzx ecx, word [esp + 0x2a]
movzx edx, word [esp + 0x28]
push eax
push ecx
push edx
lea eax, [esp + 0x40]
push 0x41d708
push eax
call fcn.0040a975
add esp, 0x14
lea ecx, [esp + 0x34]
push ecx
push 0x3f0
mov ecx, 0x424618
call fcn.004035e0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [0x4244bc]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
add eax, 0x314
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ecx, dword [esp + 0x1c]
imul ecx, dword [esp + 0x14]
test ecx, ecx
mov dword [esp + 8], ecx
fild dword [esp + 8]
jge 0x4049e6
fadd qword [0x41d700]
mov edx, dword [esp + 0x18]
fild dword [esp + 0x18]
test edx, edx
jge 0x4049f8
fadd qword [0x41d700]
mov eax, dword [0x4244d4]
fmulp st(1)
test eax, eax
fst qword [0x4244c0]
je 0x404a15
fstp qword [eax + 0x11a08]
fld qword [0x4244c0]
lea eax, [esp + 0x34]
push eax
sub esp, 8
fstp qword [esp]
call fcn.00404800
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
push 0x3f7
mov ecx, 0x424618
call fcn.004035e0
mov eax, dword [0x4244b8]
fld qword [eax + 0x88]
lea edx, [esp + 0x34]
push edx
sub esp, 8
fstp qword [esp]
call fcn.00404800
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
push 0x3f6
mov ecx, 0x424618
call fcn.004035e0
push 0
push 0x66
push 0x400
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
mov cl, byte [eax + 0x4243b0]
mov byte [esp + eax + 0x34], cl
add eax, 1
test cl, cl
jne 0x404a80
mov edx, dword [0x4244bc]
cmp dword [edx + 0xa54], 0
mov eax, 0x41d6fc
jne 0x404aaa
mov eax, 0x41d652
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404ab0
push edi
lea edi, [esp + 0x38]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404ac3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x38]
push eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [0x4244bc]
cmp dword [ecx + 0xa54], 0
je 0x404b3c
push 0xff
lea edx, [esp + 0x3c]
push edx
push 1
push ebx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
lea edi, [esp + 0x38]
mov esi, 0x41d6f0
mov ecx, 0xc
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x404b30
push 0x41d6e4
push 1
mov ecx, 0x4399c0
call fcn.004035e0
push 2
mov ecx, 0x4399c0
call fcn.004034a0
push 0
push 0
push pe_nt_image_headers32
push 0x43f
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp eax, 1
jne 0x404b62
push 2
mov ecx, 0x4399c0
call fcn.004034a0
mov edx, dword [0x424430]
test edx, edx
push ebp
je 0x404d1d
lea eax, [edx + 0x724]
test eax, eax
je 0x404d1d
xor esi, esi
cmp dword [0x4244cc], esi
jle 0x404d1d
mov ebp, 0x884
mov ebx, 0x8a8
sub ebp, 0x422084
sub ebx, 0x422084
jmp 0x404bb6
mov edx, dword [0x424430]
mov ecx, dword [0x4244bc]
cmp byte [ecx + esi + 0x438], 0
jne 0x404c0e
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esi*4 + 0x422084]
push eax
push ecx
mov ecx, 0x424618
call fcn.00403840
push 0xf
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov edx, dword [esi*4 + 0x422084]
push eax
push edx
mov ecx, 0x424618
call fcn.004038b0
mov eax, dword [esi*4 + 0x422084]
push 0x41d6e0
push eax
jmp 0x404d00
test edx, edx
je 0x404c1a
lea eax, [edx + 0x724]
jmp 0x404c1c
xor eax, eax
fld dword [eax + esi*4]
lea edi, [ebp + esi*4 + 0x422084]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fabs
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld dword [edi + ecx - 0x46c]
fcompp
fnstsw ax
test ah, 5
jp 0x404c59
mov ecx, dword [0x42453c]
mov edx, dword [esi*4 + 0x422084]
push ecx
push edx
jmp 0x404c67
mov eax, dword [0x424538]
mov ecx, dword [esi*4 + 0x422084]
push eax
push ecx
mov ecx, 0x424618
call fcn.004038b0
fld dword [esp + 0x14]
sub esp, 0xc
fst qword [esp + 4]
fstp dword [esp]
call fcn.00404710
add esp, 4
push eax
lea edx, [esp + 0x48]
push edx
call fcn.0040a975
mov ecx, dword [0x424430]
xor eax, eax
add esp, 0x10
cmp dword [edi + ecx], eax
je 0x404ca7
mov eax, 0xc0
mov edx, dword [esi*4 + 0x422084]
push eax
push edx
mov ecx, 0x424618
call fcn.00403840
mov ecx, dword [esi*4 + 0x422084]
lea eax, [esp + 0x3c]
push eax
push ecx
mov ecx, 0x424618
call fcn.004035e0
mov eax, dword [0x424430]
lea edx, [ebx + esi*4 + 0x422084]
mov ecx, dword [edx + eax]
push ecx
lea edx, [esp + 0x40]
push 0x41d4ec
push edx
call fcn.0040a975
mov ecx, dword [esi*4 + 0x422140]
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
push ecx
mov ecx, 0x424618
call fcn.004035e0
add esi, 1
cmp esi, dword [0x4244cc]
jl 0x404bb0
mov ebx, dword [esp + 0x18]
push 0
push 0
push pe_nt_image_headers32
push 0x449
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp eax, 1
mov eax, dword [0x424430]
jne 0x404d47
or word [eax + 0x85e], 0x80
jmp 0x404d50
and word [eax + 0x85e], 0xff7f
mov ebp, dword [0x424430]
cmp dword [ebp + 0x31c], 3
jb 0x404efb
test byte [ebp + 0x85c], 0x40
jne 0x404dcd
mov eax, dword [0x424534]
add eax, 1
cmp eax, 4
mov dword [0x424534], eax
jg 0x404df7
cdq
sub eax, edx
sar eax, 1
mov edx, 2
sub edx, eax
push edx
lea eax, [esp + 0x40]
push 0x41d6d8
push eax
call fcn.0040a975
add esp, 0xc
push 0xff
push 0x3f8
mov ecx, 0x424618
call fcn.00403840
lea ecx, [esp + 0x3c]
push ecx
push 0x3f8
mov ecx, 0x424618
call fcn.004035e0
mov ebp, dword [0x424430]
jmp 0x404dd7
mov dword [0x424534], 0
mov dl, byte [ebp + 0x85c]
and dl, 0x3c
cmp dl, 0x3c
jne 0x404e53
mov eax, dword [0x424530]
add eax, 1
cmp eax, 0x3c
mov dword [0x424530], eax
jle 0x404e16
push str.shutdown__s
call fcn.0040b33d
add esp, 4
push 0
push 0
push 0x10
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x404efb
cdq
sub eax, edx
sar eax, 1
mov ecx, 0x1e
sub ecx, eax
push ecx
lea edx, [esp + 0x40]
push 0x41d6d8
push edx
call fcn.0040a975
add esp, 0xc
push 0xff
push 0x3f8
mov ecx, 0x424618
call fcn.00403840
lea eax, [esp + 0x3c]
push eax
jmp 0x404eec
mov bx, word [0x41d6c8]
xor edx, edx
mov dword [0x424530], edx
mov byte [esp + 0x3c], dl
xor esi, esi
jmp 0x404e70
lea ecx, [edx + 2]
mov eax, 1
shl eax, cl
movzx ecx, word [ebp + 0x85c]
lea edi, [esp + 0x3c]
add edi, 0xffffffff
test ecx, eax
jne 0x404ea2
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x404e90
mov word [edi], bx
add esi, 1
jmp 0x404eb5
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x404ea2
mov ax, word [0x41d52c]
mov word [edi], ax
add edx, 1
cmp edx, 4
jl 0x404e70
push 0x8000
push 0x3f8
mov ecx, 0x424618
call fcn.00403840
imul esi, esi, 0x19
push esi
lea ecx, [esp + 0x40]
push 0x41d6c0
push ecx
call fcn.0040a975
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
push 0x3f8
mov ecx, 0x424618
call fcn.004035e0
mov ecx, dword [esp + 0x13c]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a9f0
add esp, 0x130
ret