Function at 0x406d90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x411bd9
mov eax, dword fs:[0]
push eax
sub esp, 0xc50
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xc4c], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xc60]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x40717d
xor eax, eax
mov word [esi], ax
mov dword [esi + 0x20c], eax
mov dword [esi + 0x208], eax
mov word [esi + 0x210], ax
push 0x40e
push eax
mov dword [esi + 0x41c], eax
mov dword [esi + 0x418], eax
lea eax, [esp + 0x446]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
mov word [esp + 0x2c], ax
push 0x40e
push eax
lea eax, [esp + 0x36]
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
mov dword [esp + 0x34], 0x207
add esp, 0xc
mov word [esp + 0x43c], ax
lea eax, [esp + 0x28]
mov edx, str.SOFTWARE2345Explorer
mov ecx, 0x80000002
push eax
lea eax, [esp + 0x440]
push eax
push str.Path
call fcn.00406a70
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, al
je 0x406e9b
push 0x413408
lea eax, [esp + 0x440]
push eax
call edi
push str.2345Explorer.exe
lea eax, [esp + 0x440]
push eax
call edi
lea eax, [esp + 0x43c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x406ea5
xor eax, eax
mov word [esp + 0x43c], ax
xor eax, eax
mov dword [esp + 0x28], 0x207
mov word [esp + 0x2c], ax
mov edx, str.SOFTWARE2345chrome
lea eax, [esp + 0x28]
mov ecx, 0x80000002
push eax
lea eax, [esp + 0x30]
push eax
push str.Path
call fcn.00406a70
add esp, 0xc
test al, al
je 0x406efd
push 0x413408
lea eax, [esp + 0x30]
push eax
call edi
push str.2345chrome.exe
lea eax, [esp + 0x30]
push eax
call edi
lea eax, [esp + 0x2c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x406f04
xor eax, eax
mov word [esp + 0x2c], ax
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x854], ax
lea eax, [esp + 0x856]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [esp + 0x84c]
xor edi, edi
mov dword [esp + 0x28], edi
call fcn.00406c90
test al, al
je 0x407118
push 0xb
xor eax, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x14]
push str.Shlwapi.dll
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], ax
call fcn.004025e0
mov dword [esp + 0xc68], edi
mov eax, dword [0x417a58]
test al, 1
jne 0x406fa9
or eax, 1
mov dword [0x417a58], eax
mov byte [esp + 0xc68], 1
mov dword [0x417a54], edi
call fcn.00406100
push 0x412b40
call fcn.0040fa5f
add esp, 4
mov byte [esp + 0xc68], 0
lea eax, [esp + 0x10]
mov ecx, 0x417a54
push eax
call fcn.004062d0
mov ebx, eax
mov dword [esp + 0xc68], 0xffffffff
cmp dword [esp + 0x24], 8
jb 0x406fd9
push dword [esp + 0x10]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
test ebx, ebx
je 0x40717d
push str.StrStrIW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x40717d
push str.2345ExplorerHTML
lea eax, [esp + 0x850]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4070ec
push str.2345Explorer.exe
lea eax, [esp + 0x850]
push eax
call ebx
test eax, eax
jne 0x4070ec
push str.HTML2345CHM
lea eax, [esp + 0x850]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4070ab
push str.2345chrome.exe
lea eax, [esp + 0x850]
push eax
call ebx
test eax, eax
jne 0x4070ab
lea eax, [esp + 0x28]
mov ecx, esi
push eax
push 2
push 0
lea edx, [esp + 0x448]
call fcn.00406c30
add esp, 0xc
cmp dword [esp + 0x28], 2
jge 0x40717d
lea eax, [esp + 0x28]
mov ecx, esi
push eax
push 3
push 0
lea edx, [esp + 0x38]
call fcn.00406c30
add esp, 0xc
jmp 0x40717d
lea eax, [esp + 0x28]
mov ecx, esi
push eax
push 3
push 1
lea edx, [esp + 0x38]
call fcn.00406c30
add esp, 0xc
cmp dword [esp + 0x28], 2
jge 0x40717d
lea eax, [esp + 0x28]
mov ecx, esi
push eax
push 2
push 0
lea edx, [esp + 0x448]
call fcn.00406c30
add esp, 0xc
jmp 0x40717d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov word [esi], ax
cmp word [esp + 0x43c], ax
je 0x40714d
lea eax, [esp + 0x43c]
push eax
push esi
call ebx
mov dword [esi + 0x208], 1
jmp 0x40713e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov word [esi], ax
cmp word [esp + 0x43c], ax
je 0x40714d
lea eax, [esp + 0x43c]
push eax
push esi
call ebx
mov dword [esi + 0x208], edi
mov dword [esi + 0x20c], 2
mov edi, 1
imul eax, edi, 0x210
add esi, eax
xor eax, eax
mov word [esi], ax
cmp word [esp + 0x2c], ax
je 0x40717d
lea eax, [esp + 0x2c]
push eax
push esi
call ebx
mov dword [esi + 0x208], 0
mov dword [esi + 0x20c], 3
mov ecx, dword [esp + 0xc60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc4c]
xor ecx, esp
call fcn.0040f90e
add esp, 0xc5c
ret