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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495717
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4c206c]
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
call fcn.0041d700
mov ecx, eax
test ecx, ecx
je 0x4210d4
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x138], esi
mov dword [ebp - 4], 0
cmp dword [ebx + 0x158], 0
je 0x420adc
mov edx, dword [ebx + 0x184]
lea edi, [esi - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x420a06
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x420ac2
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x420ac2
call fcn.0041d470
mov dword [ebp - 0x13c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4209fd
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x13c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x138], esi
push str._.._
lea edx, [ebp - 0x138]
lea ecx, [ebp - 0x148]
call fcn.00422ac0
mov edi, eax
mov ecx, 0x4ab788
mov byte [ebp - 4], 4
call fcn.004028f0
push eax
mov edx, edi
lea ecx, [ebp - 0x14c]
call fcn.00422ac0
add esp, 8
mov byte [ebp - 4], 6
or edi, 0xffffffff
mov edx, dword [ebp - 0x148]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420a61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420c18
push ecx
mov ecx, str.invalidruntimepath
mov dword [ebp - 0x134], esp
mov edi, esp
call fcn.004028f0
push eax
mov ecx, edi
call fcn.0041ddb0
mov byte [ebp - 4], 7
push ecx
mov ecx, str.msgboxtitle
mov edi, esp
call fcn.004028f0
push eax
mov ecx, edi
call fcn.0041ddb0
mov byte [ebp - 4], 6
mov edx, 4
mov ecx, dword [ebx + 4]
call fcn.0041ff90
add esp, 8
jmp 0x421073
push dword [edx - 0xc]
lea ecx, [ebp - 0x138]
push edx
call fcn.0041dc20
mov esi, dword [ebp - 0x138]
jmp 0x420a06
push ecx
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebx + 0x54]
call fcn.004321d0
mov byte [ebp - 4], 1
lea edi, [esi - 0x10]
mov eax, dword [ebp - 0x13c]
lea edx, [eax - 0x10]
cmp edx, edi
je 0x420b5c
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x420b41
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x420b41
mov ecx, edx
call fcn.0041d470
mov dword [ebp - 0x148], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x420b36
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x148]
lea esi, [eax + 0x10]
mov dword [ebp - 0x138], esi
jmp 0x420b56
push dword [eax - 0xc]
lea ecx, [ebp - 0x138]
push eax
call fcn.0041dc20
mov esi, dword [ebp - 0x138]
mov eax, dword [ebp - 0x13c]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420b78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x420ba0
push ecx
mov ecx, str.invalidpath
mov dword [ebp - 0x134], esp
mov edi, esp
call fcn.004028f0
push eax
mov ecx, edi
call fcn.0041ddb0
mov byte [ebp - 4], 2
jmp 0x420be8
js 0x420a06
push 0x4ab784
push esi
call fcn.004713db
add esp, 8
test eax, eax
je 0x420a06
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x420a06
push ecx
mov ecx, str.invalidpath
mov dword [ebp - 0x134], esp
mov edi, esp
call fcn.004028f0
push eax
mov ecx, edi
call fcn.0041ddb0
mov byte [ebp - 4], 3
push ecx
mov ecx, str.msgboxtitle
mov edi, esp
call fcn.004028f0
push eax
mov ecx, edi
call fcn.0041ddb0
mov byte [ebp - 4], 0
mov edx, 4
mov ecx, dword [ebx + 4]
call fcn.0041ff90
add esp, 8
xor edi, edi
jmp 0x421097
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x420c47
push ecx
mov ecx, str.invalidrootpath
mov dword [ebp - 0x134], esp
mov edi, esp
call fcn.004028f0
push eax
mov ecx, edi
call fcn.0041ddb0
mov byte [ebp - 4], 8
jmp 0x420a94
lea ecx, [ebp - 0x138]
call fcn.0041e080
lea ecx, [ebp - 0x138]
call fcn.0041e1f0
lea ecx, [ebp - 0x138]
call fcn.00401890
mov esi, dword [ebp - 0x138]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x420dc1
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov dword [ebp - 0x134], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 7
push str.trivial
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0041ccc0
sub esp, 0xc
mov byte [ebp - 4], 9
lea eax, [ebp - 0x28]
push 0x155
push str.d:workqninstall_srcinstallerinstallmaindlg.cpp
push str.int___thiscall_CInstallMainDlg::StartInstall_void_
push 8
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0041bed0
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 0xa
mov cl, byte [eax + 0xf8]
test cl, cl
je 0x420d2b
mov eax, dword [eax + 0x28]
mov edx, str.SHCreateDirectory
mov ecx, dword [eax + 0x54]
add ecx, 0x10
call fcn.0041d1c0
mov eax, dword [ebp - 0x13c]
mov cl, byte [eax + 0xf8]
test cl, cl
je 0x420d2b
mov eax, dword [eax + 0x28]
push dword [ebp - 0x140]
mov ecx, dword [eax + 0x54]
add ecx, 0x10
call fcn.00411910
lea ecx, [ebp - 0x130]
call fcn.00412bf0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x420d6e
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x420d64
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4210de
push edx
push ecx
call fcn.00459719
add esp, 8
cmp dword [ebp - 0x134], 0
je 0x420dc1
push ecx
mov ecx, str.invalidpath
mov dword [ebp - 0x134], esp
mov edi, esp
call fcn.004028f0
push eax
mov ecx, edi
call fcn.0041ddb0
mov byte [ebp - 4], 0xb
push ecx
mov ecx, str.msgboxtitle
mov edi, esp
call fcn.004028f0
push eax
mov ecx, edi
call fcn.0041ddb0
mov byte [ebp - 4], 6
xor edx, edx
mov ecx, dword [ebx + 4]
call fcn.0041ff90
add esp, 8
jmp 0x421073
lea ecx, [esi - 0x10]
call fcn.0041d470
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x13c], 1
push ecx
push 0
add eax, 0x10
xorps xmm0, xmm0
push 0
push eax
mov dword [ebp - 0x134], eax
movq qword [ebp - 0x144], xmm0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x420e2c
cmp dword [ebp - 0x140], 0
mov eax, dword [ebx + 0x17c]
jb 0x420e22
ja 0x420e16
cmp dword [ebp - 0x144], eax
jbe 0x420e22
mov dword [ebp - 0x13c], 1
jmp 0x420e2c
mov dword [ebp - 0x13c], 0
mov edx, dword [ebp - 0x134]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420e49
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x13c], 0
jne 0x420e76
push ecx
mov ecx, str.spacelack
mov dword [ebp - 0x134], esp
mov edi, esp
call fcn.004028f0
push eax
mov ecx, edi
call fcn.0041ddb0
mov byte [ebp - 4], 0xc
jmp 0x420d96
push 7
push str.trivial
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0041ccc0
sub esp, 0xc
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x28]
push 0x164
push str.d:workqninstall_srcinstallerinstallmaindlg.cpp
push str.int___thiscall_CInstallMainDlg::StartInstall_void_
push 2
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0041bed0
push esi
push 0x4ab898
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.0041c110
mov ecx, eax
call fcn.00423cf0
lea ecx, [ebp - 0x130]
call fcn.00412bf0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x420f1a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x420f10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4210e3
push edx
push ecx
call fcn.00459719
add esp, 8
push ecx
mov edi, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x134], edi
call fcn.0041d470
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
call fcn.004210f0
test eax, eax
jne 0x421073
mov edi, dword [ebx + 0x188]
lea ecx, [ebx + 0x188]
sub edi, 0x10
lea edx, [esi - 0x10]
cmp edx, edi
je 0x420f9e
cmp dword [edi + 0xc], eax
jl 0x420f95
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x420f95
mov ecx, edx
call fcn.0041d470
mov dword [ebp - 0x134], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420f8a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x134]
add eax, 0x10
mov dword [ebx + 0x188], eax
jmp 0x420f9e
push dword [esi - 0xc]
push esi
call fcn.0041dc20
mov ecx, dword [ebx + 0x154]
test ecx, ecx
je 0x420fc5
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x154]
push 0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, 1
jmp 0x421075
push 7
push str.trivial
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0041ccc0
sub esp, 0xc
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x28]
push 0x171
push str.d:workqninstall_srcinstallerinstallmaindlg.cpp
push str.int___thiscall_CInstallMainDlg::StartInstall_void_
push 8
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0041bed0
push 0x4a94cc
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.0041c110
lea ecx, [ebp - 0x130]
call fcn.00412bf0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x421061
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x421057
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4210e8
push edx
push ecx
call fcn.00459719
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
xor edi, edi
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x14c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x421097
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4210b6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.004591b7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0041dc00
call fcn.00474c79
call fcn.00474c79
call fcn.00474c79
int3