Function at 0x40771a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push ebx
push esi
mov edx, 0x81
push edi
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
cmp dword [ebp + 8], esi
mov word [ebp - 0x410], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x4077ec
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x103
lea eax, [ebp - 0x208]
push esi
mov ebx, str.Progid
push eax
mov edi, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push ebx
push edi
push SysReAllocStringLen
call fcn.0040739b
add esp, 0x14
test eax, eax
jne 0x4077a1
lea eax, [ebp - 0x208]
push esi
push eax
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040739b
add esp, 0x14
and word [ebp - 0x618], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x616]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push str._s_shellopencommand
lea eax, [ebp - 0x618]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x410]
push esi
push eax
push 0x444224
lea eax, [ebp - 0x618]
jmp 0x407929
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x103
lea eax, [ebp - 0x208]
push esi
mov ebx, 0x444224
push eax
mov edi, str.SOFTWAREClientsStartMenuInternet
push ebx
push edi
push SysReAllocStringLen
call fcn.0040739b
add esp, 0x14
test eax, eax
jne 0x407846
lea eax, [ebp - 0x208]
push esi
push eax
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040739b
add esp, 0x14
test eax, eax
je 0x4078c4
and word [ebp - 0x618], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x616]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push str.SOFTWAREClientsStartMenuInternet
push str._s_s_shellopencommand
lea eax, [ebp - 0x618]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x410]
push esi
push eax
lea eax, [ebp - 0x618]
push ebx
push eax
push SysReAllocStringLen
call fcn.0040739b
add esp, 0x28
test eax, eax
jne 0x40793f
lea eax, [ebp - 0x410]
push esi
push eax
lea eax, [ebp - 0x618]
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040739b
add esp, 0x14
test eax, eax
jne 0x40793f
lea eax, [ebp - 0x208]
push esi
push eax
push ebx
push str..html
push SysReAllocStringLen
call fcn.0040739b
add esp, 0x14
test eax, eax
je 0x407a37
and word [ebp - 0x618], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x616]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push str._s_shellopencommand
lea eax, [ebp - 0x618]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x410]
push esi
push eax
push ebx
lea eax, [ebp - 0x618]
push eax
push SysReAllocStringLen
call fcn.0040739b
add esp, 0x24
test eax, eax
je 0x407a37
xor ebx, ebx
cmp word [ebp - 0x410], bx
je 0x407a37
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
cmp word [ebp - 0x410], 0x22
mov word [ebp - 0x208], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x4079c3
lea eax, [ebp - 0x40e]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_wcschr]
pop ecx
cmp eax, ebx
pop ecx
je 0x407998
lea ecx, [ebp - 0x40e]
sub eax, ecx
sar eax, 1
cmp eax, esi
jae 0x407995
mov esi, eax
push esi
jmp 0x4079bb
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x40e]
push eax
call edi
cmp eax, esi
pop ecx
jae 0x4079b8
lea eax, [ebp - 0x40e]
push eax
call edi
pop ecx
jmp 0x4079ba
mov eax, esi
push eax
lea eax, [ebp - 0x40e]
jmp 0x4079ec
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x410]
push eax
call edi
cmp eax, esi
pop ecx
jae 0x4079e3
lea eax, [ebp - 0x410]
push eax
call edi
pop ecx
jmp 0x4079e5
mov eax, esi
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
cmp word [ebp - 0x208], bx
je 0x407a37
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407a37
lea eax, [ebp - 0x208]
push eax
push 0x43bb18
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop eax
jmp 0x407a39
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret