Function at 0x470fa4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f663c
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x54b0c4]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x30]
push eax
call fcn.00477856
pop ecx
lea ecx, [ebx + 0x1c]
push ecx
lea ecx, [esp + 0x24]
push ecx
xor edi, edi
mov ecx, eax
mov dword [esp + 0x60], edi
call fcn.00406158
pop ecx
pop ecx
mov esi, eax
mov byte [esp + 0x58], 1
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x471016
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
jmp 0x471054
push dword [esi]
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
lea esi, [esp + 0x20]
lea edi, [esp + 0x18]
call fcn.0046aa95
test eax, eax
pop ecx
jne 0x47103c
and dword [esp + 0x34], eax
and dword [esp + 0x38], eax
jmp 0x471054
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
xor ecx, ecx
xor esi, esi
or ecx, edx
or eax, esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
add eax, 0xfffffff0
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
call fcn.004012f9
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.004012f9
lea eax, [ebx + 0x20]
push eax
call fcn.004713d7
add ebx, 0x24
push ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
call fcn.004713d7
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
or eax, dword [esp + 0x40]
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], 1
mov ebx, 0x509228
je 0x4711cb
cmp esi, dword [esp + 0x40]
ja 0x4711cb
jb 0x4710d4
cmp edi, dword [esp + 0x3c]
jae 0x4711cb
xor edi, edi
cmp dword [0x550bdc], edi
mov dword [esp + 0x14], edi
je 0x4711cd
push str.FileVersionCondition::IsRecommanded
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x1a], 1
mov byte [esp + 0x1b], 1
call fcn.00402d09
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], 2
cmp dword [eax + 8], edi
jne 0x471117
or dword [esp + 0x1c], 0xffffffff
jmp 0x471122
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
lea edi, [esp + 0x30]
call fcn.004c0aa3
lea ecx, [esp + 0x12]
push ecx
push ecx
lea ecx, [esp + 0x1b]
push ecx
push ecx
push str.Currentversion_
push ebx
mov byte [esp + 0x70], 3
mov eax, dword [eax]
push eax
push 0x5091f0
push ebx
lea eax, [esp + 0x40]
push eax
push str._pushtype
push ecx
call fcn.004022f5
add esp, 4
call fcn.0040233d
call fcn.00423894
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
lea edi, [esp + 0x54]
call fcn.00476b87
add esp, 4
call fcn.00432440
lea edi, [esp + 0x44]
call fcn.00476b87
add esp, 4
call fcn.00432440
mov esi, eax
call fcn.00402366
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.004012f9
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004012f9
xor edi, edi
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov edx, ecx
or edx, eax
je 0x4712ec
cmp dword [esp + 0x38], eax
jb 0x4712ec
ja 0x4711f5
cmp dword [esp + 0x34], ecx
jbe 0x4712ec
cmp dword [0x550bdc], edi
mov dword [esp + 0x14], edi
je 0x4712f2
push str.FileVersionCondition::IsRecommanded
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x1b], 1
mov byte [esp + 0x1a], 1
call fcn.00402d09
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], 4
cmp dword [eax + 8], edi
jne 0x471236
or dword [esp + 0x20], 0xffffffff
jmp 0x471241
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
lea edi, [esp + 0x30]
call fcn.004c0aa3
lea ecx, [esp + 0x13]
push ecx
push ecx
lea ecx, [esp + 0x1a]
push ecx
push ecx
push str.Currentversion_
push ebx
mov byte [esp + 0x70], 5
mov eax, dword [eax]
push eax
push 0x5091f0
push ebx
lea eax, [esp + 0x44]
push eax
push str._pushtype
push ecx
call fcn.004022f5
add esp, 4
call fcn.0040233d
call fcn.00423894
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
lea edi, [esp + 0x54]
call fcn.00476b87
add esp, 4
call fcn.00432440
lea edi, [esp + 0x2c]
call fcn.00476b87
add esp, 4
call fcn.00432440
mov esi, eax
call fcn.00402366
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.004012f9
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004012f9
xor edi, edi
cmp dword [esp + 0x14], edi
jne 0x471306
mov esi, dword [esp + 0x18]
lea eax, [esi + 0xc]
push str.FileVersionCondition
push eax
call fcn.00402d46
jmp 0x47130a
mov esi, dword [esp + 0x18]
cmp dword [0x550bdc], edi
je 0x4713c0
push str.FileVersionCondition::IsRecommanded
lea eax, [esp + 0x28]
push eax
call fcn.00402d09
mov dword [esp + 0x58], 6
cmp dword [esi + 8], edi
jne 0x471339
or dword [esp + 0x20], 0xffffffff
jmp 0x471344
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
lea edi, [esp + 0x34]
call fcn.004c0aa3
lea ecx, [esp + 0x14]
push ecx
push str.FileVersion_return
push ebx
mov byte [esp + 0x64], 7
mov eax, dword [eax]
push eax
push 0x5091f0
push ebx
lea eax, [esp + 0x38]
push eax
push str._pushtype
call fcn.004022f5
call fcn.0040233d
call fcn.00423894
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
call fcn.0040233d
call fcn.00423894
mov esi, eax
call fcn.00402366
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret