Function at 0x474690
Capabilities:
Check if file exists
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc861
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x53f030]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x22c], edi
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4746e3
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
push str.Version
push dword [0x53e870]
push reloc.WS2_32.dll_accept
call fcn.004b9fe0
add esp, 0x10
test eax, eax
je 0x4747e5
mov esi, dword [ebp - 0x220]
or ebx, 0xffffffff
cmp dword [esi - 0xc], 0
jl 0x4747bf
push 0x50ae0c
push esi
call fcn.004d9e7e
add esp, 8
test eax, eax
je 0x4747bf
sub eax, esi
sar eax, 1
test eax, eax
jle 0x4747bf
cmp dword [esi - 0xc], 0
jge 0x474758
or eax, ebx
jmp 0x474773
push 0x50ae0c
push esi
call fcn.004d9e7e
add esp, 8
test eax, eax
jne 0x47476f
or eax, 0xffffffff
jmp 0x474773
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
call fcn.0043b0a0
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.0043a620
mov edx, dword [ebp - 0x224]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4747b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.0043a620
mov ecx, edi
call fcn.0043bbc0
mov ecx, eax
call fcn.0043bb10
mov edi, 1
jmp 0x474a51
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x474801
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
xor eax, eax
mov byte [ebp - 4], 2
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004d9060
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4748d8
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474860
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0043b750
lea ecx, [ebp - 0x21c]
call fcn.0043bbc0
mov ecx, eax
call fcn.0043bb10
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax - 0xc]
test edx, edx
je 0x4748de
lea ecx, [edx - 1]
test ecx, ecx
js 0x474a19
cmp ecx, edx
jg 0x474a19
cmp word [eax + ecx*2], 0x5c
je 0x4748c8
push 0x5c
lea ecx, [ebp - 0x21c]
call fcn.004708b0
push str.LocalGoogleChromeApplicationchrome.exe
lea ecx, [ebp - 0x21c]
call fcn.004558b0
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x4748f1
push eax
call esi
test eax, eax
jne 0x474968
lea ecx, [ebp - 0x21c]
call fcn.0043ac50
lea eax, [ebp - 0x21c]
push eax
push 0x2a
call fcn.0049d4c0
add esp, 8
test eax, eax
jns 0x474926
lea eax, [ebp - 0x21c]
push eax
push 0x26
call fcn.0049d4c0
add esp, 8
test eax, eax
js 0x474968
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax - 0xc]
lea ecx, [edx - 1]
test ecx, ecx
js 0x474a19
cmp ecx, edx
jg 0x474a19
cmp word [eax + ecx*2], 0x5c
je 0x474956
push 0x5c
lea ecx, [ebp - 0x21c]
call fcn.004708b0
push 0x24
push str.GoogleChromeApplicationchrome.exe
lea ecx, [ebp - 0x21c]
call fcn.00452320
push dword [ebp - 0x21c]
call esi
test eax, eax
je 0x474a23
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x21c]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x474a23
lea eax, [esi + 1]
push eax
call fcn.004d7faf
add esp, 4
mov ebx, eax
xor edi, edi
push ebx
push esi
push dword [ebp - 0x224]
push dword [ebp - 0x21c]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x474a0e
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x228]
push eax
push 0x509c8c
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x474a0e
mov ecx, dword [ebp - 0x228]
test ecx, ecx
je 0x474a0e
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._u._u._u._u
push dword [ebp - 0x22c]
call fcn.0043ad30
add esp, 0x18
mov edi, 1
push ebx
call fcn.004d89f6
add esp, 4
jmp 0x474a25
push 0x80070057
call fcn.0043a9b0
xor edi, edi
mov edx, dword [ebp - 0x21c]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x474a4b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x220]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x474a6f
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.004d89fb
mov esp, ebp
pop ebp
ret 4