Function at 0x4020a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d7e4
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x455440]
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 esi, ecx
mov dword [ebp - 0xc8], esi
lea ebx, [esi + 4]
mov dword [ebp - 0xcc], esi
mov byte [esi], 0
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xa0], ebx
call fcn.004015a0
mov edi, eax
xor eax, eax
test edi, edi
setne al
test eax, eax
jne 0x402119
push 0x80004005
push 0xcd
mov edx, str.ATL::CSimpleStringT_wchar_t_0_::CSimpleStringT
mov ecx, str.C:Program_FilesMicrosoft_Visual_Studio_12.0VC_atlmfcinclude_atlsimpstr.h
call fcn.0040bca0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 3
lea eax, [esi + 8]
sub esp, 0x10
mov dword [ebp - 0xb0], eax
mov ecx, eax
call fcn.0040db50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc4]
push str.YandexYandexBrowserApplication_browser.exe
call fcn.004051f0
mov byte [ebp - 4], 5
push ecx
mov ecx, dword [ebp - 0xc4]
mov esi, esp
mov dword [ebp - 0xa0], esp
mov dword [ebp - 0xa4], esi
lea ecx, [ecx - 0x10]
call fcn.00405c60
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 7
mov edx, 3
lea ecx, [ebp - 0xb8]
call fcn.00401c10
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x9c]
push 0x1c
push ecx
mov ecx, dword [eax]
call fcn.0040f570
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa8]
push ecx
mov byte [ebp - 4], 0xb
mov ecx, eax
call fcn.0040c6e0
mov byte [ebp - 4], 0xc
or edi, 0xffffffff
mov edx, dword [eax]
mov esi, dword [ebx]
sub esi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x402211
cmp dword [esi + 0xc], 0
jl 0x402206
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x402206
call fcn.00405c60
mov dword [ebp - 0xa0], eax
lea ecx, [esi + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4021f9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xa0]
add eax, 0x10
mov dword [ebx], eax
jmp 0x402211
push dword [edx - 0xc]
mov ecx, ebx
push edx
call fcn.00405db0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 0xb
mov ecx, edi
mov edx, dword [ebp - 0xa8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402244
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 0xa
mov ecx, edi
mov edx, dword [ebp - 0x9c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402277
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xb4]
dec dword [eax]
jne 0x4022b7
mov esi, dword [ebp - 0xb8]
test esi, esi
je 0x4022a9
mov ecx, esi
call fcn.00406ca0
push esi
call fcn.00422ded
add esp, 4
mov dword [ebp - 0xb8], 0
push dword [ebp - 0xb4]
call fcn.00422ded
add esp, 4
push 3
push dword [ebx]
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], eax
call fcn.00405ce0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x9c]
push str.Checking
call fcn.00404e20
mov byte [ebp - 4], 0x14
mov edx, eax
push dword [ebp - 0x98]
lea ecx, [ebp - 0xa0]
call fcn.00404f50
add esp, 4
mov byte [ebp - 4], 0x15
push dword [eax]
push 0x10
push str.YandexBrowserDownloader::YandexBrowserDownloader
call fcn.004110a0
add esp, 0xc
mov byte [ebp - 4], 0x14
mov ecx, edi
mov edx, dword [ebp - 0xa0]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402338
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x13
mov ecx, edi
mov edx, dword [ebp - 0x9c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40235b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x94]
mov eax, dword [ebp - 0x98]
cmp eax, ecx
je 0x402378
push eax
call fcn.00422f1c
add esp, 4
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40255b
push 3
push dword [ebx]
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], eax
call fcn.00405ce0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x9c]
push str.Checking
call fcn.00404e20
mov byte [ebp - 4], 0x19
mov edx, eax
push dword [ebp - 0x98]
lea ecx, [ebp - 0xa0]
call fcn.00404f50
add esp, 4
mov byte [ebp - 4], 0x1a
push dword [eax]
push 0x14
push str.YandexBrowserDownloader::YandexBrowserDownloader
call fcn.004110a0
add esp, 0xc
mov byte [ebp - 4], 0x19
mov ecx, edi
mov edx, dword [ebp - 0xa0]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402409
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x18
mov ecx, edi
mov edx, dword [ebp - 0x9c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40242c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x94]
mov eax, dword [ebp - 0x98]
cmp eax, ecx
je 0x402449
push eax
call fcn.00422f1c
add esp, 4
push ecx
mov ecx, dword [ebp - 0xc4]
mov esi, esp
mov dword [ebp - 0xa4], esp
mov dword [ebp - 0xa0], esi
lea ecx, [ecx - 0x10]
call fcn.00405c60
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x1e
mov edx, 3
lea ecx, [ebp - 0xb8]
call fcn.00401c10
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0xa8]
push 0x26
push ecx
mov ecx, dword [eax]
call fcn.0040f570
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x9c]
push ecx
mov byte [ebp - 4], 0x22
mov ecx, eax
call fcn.0040c6e0
mov byte [ebp - 4], 0x23
mov ecx, ebx
push eax
call fcn.00402ab0
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 0x22
mov ecx, edi
mov edx, dword [ebp - 0x9c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4024e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x21
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 0x21
mov ecx, edi
mov edx, dword [ebp - 0xa8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40251b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xb4]
dec dword [eax]
jne 0x40255b
mov esi, dword [ebp - 0xb8]
test esi, esi
je 0x40254d
mov ecx, esi
call fcn.00406ca0
push esi
call fcn.00422ded
add esp, 4
mov dword [ebp - 0xb8], 0
push dword [ebp - 0xb4]
call fcn.00422ded
add esp, 4
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4027ac
lea edx, [eax + 3]
lea ecx, [ebp - 0xb8]
call fcn.00401c10
mov byte [ebp - 4], 0x2a
push ecx
call fcn.0040fbb0
add esp, 4
mov byte [ebp - 0xa9], al
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xb4]
dec dword [eax]
jne 0x4025cc
mov esi, dword [ebp - 0xb8]
test esi, esi
je 0x4025be
mov ecx, esi
call fcn.00406ca0
push esi
call fcn.00422ded
add esp, 4
mov dword [ebp - 0xb8], 0
push dword [ebp - 0xb4]
call fcn.00422ded
add esp, 4
cmp byte [ebp - 0xa9], 0
je 0x4027ac
push 3
push dword [ebx]
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], eax
call fcn.00405ce0
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x9c]
push str.Checking
call fcn.00404e20
mov byte [ebp - 4], 0x2c
mov edx, eax
push dword [ebp - 0x98]
lea ecx, [ebp - 0xa0]
call fcn.00404f50
add esp, 4
mov byte [ebp - 4], 0x2d
push dword [eax]
push 0x1c
push str.YandexBrowserDownloader::YandexBrowserDownloader
call fcn.004110a0
add esp, 0xc
mov byte [ebp - 4], 0x2c
mov ecx, edi
mov edx, dword [ebp - 0xa0]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40265a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2b
mov ecx, edi
mov edx, dword [ebp - 0x9c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40267d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x94]
mov eax, dword [ebp - 0x98]
cmp eax, ecx
je 0x40269a
push eax
call fcn.00422f1c
add esp, 4
push ecx
mov ecx, dword [ebp - 0xc4]
mov esi, esp
mov dword [ebp - 0xa4], esp
mov dword [ebp - 0xa0], esi
lea ecx, [ecx - 0x10]
call fcn.00405c60
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x31
mov edx, 3
lea ecx, [ebp - 0xb8]
call fcn.00401c10
mov byte [ebp - 4], 0x32
lea ecx, [ebp - 0xa8]
push 0x2a
push ecx
mov ecx, dword [eax]
call fcn.0040f570
mov byte [ebp - 4], 0x33
lea ecx, [ebp - 0x9c]
push ecx
mov byte [ebp - 4], 0x35
mov ecx, eax
call fcn.0040c6e0
mov byte [ebp - 4], 0x36
mov ecx, ebx
push eax
call fcn.00402ab0
mov byte [ebp - 4], 0x35
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 0x35
mov ecx, edi
mov edx, dword [ebp - 0x9c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402739
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x34
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 0x34
mov ecx, edi
mov edx, dword [ebp - 0xa8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40276c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xb4]
dec dword [eax]
jne 0x4027ac
mov esi, dword [ebp - 0xb8]
test esi, esi
je 0x40279e
mov ecx, esi
call fcn.00406ca0
push esi
call fcn.00422ded
add esp, 4
mov dword [ebp - 0xb8], 0
push dword [ebp - 0xb4]
call fcn.00422ded
add esp, 4
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4029f8
push ebx
lea ecx, [ebp - 0xc0]
call fcn.0040de40
mov byte [ebp - 4], 0x3d
mov esi, dword [ebp - 0xb0]
mov ecx, esi
push eax
call fcn.00405660
mov byte [ebp - 4], 5
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x402801
push eax
call fcn.00422f1c
add esp, 4
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0x98]
push 3
push dword [ebx]
mov byte [eax], 1
lea eax, [ebp - 0x94]
mov dword [ebp - 0x98], eax
call fcn.00405ce0
mov byte [ebp - 4], 0x40
lea ecx, [ebp - 0xa0]
push str.Browser_exist._Path_to_browser.exe:
call fcn.00404e20
mov byte [ebp - 4], 0x41
mov edx, eax
push dword [ebp - 0x98]
lea ecx, [ebp - 0xb0]
call fcn.00404f50
add esp, 4
mov byte [ebp - 4], 0x42
push dword [eax]
push 0x26
push str.YandexBrowserDownloader::YandexBrowserDownloader
call fcn.004110a0
add esp, 0xc
mov byte [ebp - 4], 0x41
mov ecx, edi
mov edx, dword [ebp - 0xb0]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40288b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x40
mov ecx, edi
mov edx, dword [ebp - 0xa0]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4028ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x94]
mov eax, dword [ebp - 0x98]
cmp eax, ecx
je 0x4028cb
push eax
call fcn.00422f1c
add esp, 4
lea eax, [ebp - 0x9c]
mov ecx, esi
push eax
call fcn.0040e090
mov byte [ebp - 4], 0x45
mov ecx, dword [ebp - 0x9c]
lea ecx, [ecx - 0x10]
call fcn.00405c60
lea esi, [eax + 0x10]
mov dword [ebp - 0xa4], esi
mov byte [ebp - 4], 0x47
lea eax, [ebp - 0x94]
push 3
push esi
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], eax
call fcn.00405ce0
mov byte [ebp - 4], 0x48
lea ecx, [ebp - 0xa0]
push str.Browser_version_
call fcn.00404e20
mov byte [ebp - 4], 0x49
mov edx, eax
push dword [ebp - 0x98]
lea ecx, [ebp - 0xb0]
call fcn.00404f50
add esp, 4
mov byte [ebp - 4], 0x4a
push dword [eax]
push 0x27
push str.YandexBrowserDownloader::YandexBrowserDownloader
call fcn.004110a0
add esp, 0xc
mov byte [ebp - 4], 0x49
mov ecx, edi
mov edx, dword [ebp - 0xb0]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402978
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x48
mov ecx, edi
mov edx, dword [ebp - 0xa0]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40299b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x47
lea ecx, [ebp - 0x94]
mov eax, dword [ebp - 0x98]
cmp eax, ecx
je 0x4029b8
push eax
call fcn.00422f1c
add esp, 4
mov byte [ebp - 4], 0x45
add esi, 0xfffffff0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4029d5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov ecx, edi
mov edx, dword [ebp - 0x9c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4029f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0xc4]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x402a19
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
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.00422df2
mov esp, ebp
pop ebp
ret