Function at 0x4020c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a424
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x450440]
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.004015c0
mov edi, eax
xor eax, eax
test edi, edi
setne al
test eax, eax
jne 0x402139
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.004091e0
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.0040b690
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc4]
push str.YandexYandexBrowserApplication_browser.exe
call fcn.00404f10
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.00405ab0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 7
mov edx, 3
lea ecx, [ebp - 0xb8]
call fcn.00401c30
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x9c]
push 0x1c
push ecx
mov ecx, dword [eax]
call fcn.0040cc60
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa8]
push ecx
mov byte [ebp - 4], 0xb
mov ecx, eax
call fcn.00409c20
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 0x402231
cmp dword [esi + 0xc], 0
jl 0x402226
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x402226
call fcn.00405ab0
mov dword [ebp - 0xa0], eax
lea ecx, [esi + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402219
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 0x402231
push dword [edx - 0xc]
mov ecx, ebx
push edx
call fcn.00405940
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 0x402264
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 0x402297
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 0x4022d7
mov esi, dword [ebp - 0xb8]
test esi, esi
je 0x4022c9
mov ecx, esi
call fcn.00406210
push esi
call fcn.004127b0
add esp, 4
mov dword [ebp - 0xb8], 0
push dword [ebp - 0xb4]
call fcn.004127b0
add esp, 4
push 3
push dword [ebx]
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], eax
call fcn.00405870
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x9c]
push str.Checking
call fcn.00404b40
mov byte [ebp - 4], 0x14
mov edx, eax
push dword [ebp - 0x98]
lea ecx, [ebp - 0xa0]
call fcn.00404c70
add esp, 4
mov byte [ebp - 4], 0x15
push dword [eax]
push 0xd
push str.YandexBrowserDownloader::YandexBrowserDownloader
call fcn.0040e8c0
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 0x402358
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 0x40237b
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 0x402398
push eax
call fcn.0041fb10
add esp, 4
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40257b
push 3
push dword [ebx]
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], eax
call fcn.00405870
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x9c]
push str.Checking
call fcn.00404b40
mov byte [ebp - 4], 0x19
mov edx, eax
push dword [ebp - 0x98]
lea ecx, [ebp - 0xa0]
call fcn.00404c70
add esp, 4
mov byte [ebp - 4], 0x1a
push dword [eax]
push 0x11
push str.YandexBrowserDownloader::YandexBrowserDownloader
call fcn.0040e8c0
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 0x402429
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 0x40244c
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 0x402469
push eax
call fcn.0041fb10
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.00405ab0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x1e
mov edx, 3
lea ecx, [ebp - 0xb8]
call fcn.00401c30
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0xa8]
push 0x26
push ecx
mov ecx, dword [eax]
call fcn.0040cc60
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x9c]
push ecx
mov byte [ebp - 4], 0x22
mov ecx, eax
call fcn.00409c20
mov byte [ebp - 4], 0x23
mov ecx, ebx
push eax
call fcn.00402ad0
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 0x402508
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 0x40253b
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 0x40257b
mov esi, dword [ebp - 0xb8]
test esi, esi
je 0x40256d
mov ecx, esi
call fcn.00406210
push esi
call fcn.004127b0
add esp, 4
mov dword [ebp - 0xb8], 0
push dword [ebp - 0xb4]
call fcn.004127b0
add esp, 4
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4027cc
lea edx, [eax + 3]
lea ecx, [ebp - 0xb8]
call fcn.00401c30
mov byte [ebp - 4], 0x2a
push ecx
call fcn.0040d2a0
add esp, 4
mov byte [ebp - 0xa9], al
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xb4]
dec dword [eax]
jne 0x4025ec
mov esi, dword [ebp - 0xb8]
test esi, esi
je 0x4025de
mov ecx, esi
call fcn.00406210
push esi
call fcn.004127b0
add esp, 4
mov dword [ebp - 0xb8], 0
push dword [ebp - 0xb4]
call fcn.004127b0
add esp, 4
cmp byte [ebp - 0xa9], 0
je 0x4027cc
push 3
push dword [ebx]
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], eax
call fcn.00405870
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x9c]
push str.Checking
call fcn.00404b40
mov byte [ebp - 4], 0x2c
mov edx, eax
push dword [ebp - 0x98]
lea ecx, [ebp - 0xa0]
call fcn.00404c70
add esp, 4
mov byte [ebp - 4], 0x2d
push dword [eax]
push 0x19
push str.YandexBrowserDownloader::YandexBrowserDownloader
call fcn.0040e8c0
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 0x40267a
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 0x40269d
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 0x4026ba
push eax
call fcn.0041fb10
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.00405ab0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x31
mov edx, 3
lea ecx, [ebp - 0xb8]
call fcn.00401c30
mov byte [ebp - 4], 0x32
lea ecx, [ebp - 0xa8]
push 0x2a
push ecx
mov ecx, dword [eax]
call fcn.0040cc60
mov byte [ebp - 4], 0x33
lea ecx, [ebp - 0x9c]
push ecx
mov byte [ebp - 4], 0x35
mov ecx, eax
call fcn.00409c20
mov byte [ebp - 4], 0x36
mov ecx, ebx
push eax
call fcn.00402ad0
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 0x402759
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 0x40278c
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 0x4027cc
mov esi, dword [ebp - 0xb8]
test esi, esi
je 0x4027be
mov ecx, esi
call fcn.00406210
push esi
call fcn.004127b0
add esp, 4
mov dword [ebp - 0xb8], 0
push dword [ebp - 0xb4]
call fcn.004127b0
add esp, 4
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402a18
push ebx
lea ecx, [ebp - 0xc0]
call fcn.0040b920
mov byte [ebp - 4], 0x3d
mov esi, dword [ebp - 0xb0]
mov ecx, esi
push eax
call fcn.00405360
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 0x402821
push eax
call fcn.0041fb10
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.00405870
mov byte [ebp - 4], 0x40
lea ecx, [ebp - 0xa0]
push str.Browser_exist._Path_to_browser.exe:
call fcn.00404b40
mov byte [ebp - 4], 0x41
mov edx, eax
push dword [ebp - 0x98]
lea ecx, [ebp - 0xb0]
call fcn.00404c70
add esp, 4
mov byte [ebp - 4], 0x42
push dword [eax]
push 0x23
push str.YandexBrowserDownloader::YandexBrowserDownloader
call fcn.0040e8c0
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 0x4028ab
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 0x4028ce
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 0x4028eb
push eax
call fcn.0041fb10
add esp, 4
lea eax, [ebp - 0x9c]
mov ecx, esi
push eax
call fcn.0040bb40
mov byte [ebp - 4], 0x45
mov ecx, dword [ebp - 0x9c]
lea ecx, [ecx - 0x10]
call fcn.00405ab0
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.00405870
mov byte [ebp - 4], 0x48
lea ecx, [ebp - 0xa0]
push str.Browser_version_
call fcn.00404b40
mov byte [ebp - 4], 0x49
mov edx, eax
push dword [ebp - 0x98]
lea ecx, [ebp - 0xb0]
call fcn.00404c70
add esp, 4
mov byte [ebp - 4], 0x4a
push dword [eax]
push 0x24
push str.YandexBrowserDownloader::YandexBrowserDownloader
call fcn.0040e8c0
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 0x402998
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 0x4029bb
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 0x4029d8
push eax
call fcn.0041fb10
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 0x4029f5
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 0x402a18
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 0x402a39
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.0041f9e6
mov esp, ebp
pop ebp
ret