Function at 0x407bb0
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 0x407c82
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.00407831
add esp, 0x14
test eax, eax
jne 0x407c37
lea eax, [ebp - 0x208]
push esi
push eax
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00407831
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 0x467084
lea eax, [ebp - 0x618]
jmp 0x407dbf
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, 0x467084
push eax
mov edi, str.SOFTWAREClientsStartMenuInternet
push ebx
push edi
push SysReAllocString
call fcn.00407831
add esp, 0x14
test eax, eax
jne 0x407cdc
lea eax, [ebp - 0x208]
push esi
push eax
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00407831
add esp, 0x14
test eax, eax
je 0x407d5a
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.00407831
add esp, 0x28
test eax, eax
jne 0x407dd5
lea eax, [ebp - 0x410]
push esi
push eax
lea eax, [ebp - 0x618]
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00407831
add esp, 0x14
test eax, eax
jne 0x407dd5
lea eax, [ebp - 0x208]
push esi
push eax
push ebx
push str..html
push SysReAllocString
call fcn.00407831
add esp, 0x14
test eax, eax
je 0x407ecd
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.00407831
add esp, 0x24
test eax, eax
je 0x407ecd
xor ebx, ebx
cmp word [ebp - 0x410], bx
je 0x407ecd
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 0x407e59
lea eax, [ebp - 0x40e]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_wcschr]
pop ecx
cmp eax, ebx
pop ecx
je 0x407e2e
lea ecx, [ebp - 0x40e]
sub eax, ecx
sar eax, 1
cmp eax, esi
jae 0x407e2b
mov esi, eax
push esi
jmp 0x407e51
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x40e]
push eax
call edi
cmp eax, esi
pop ecx
jae 0x407e4e
lea eax, [ebp - 0x40e]
push eax
call edi
pop ecx
jmp 0x407e50
mov eax, esi
push eax
lea eax, [ebp - 0x40e]
jmp 0x407e82
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x410]
push eax
call edi
cmp eax, esi
pop ecx
jae 0x407e79
lea eax, [ebp - 0x410]
push eax
call edi
pop ecx
jmp 0x407e7b
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 0x407ecd
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407ecd
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 0x407ecf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret