Function at 0x416130
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4df88d
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x51bcaa
call fcn.004dd914
mov edx, dword [edi + 0x77c]
cmp dword [edx - 0xc], 0
je 0x416277
mov esi, dword [edi + 0x780]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x4161c6
mov eax, dword [esi + 0xc]
shr eax, 0x1f
test al, al
jne 0x4161b7
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4161b7
call fcn.00406700
mov dword [ebp - 0x18], eax
lea edx, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4161ac
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [edi + 0x780], eax
jmp 0x4161c6
push dword [edx - 0xc]
lea ecx, [edi + 0x780]
push edx
call fcn.004067e0
push ecx
mov ecx, dword [edi + 0x780]
mov esi, esp
sub ecx, 0x10
mov dword [ebp - 0x18], esi
call fcn.00406700
add eax, 0x10
lea ecx, [ebp - 0x30]
mov dword [esi], eax
call fcn.00403050
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
jbe 0x41648c
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
mov cl, byte [eax]
call fcn.00404300
mov ecx, dword [edi + 0x7b0]
mov dword [edi + 0x788], eax
mov dword [edi + 0x78c], edx
test ecx, ecx
je 0x41622e
mov eax, dword [ecx]
push dword [edi + 0x780]
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x10
jb 0x41647b
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41625c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416491
push ecx
push edx
call fcn.004b09a5
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, esp
push 0x509064
call fcn.00406300
lea eax, [ebp - 0x14]
push eax
call fcn.00415f40
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x416363
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416363
mov edx, dword [ebp - 0x14]
lea ecx, [edi + 0x780]
mov esi, dword [ecx]
add edx, 0xfffffff0
sub esi, 0x10
or ebx, 0xffffffff
cmp edx, esi
je 0x416316
cmp dword [esi + 0xc], 0
jl 0x416304
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x416304
mov ecx, edx
call fcn.00406700
mov dword [ebp - 0x18], eax
lea edx, [esi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4162f7
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
lea ecx, [edi + 0x780]
mov dword [ecx], eax
jmp 0x416316
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
push eax
call fcn.004067e0
lea ecx, [edi + 0x780]
mov edx, dword [edi + 0x79c]
mov eax, dword [edi + 0x798]
test edx, edx
jl 0x41632f
jg 0x41633b
cmp eax, 0x128c5680
ja 0x41633b
mov eax, dword [edi + 0x790]
mov edx, dword [edi + 0x794]
mov dword [edi + 0x788], eax
mov dword [edi + 0x78c], edx
mov edx, dword [edi + 0x7b0]
test edx, edx
je 0x416463
mov eax, dword [edx]
push dword [ecx]
mov ecx, edx
call dword [eax + 0x2c]
jmp 0x416463
lea ecx, [ebp - 0x10]
call fcn.00404c10
mov byte [ebp - 4], 2
cmp dword [edi + 0x79c], 0
jl 0x4163a3
jg 0x416386
cmp dword [edi + 0x798], 0x128c5680
jbe 0x4163a3
push 0x11
push str.D:Program_Files_
lea ecx, [ebp - 0x10]
call fcn.004067e0
mov eax, dword [edi + 0x798]
mov ecx, dword [edi + 0x79c]
jmp 0x4163af
mov eax, dword [edi + 0x790]
mov ecx, dword [edi + 0x794]
mov dword [edi + 0x788], eax
push 9
mov dword [edi + 0x78c], ecx
lea ecx, [ebp - 0x10]
push str.GptChrome
call fcn.00406970
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 0x780]
mov esi, dword [ecx]
or ebx, 0xffffffff
sub esi, 0x10
lea edx, [eax - 0x10]
mov dword [ebp - 0x18], edx
cmp edx, esi
je 0x416432
cmp dword [esi + 0xc], 0
jl 0x416426
mov edx, dword [eax - 0x10]
cmp edx, dword [esi]
jne 0x416426
mov ecx, dword [ebp - 0x18]
call fcn.00406700
mov dword [ebp - 0x18], eax
lea edx, [esi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416416
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
lea edx, [edi + 0x780]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
jmp 0x416438
push dword [eax - 0xc]
push eax
call fcn.004067e0
mov eax, dword [ebp - 0x10]
lea edx, [edi + 0x780]
mov ecx, dword [edi + 0x7b0]
test ecx, ecx
je 0x41644c
mov eax, dword [ecx]
push dword [edx]
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x10]
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416463
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41647b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004066e0
call fcn.004b8090
int3