Function at 0x407ac0
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 0x407b92
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.00407741
add esp, 0x14
test eax, eax
jne 0x407b47
lea eax, [ebp - 0x208]
push esi
push eax
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00407741
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 0x466054
lea eax, [ebp - 0x618]
jmp 0x407ccf
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, 0x466054
push eax
mov edi, str.SOFTWAREClientsStartMenuInternet
push ebx
push edi
push SysReAllocString
call fcn.00407741
add esp, 0x14
test eax, eax
jne 0x407bec
lea eax, [ebp - 0x208]
push esi
push eax
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00407741
add esp, 0x14
test eax, eax
je 0x407c6a
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.00407741
add esp, 0x28
test eax, eax
jne 0x407ce5
lea eax, [ebp - 0x410]
push esi
push eax
lea eax, [ebp - 0x618]
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00407741
add esp, 0x14
test eax, eax
jne 0x407ce5
lea eax, [ebp - 0x208]
push esi
push eax
push ebx
push str..html
push SysReAllocString
call fcn.00407741
add esp, 0x14
test eax, eax
je 0x407ddd
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.00407741
add esp, 0x24
test eax, eax
je 0x407ddd
xor ebx, ebx
cmp word [ebp - 0x410], bx
je 0x407ddd
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 0x407d69
lea eax, [ebp - 0x40e]
push 0x22
push eax
call dword [sym.imp.MSVCRT.dll_wcschr]
pop ecx
cmp eax, ebx
pop ecx
je 0x407d3e
lea ecx, [ebp - 0x40e]
sub eax, ecx
sar eax, 1
cmp eax, esi
jae 0x407d3b
mov esi, eax
push esi
jmp 0x407d61
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x40e]
push eax
call edi
cmp eax, esi
pop ecx
jae 0x407d5e
lea eax, [ebp - 0x40e]
push eax
call edi
pop ecx
jmp 0x407d60
mov eax, esi
push eax
lea eax, [ebp - 0x40e]
jmp 0x407d92
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x410]
push eax
call edi
cmp eax, esi
pop ecx
jae 0x407d89
lea eax, [ebp - 0x410]
push eax
call edi
pop ecx
jmp 0x407d8b
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 0x407ddd
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407ddd
lea eax, [ebp - 0x208]
push eax
push 0x43baa0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop eax
jmp 0x407ddf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret