Function at 0x407c72
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 0x407d44
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 SysReAllocString
call fcn.004078f3
add esp, 0x14
test eax, eax
jne 0x407cf9
lea eax, [ebp - 0x208]
push esi
push eax
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004078f3
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 0x467104
lea eax, [ebp - 0x618]
jmp 0x407e81
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, 0x467104
push eax
mov edi, str.SOFTWAREClientsStartMenuInternet
push ebx
push edi
push SysReAllocString
call fcn.004078f3
add esp, 0x14
test eax, eax
jne 0x407d9e
lea eax, [ebp - 0x208]
push esi
push eax
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004078f3
add esp, 0x14
test eax, eax
je 0x407e1c
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 SysReAllocString
call fcn.004078f3
add esp, 0x28
test eax, eax
jne 0x407e97
lea eax, [ebp - 0x410]
push esi
push eax
lea eax, [ebp - 0x618]
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004078f3
add esp, 0x14
test eax, eax
jne 0x407e97
lea eax, [ebp - 0x208]
push esi
push eax
push ebx
push str..html
push SysReAllocString
call fcn.004078f3
add esp, 0x14
test eax, eax
je 0x407f8f
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 SysReAllocString
call fcn.004078f3
add esp, 0x24
test eax, eax
je 0x407f8f
xor ebx, ebx
cmp word [ebp - 0x410], bx
je 0x407f8f
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 0x407f1b
lea eax, [ebp - 0x40e]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_wcschr]
pop ecx
cmp eax, ebx
pop ecx
je 0x407ef0
lea ecx, [ebp - 0x40e]
sub eax, ecx
sar eax, 1
cmp eax, esi
jae 0x407eed
mov esi, eax
push esi
jmp 0x407f13
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x40e]
push eax
call edi
cmp eax, esi
pop ecx
jae 0x407f10
lea eax, [ebp - 0x40e]
push eax
call edi
pop ecx
jmp 0x407f12
mov eax, esi
push eax
lea eax, [ebp - 0x40e]
jmp 0x407f44
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x410]
push eax
call edi
cmp eax, esi
pop ecx
jae 0x407f3b
lea eax, [ebp - 0x410]
push eax
call edi
pop ecx
jmp 0x407f3d
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 0x407f8f
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407f8f
lea eax, [ebp - 0x208]
push eax
push 0x43caa8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop eax
jmp 0x407f91
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret