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

Disassembly:
push ebp
lea ebp, [esp - 0xa6c]
sub esp, 0xa6c
push 0xffffffffffffffff
push 0x5c8615
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x671580]
xor eax, ebp
mov dword [ebp + 0xa68], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xa74]
test ebx, ebx
je 0x45032e
mov esi, dword [edi]
mov dword [ebp + 0x5c], 0
mov dword [ebp + 0x5c], esi
test esi, esi
je 0x450300
mov eax, dword [esi]
test eax, eax
je 0x450300
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [edi]
cmp byte [eax + 0x48], 0
jne 0x450355
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45032e
mov eax, dword [esi]
test eax, eax
je 0x450327
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 0x5c], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa68]
xor ecx, ebp
call fcn.004c4309
lea esp, [ebp + 0xa6c]
pop ebp
ret 4
push str.COMCTL32.DLL
mov dword [ebp + 0x54], 8
mov dword [ebp + 0x58], 0xff
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.InitCommonControlsEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x450384
lea ecx, [ebp + 0x54]
push ecx
call eax
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x655ae8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x450403
mov eax, dword [edi]
cmp dword [eax + 0x74], 0
je 0x450403
cmp dword [eax + 0x5c], 0
je 0x450403
add eax, 0x64
lea ecx, [ebp + 0x3c]
push eax
call fcn.0044de10
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x3c]
push 0x655af4
call fcn.0044dce0
push ebx
lea ecx, [ebp + 0x3c]
call fcn.0044dce0
mov ecx, dword [edi]
add ecx, 0x4c
cmp dword [ecx + 0x14], 7
jbe 0x4503e3
mov ecx, dword [ecx]
cmp dword [ebp + 0x50], 7
lea eax, [ebp + 0x3c]
push 0
cmova eax, dword [ebp + 0x3c]
push ecx
push eax
push 0
call dword [ebp - 0x10]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x3c]
call fcn.0044dd70
push 0x208
lea eax, [ebp + 0x860]
push 0
push eax
call fcn.004cf790
mov eax, dword [edi]
add esp, 0xc
add eax, 0x7c
cmp dword [eax + 0x14], 7
jbe 0x450426
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x860]
call fcn.0044e9d0
cmp word [ebp + 0x860], 0
je 0x45054c
mov eax, dword [edi]
cmp byte [eax + 0x94], 0
je 0x450464
lea ecx, [ebp + 0x860]
call fcn.004548a0
xor eax, eax
mov word [ebp + 0x860], ax
jmp 0x45054c
push 0x800
lea eax, [ebp + 0x60]
push 0
push eax
call fcn.004cf790
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x60]
add esp, 0xc
push 0x3fe
push eax
push str._programfiles_Internet_Exploreriexplore.exe
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
dec eax
cmp eax, 0x3fd
ja 0x4504aa
lea eax, [ebp + 0x60]
push eax
call edi
cmp eax, 0xffffffff
je 0x4504aa
test al, 0x10
je 0x4504d5
push 0x3fe
lea eax, [ebp + 0x60]
push eax
push str._programfiles_x86__Internet_Exploreriexplore.exe
call ebx
dec eax
cmp eax, 0x3fd
ja 0x45054c
lea eax, [ebp + 0x60]
push eax
call edi
cmp eax, 0xffffffff
je 0x45054c
test al, 0x10
jne 0x45054c
lea eax, [ebp + 0x60]
mov dword [ebp], 0x3c
xorps xmm0, xmm0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x860]
movlpd qword [ebp + 0x20], xmm0
push str.Shell32.dll
movlpd qword [ebp + 0x28], xmm0
movlpd qword [ebp + 0x30], xmm0
mov dword [ebp + 4], 0
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 1
mov dword [ebp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x45054c
push 0x655bd4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45054c
lea ecx, [ebp]
push ecx
call eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45056b
mov eax, dword [esi]
test eax, eax
je 0x450564
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 0x5c], 0
mov al, 1
jmp 0x450330