Function at 0x45b7f7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xa0
mov eax, 0x51b1a1
call fcn.004d8abf
mov dword [ebp - 0x14], edx
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
lea ecx, [ebp - 0x1c]
call fcn.0040687a
and dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.004ab9ce
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x54]
push 0
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.0045b6d5
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [ebp - 0x40], 0
jge 0x45b8ab
cmp dword [ebp - 0x3c], 0
mov eax, 0xd8e
cmovne eax, dword [ebp - 0x3c]
push eax
push dword [ebp - 0x40]
push ecx
mov esi, esp
mov dword [ebp - 0x28], esi
mov edi, dword [ebp - 0x38]
lea ecx, [edi - 0x10]
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x60]
mov dword [esi], eax
call fcn.00406620
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.0040121b
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [edi - 0x10]
call fcn.00407189
lea ecx, [ebp - 0x54]
call fcn.004ab992
mov ecx, dword [ebp - 0x1c]
jmp 0x45bfe8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00407189
push str.install_check
lea ecx, [ebp - 0x24]
call fcn.00406fea
push ecx
mov byte [ebp - 4], 4
mov esi, esp
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x28], esp
call fcn.004070e7
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 5
mov esi, esp
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x54]
mov dword [esi], eax
mov byte [ebp - 4], 4
call fcn.0045b23f
mov eax, dword [edi + 0x110]
pop ecx
pop ecx
mov byte [eax + 0x4c], 1
lea eax, [ebp - 0x1c]
mov ecx, dword [edi + 0x110]
push eax
add ecx, 0x50
call fcn.00405d6e
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [ebp - 0x54]
call fcn.004ab992
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [ebp - 0x10]
call fcn.0040687a
mov dword [ebp - 4], 6
mov eax, dword [edi + 0x110]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x45b984
push eax
cmp eax, 0xffff
lea eax, [ebp - 0x10]
jbe 0x45b976
push str.__0x_08x
jmp 0x45b97b
push str.___d
push eax
call fcn.00409fd2
add esp, 0xc
mov ecx, dword [edi + 0x110]
lea edx, [ecx + 0x58]
mov eax, dword [edx]
cmp dword [eax - 0xc], 0
je 0x45b9d1
add ecx, 0x50
call fcn.00405d14
test al, al
je 0x45b9d1
mov esi, dword [edi + 0x110]
mov edi, str.Version_matches
push edi
call fcn.004ddaa2
pop ecx
push eax
push edi
lea ecx, [esi + 0x5c]
call fcn.00406efb
and dword [ebx], 0
lea ecx, [ebx + 8]
and dword [ebx + 4], 0
call fcn.0040687a
jmp 0x45bfe5
mov ecx, dword [edi + 0x110]
lea edx, [ecx + 0x50]
mov eax, dword [edx]
cmp dword [eax - 0xc], 0
je 0x45bad0
add ecx, 0x48
call fcn.00405d14
test al, al
jne 0x45bad0
mov eax, dword [edi + 0x110]
cmp byte [eax + 0x61], 0
jne 0x45bac0
mov esi, dword [eax + 0x50]
cmp dword [esi - 0xc], 0
je 0x45bac0
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x14], eax
cmp dword [eax - 0xc], 0
je 0x45bac0
mov edx, str.unknown:
mov ecx, esi
call fcn.0042981b
test al, al
jne 0x45bac0
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x14]
mov edx, esi
lea ecx, [ebp - 0x60]
call fcn.00434e27
pop ecx
pop ecx
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.00407189
cmp dword [ebp - 0x24], 0
jge 0x45bac0
mov esi, dword [edi + 0x110]
push str.Version_smaller_than_expected
call fcn.004ddaa2
pop ecx
push eax
push str.Version_smaller_than_expected
lea ecx, [esi + 0x5c]
call fcn.00406efb
mov eax, dword [edi + 0x110]
lea ecx, [ebp - 0x14]
push 0xdc3
add eax, 0x50
mov edx, str.Installed_version_is
push 0x80004005
push eax
call fcn.004093b4
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 7
mov ecx, esp
push edx
mov edx, eax
call fcn.0040a037
pop ecx
mov ecx, ebx
call fcn.00406620
mov ecx, dword [ebp - 0x14]
jmp 0x45bfdd
mov esi, dword [edi + 0x110]
mov edi, str.Version_changed
jmp 0x45b9ac
xor al, al
mov byte [ebp - 0x15], al
mov eax, dword [edi + 0x4c]
mov edi, dword [eax]
cmp edi, eax
je 0x45bf8c
mov eax, dword [ebp + 8]
sub eax, 0xffffff80
mov dword [ebp - 0x20], eax
mov ecx, dword [edi + 8]
sub ecx, 0x10
call fcn.004070e7
mov dword [ebp - 0x14], eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x24]
call fcn.0040687a
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 9
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x1c], esi
lea eax, [ebx - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
call fcn.004070e7
add eax, 0x10
mov dword [esi], eax
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 0xa
push dword [ebp - 0x20]
mov ecx, dword [ebx + 0x110]
add ecx, 4
push ecx
mov esi, esp
mov dword [ebp - 0x14], esi
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x4c]
mov dword [esi], eax
mov edx, ebx
mov byte [ebp - 4], 9
call fcn.0043eb58
add esp, 0x10
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x4c], 0
jge 0x45bb84
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
jmp 0x45bdb3
mov esi, dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45bda5
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x110]
mov dword [ebp - 0x14], ecx
cmp dword [eax - 0xc], 0
je 0x45bf35
push 0
push ecx
lea eax, [esi - 0x10]
mov ebx, esp
mov dword [ebp - 0x34], ebx
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.004070e7
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x70]
add eax, 0x10
mov dword [ebx], eax
lea edx, [edx + 0x30]
call fcn.0042e281
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xc
call fcn.004032ed
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.00407189
cmp dword [ebp - 0x4c], 0
jl 0x45becb
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x2c], 0
mov eax, dword [ebx + 0x110]
je 0x45bff8
push dword [ebx + 0x2c]
push dword [eax + 0x30]
call fcn.004e3849
pop ecx
pop ecx
test eax, eax
je 0x45be8a
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xe
push eax
mov edx, esi
lea ecx, [ebp - 0x7c]
call fcn.00407faa
pop ecx
mov ecx, dword [ebp - 0x74]
mov ebx, dword [eax]
shr ebx, 0x1f
lea ecx, [ecx - 0x10]
call fcn.00407189
xor bl, 1
je 0x45bcb6
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x88]
mov ebx, dword [ebx + 0x110]
add ebx, 0x1c
push ebx
call fcn.00408919
pop ecx
mov ecx, dword [ebp - 0x80]
lea ecx, [ecx - 0x10]
call fcn.00407189
push ebx
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x94]
call fcn.00408829
pop ecx
mov ecx, dword [ebp - 0x8c]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [ebp - 0x98]
call fcn.0040687a
mov ecx, dword [ebp - 0x98]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x45bcfc
mov eax, dword [ebp - 0x38]
sub eax, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x34], eax
cmp eax, 0x1000
jb 0x45bce8
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405c9b
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.004d840d
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0xac]
mov edx, esi
mov eax, dword [ebx + 0x110]
add eax, 0x28
push eax
call fcn.0042a1be
pop ecx
mov ecx, dword [ebp - 0xa4]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebx + 0x110]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x50]
add ecx, 0x34
push eax
call fcn.004091cb
mov ecx, dword [eax]
mov eax, dword [ebx + 0x110]
cmp ecx, dword [eax + 0x34]
je 0x45be77
push dword [eax + 0x30]
push dword [ecx + 0x14]
call fcn.004e3849
pop ecx
pop ecx
test eax, eax
jne 0x45be70
cmp byte [ebx + 0x40], al
je 0x45bda1
mov eax, dword [ebx + 0x110]
cmp dword [eax + 0x20], 0
je 0x45bda1
cmp dword [ebx + 0x3c], 0
je 0x45bda1
add eax, 0x1c
lea edx, [ebx + 0x38]
push eax
lea ecx, [ebp - 0x60]
call fcn.00408a80
pop ecx
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x60], 0
jge 0x45be35
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov byte [ebp - 0x15], 1
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [esi - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.00407189
mov eax, dword [edi]
mov edi, eax
cmp eax, dword [ebx + 0x4c]
jne 0x45baeb
cmp byte [ebp - 0x15], 0
je 0x45bf89
push 0xe24
push 0x80004005
push str.Could_not_verify_installation
lea ecx, [ebp - 0x20]
call fcn.00406fea
push str.__2_
mov edx, eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x28]
call fcn.00409442
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 0x11
mov ecx, esp
push edx
mov edx, eax
call fcn.0040a037
pop ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00406620
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
jmp 0x45bf1d
mov esi, dword [ebx + 0x110]
mov edi, str.Attributes_check
push edi
call fcn.004ddaa2
pop ecx
push eax
push edi
lea ecx, [esi + 0x5c]
call fcn.00406efb
mov edi, dword [ebp - 0x2c]
and dword [edi], 0
lea ecx, [edi + 8]
and dword [edi + 4], 0
call fcn.0040687a
mov ecx, dword [ebp - 0x58]
lea ecx, [ecx - 0x10]
call fcn.00407189
jmp 0x45beb8
mov edi, str.Changed_file
jmp 0x45be8f
mov edi, str.New_file
lea esi, [eax + 0x5c]
push edi
call fcn.004ddaa2
pop ecx
mov ecx, esi
jmp 0x45be9f
mov edi, str.Hash_check
mov esi, dword [ebx + 0x110]
push edi
call fcn.004ddaa2
pop ecx
lea ecx, [esi + 0x5c]
push eax
push edi
call fcn.00406efb
mov edi, dword [ebp - 0x2c]
and dword [edi], 0
lea ecx, [edi + 8]
and dword [edi + 4], 0
call fcn.0040687a
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x1c]
jmp 0x45bf6d
push 0xdef
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x20]
push str.Could_not_verify_installation
call fcn.00406fea
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xd
push str.__3_
mov edx, eax
call fcn.00409442
pop ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00406620
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x1c]
call fcn.00407189
mov ecx, dword [ebp - 0x30]
call fcn.00407189
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, dword [ebp - 0x2c]
jmp 0x45bff2
mov ebx, str.Found_file
lea edi, [ecx + 0x5c]
push ebx
call fcn.004ddaa2
pop ecx
push eax
push ebx
mov ecx, edi
call fcn.00406efb
mov edi, dword [ebp - 0x2c]
and dword [edi], 0
lea ecx, [edi + 8]
and dword [edi + 4], 0
call fcn.0040687a
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [esi - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x30]
call fcn.00407189
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, edi
jmp 0x45bff2
mov ebx, dword [ebp - 0x2c]
push 0xe28
push 0x80004005
push str.Could_not_verify_installation
lea ecx, [ebp - 0x20]
call fcn.00406fea
push str.__1_
mov edx, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x28]
call fcn.00409442
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 0x13
mov ecx, esp
push edx
mov edx, eax
call fcn.0040a037
pop ecx
mov ecx, ebx
call fcn.00406620
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, ebx
call fcn.004d8a8d
ret
mov edx, 0x5af
mov ecx, 0x80004005
call fcn.004071ab
int3