Function at 0x405570
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x411886
mov eax, dword fs:[0]
push eax
sub esp, 0xa70
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xa84]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0xa94]
test edi, edi
je 0x4055f2
push dword [esi]
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], 0
call fcn.004020e0
mov dword [esp + 0xa8c], 0
mov eax, dword [esi]
cmp byte [eax + 0x48], 0
jne 0x4055f9
mov dword [esp + 0xa8c], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.00402110
xor al, al
jmp 0x405864
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.COMCTL32.DLL
mov dword [esp + 0x70], 8
mov dword [esp + 0x74], 0xff
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitCommonControlsEx
push eax
call ebx
test eax, eax
je 0x40562f
lea ecx, [esp + 0x6c]
push ecx
call eax
push str.User32.dll
call ebp
push str.MessageBoxW
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x4056e1
mov eax, dword [esi]
cmp dword [eax + 0x74], 0
je 0x4056e1
cmp dword [eax + 0x5c], 0
je 0x4056e1
add eax, 0x64
lea ecx, [esp + 0x54]
push eax
call fcn.00402130
mov byte [esp + 0xa8c], 1
lea ecx, [esp + 0x54]
push 0x413718
call fcn.00402280
push edi
lea ecx, [esp + 0x58]
call fcn.00402280
mov ecx, dword [esi]
add ecx, 0x4c
cmp dword [ecx + 0x14], 8
jb 0x405698
mov ecx, dword [ecx]
cmp dword [esp + 0x68], 8
lea eax, [esp + 0x54]
push 0
cmovae eax, dword [esp + 0x58]
push ecx
push eax
push 0
call ebp
mov byte [esp + 0xa8c], 0
cmp dword [esp + 0x68], 8
jb 0x4056ca
push dword [esp + 0x54]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
xor eax, eax
push 0x206
push eax
mov word [esp + 0x7c], ax
lea eax, [esp + 0x7e]
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [esi]
add esp, 0xc
add eax, 0x7c
cmp dword [eax + 0x14], 8
jb 0x405708
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x78]
call fcn.00403140
cmp word [esp + 0x74], 0
je 0x40584e
mov eax, dword [esi]
cmp byte [eax + 0x94], 0
je 0x40573e
lea ecx, [esp + 0x74]
call fcn.004071b0
xor eax, eax
mov word [esp + 0x74], ax
jmp 0x40584e
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x284], ax
lea eax, [esp + 0x286]
push eax
call sub.MSVCR120.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x288]
add esp, 0xc
push 0x3fe
push eax
push str._programfiles_Internet_Exploreriexplore.exe
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
dec eax
cmp eax, 0x3fd
ja 0x405799
lea eax, [esp + 0x27c]
push eax
call esi
cmp eax, 0xffffffff
je 0x405799
test al, 0x10
je 0x4057d0
push 0x3fe
lea eax, [esp + 0x280]
push eax
push str._programfiles_x86__Internet_Exploreriexplore.exe
call edi
dec eax
cmp eax, 0x3fd
ja 0x40584e
lea eax, [esp + 0x27c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40584e
test al, 0x10
jne 0x40584e
push 0x38
lea eax, [esp + 0x1c]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x14], 0x3c
lea eax, [esp + 0x27c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x1c], 0
push str.Shell32.dll
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 1
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40584e
push str.ShellExecuteExW
push eax
call ebx
test eax, eax
je 0x40584e
lea ecx, [esp + 0x14]
push ecx
call eax
mov dword [esp + 0xa8c], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.00402110
mov al, 1
mov ecx, dword [esp + 0xa84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa68]
xor ecx, esp
call fcn.0040f90e
add esp, 0xa7c
ret 4