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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a761
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x5d6b80]
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.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4a3fc3
push 0x80004005
call fcn.0045a8f0
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 0x5828f8
push dword [0x5d68c8]
push reloc.WS2_32.dll_accept
call fcn.00511e70
add esp, 0x10
test eax, eax
je 0x4a40c5
mov esi, dword [ebp - 0x220]
or ebx, 0xffffffff
cmp dword [esi - 0xc], 0
jl 0x4a409f
push 0x580dd4
push esi
call fcn.00526d32
add esp, 8
test eax, eax
je 0x4a409f
sub eax, esi
sar eax, 1
test eax, eax
jle 0x4a409f
cmp dword [esi - 0xc], 0
jge 0x4a4038
or eax, ebx
jmp 0x4a4053
push 0x580dd4
push esi
call fcn.00526d32
add esp, 8
test eax, eax
jne 0x4a404f
or eax, 0xffffffff
jmp 0x4a4053
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
call fcn.0045b030
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.0045a580
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 0x4a4099
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.0045a580
mov ecx, edi
call fcn.0045bb40
mov ecx, eax
call fcn.0045ba90
mov edi, 1
jmp 0x4a4331
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4a40e1
push 0x80004005
call fcn.0045a8f0
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.00525ee0
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 0x4a41b8
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4140
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0045b6e0
lea ecx, [ebp - 0x21c]
call fcn.0045bb40
mov ecx, eax
call fcn.0045ba90
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax - 0xc]
test edx, edx
je 0x4a41be
lea ecx, [edx - 1]
test ecx, ecx
js 0x4a42f9
cmp ecx, edx
jg 0x4a42f9
cmp word [eax + ecx*2], 0x5c
je 0x4a41a8
push 0x5c
lea ecx, [ebp - 0x21c]
call fcn.0049ba80
push 0x582d00
lea ecx, [ebp - 0x21c]
call fcn.0047f960
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x4a41d1
push eax
call esi
test eax, eax
jne 0x4a4248
lea ecx, [ebp - 0x21c]
call fcn.0045abd0
lea eax, [ebp - 0x21c]
push eax
push 0x2a
call fcn.004e32f0
add esp, 8
test eax, eax
jns 0x4a4206
lea eax, [ebp - 0x21c]
push eax
push 0x26
call fcn.004e32f0
add esp, 8
test eax, eax
js 0x4a4248
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax - 0xc]
lea ecx, [edx - 1]
test ecx, ecx
js 0x4a42f9
cmp ecx, edx
jg 0x4a42f9
cmp word [eax + ecx*2], 0x5c
je 0x4a4236
push 0x5c
lea ecx, [ebp - 0x21c]
call fcn.0049ba80
push 0x24
push str.GoogleChromeApplicationchrome.exe
lea ecx, [ebp - 0x21c]
call fcn.00472540
push dword [ebp - 0x21c]
call esi
test eax, eax
je 0x4a4303
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x21c]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x4a4303
lea eax, [esi + 1]
push eax
call fcn.005243ff
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 0x4a42ee
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x228]
push eax
push 0x57e140
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a42ee
mov ecx, dword [ebp - 0x228]
test ecx, ecx
je 0x4a42ee
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.0045acb0
add esp, 0x18
mov edi, 1
push ebx
call fcn.00525873
add esp, 4
jmp 0x4a4305
push 0x80070057
call fcn.0045a8f0
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 0x4a432b
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 0x4a434f
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.00525878
mov esp, ebp
pop ebp
ret 4