Function at 0x40a420
Capabilities:
Check if file exists
Get disk size
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585376
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x5d4074]
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 ebx, ecx
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
sub esp, 8
lea ecx, [ebp - 0x88]
cmp dword [ebp + 0x1c], 8
mov edx, esp
cmovae eax, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
mov dword [edx + 4], eax
call fcn.0041ba00
mov byte [ebp - 4], 1
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x88]
call fcn.0041bad0
mov edi, dword [ebp - 0xa4]
sub esp, 8
mov ecx, esp
cmp dword [edi + 0x14], 8
jb 0x40a4c7
mov eax, dword [edi]
jmp 0x40a4c9
mov eax, edi
mov dword [ecx], eax
mov eax, dword [edi + 0x10]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x28]
call fcn.0041ba00
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x40a4e5
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0x89]
cmp eax, 8
jb 0x40a50f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407940
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp byte [ebp - 0x89], al
je 0x40a884
sub esp, 8
cmp dword [edi + 0x14], 8
mov ecx, esp
jb 0x40a53e
mov eax, dword [edi]
jmp 0x40a540
mov eax, edi
mov dword [ecx], eax
mov eax, dword [edi + 0x10]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x28]
call fcn.0041ba00
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x40a55c
mov eax, dword [eax]
lea ecx, [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x40a583
or eax, 0xffffffff
or ecx, eax
jmp 0x40a5a1
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x98]
test ecx, ecx
jg 0x40a5a1
jl 0x40a599
test eax, eax
jae 0x40a5a1
or eax, 0xffffffff
mov ecx, accept
push 0
push 0x100000
push ecx
push eax
call fcn.0055f750
mov byte [ebp - 4], 2
mov esi, eax
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40a5ca
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00407940
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], eax
mov word [ebp - 0x58], ax
push str.MINIMUM_SPACE
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00405cc0
mov byte [ebp - 4], 6
call fcn.00451ac0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00451400
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40a63a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407940
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x48]
cmovae ecx, dword [ebp - 0x58]
mov dword [ebp - 0x18], 0
lea edx, [ecx + eax*2]
lea eax, [ebp - 0x94]
push eax
call fcn.00423010
add esp, 4
cmp dword [ebp - 0x94], esi
jl 0x40a7e3
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x40]
push 0x5bdc74
push eax
call fcn.0040b5f0
add esp, 0xc
push 0x5bdc6c
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
call fcn.0040b540
add esp, 0xc
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00405c70
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40a6f1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407940
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40a71e
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407940
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 7
call fcn.00406750
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.tip_err_path
push 0x468
push dword [ebx + 0x248]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40a786
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407940
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push str.btn_install
push 0x466
push dword [ebx + 0x248]
call esi
push 0
push str.btn_quick_install
push 0x466
push dword [ebx + 0x248]
call esi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x40a7cd
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00407940
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jmp 0x40a855
push 0x5bdb84
lea ecx, [ebp - 0x40]
call fcn.00405cc0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push str.tip_err_path
push 0x468
push dword [ebx + 0x248]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40a827
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407940
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push 1
push str.btn_install
push 0x466
push dword [ebx + 0x248]
call esi
push 1
push str.btn_quick_install
push 0x466
push dword [ebx + 0x248]
call esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x40a86e
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00407940
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jmp 0x40a8f6
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push str.btn_install
push 0x466
push dword [ebx + 0x248]
call esi
push 0
push str.btn_quick_install
push 0x466
push dword [ebx + 0x248]
call esi
push 0x5bdcac
lea ecx, [ebp - 0x40]
call fcn.00405cc0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push str.tip_err_path
push 0x468
push dword [ebx + 0x248]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40a8f6
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407940
mov byte [ebp - 4], 1
lea eax, [ebp - 0xa4]
push dword [ebp - 0x94]
push eax
push dword [ebp - 0xa0]
push edi
call fcn.0040b810
mov ecx, dword [ebp - 0x9c]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 0x10
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
call fcn.0040b3f0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
cmp eax, 8
jb 0x40a973
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00407940
xor eax, eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov dword [ebp - 0x78], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x40a9a6
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00407940
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
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.004a0c7f
mov esp, ebp
pop ebp
ret 0x18