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

Disassembly:
push ebp
lea ebp, [esp - 0xa6c]
sub esp, 0xa6c
push 0xffffffffffffffff
push 0x4c6e20
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4f5038]
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 ebx, ecx
mov eax, dword [ebp + 0xa74]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x47dfd3
mov edi, dword [ebx]
mov dword [ebp + 0x5c], 0
mov dword [ebp + 0x5c], edi
test edi, edi
je 0x47dfa5
mov eax, dword [edi]
test eax, eax
je 0x47dfa5
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [ebx]
cmp byte [eax + 0x48], 0
jne 0x47dfda
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x47dfd3
mov eax, dword [edi]
test eax, eax
je 0x47dfcc
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 0x5c], 0
xor al, al
jmp 0x47e306
push str.COMCTL32.DLL
mov dword [ebp + 0x54], 8
mov dword [ebp + 0x58], 0xff
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitCommonControlsEx
push eax
call esi
test eax, eax
je 0x47e00b
lea ecx, [ebp + 0x54]
push ecx
call eax
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.MessageBoxW
push eax
call esi
mov dword [ebp - 0x20], eax
test eax, eax
je 0x47e16d
mov esi, dword [ebx]
lea ecx, [esi + 0x64]
call fcn.00403350
test al, al
jne 0x47e16d
lea ecx, [esi + 0x4c]
call fcn.00403350
test al, al
jne 0x47e16d
lea eax, [esi + 0x64]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00403500
mov byte [ebp - 4], 1
push 0x4db1c8
call fcn.00403830
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 0x3c]
call fcn.00403630
mov esi, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
sub ecx, edx
cmp eax, ecx
ja 0x47e0cb
cmp dword [esi + 0x14], 8
lea ecx, [edx + eax]
mov dword [ebp - 0x10], ecx
mov dword [esi + 0x10], ecx
mov ecx, esi
mov dword [ebp - 0x14], esi
jb 0x47e09d
mov ecx, dword [esi]
mov dword [ebp - 0x14], ecx
push eax
lea eax, [ecx + edx*2]
push 0x4db1c8
push eax
call fcn.00403a60
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
lea eax, [eax + ecx*2]
push eax
call fcn.00403a50
add esp, 0x14
jmp 0x47e0e1
push eax
push 0x4db1c8
mov byte [ebp - 0x10], 0
lea ecx, [ebp + 0x3c]
push dword [ebp - 0x10]
push eax
call fcn.00403e10
push dword [ebp - 0x18]
call fcn.00403830
mov ecx, dword [esi + 0x14]
add esp, 4
mov edx, dword [esi + 0x10]
sub ecx, edx
cmp eax, ecx
ja 0x47e132
cmp dword [esi + 0x14], 8
lea ecx, [edx + eax]
mov dword [ebp - 0x1c], ecx
mov dword [esi + 0x10], ecx
jb 0x47e109
mov esi, dword [esi]
push eax
push dword [ebp - 0x18]
lea eax, [esi + edx*2]
push eax
call fcn.00403a60
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
mov eax, dword [ebp - 0x1c]
lea eax, [esi + eax*2]
push eax
call fcn.00403a50
add esp, 0x14
jmp 0x47e146
push eax
push dword [ebp - 0x18]
mov byte [ebp - 0x10], 0
lea ecx, [ebp + 0x3c]
push dword [ebp - 0x10]
push eax
call fcn.00403e10
mov ecx, dword [ebx]
push 0
add ecx, 0x4c
call fcn.00403360
push eax
lea ecx, [ebp + 0x3c]
call fcn.00403360
push eax
push 0
call dword [ebp - 0x20]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x3c]
call fcn.00403400
push 0x208
lea eax, [ebp + 0x860]
push 0
push eax
call fcn.00496fd0
mov eax, dword [ebx]
add esp, 0xc
mov dword [ebp - 0x20], eax
lea ecx, [eax + 0x7c]
call fcn.00403360
mov ebx, eax
lea edx, [ebp + 0x860]
mov eax, edx
mov esi, 0x103
sub ebx, eax
lea ecx, [esi + 0x7ffffefb]
test ecx, ecx
je 0x47e1bf
movzx eax, word [ebx + edx]
test ax, ax
je 0x47e1bf
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x47e1a1
test esi, esi
lea eax, [edx - 2]
cmovne eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [ebp + 0x860], cx
je 0x47e2e5
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x94], cl
je 0x47e1fd
lea ecx, [ebp + 0x860]
call fcn.0048aa30
xor eax, eax
mov word [ebp + 0x860], ax
jmp 0x47e2e5
push 0x800
lea eax, [ebp + 0x60]
push 0
push eax
call fcn.00496fd0
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 esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
dec eax
cmp eax, 0x3fd
ja 0x47e243
lea eax, [ebp + 0x60]
push eax
call esi
cmp eax, 0xffffffff
je 0x47e243
test al, 0x10
je 0x47e26e
push 0x3fe
lea eax, [ebp + 0x60]
push eax
push str._programfiles_x86__Internet_Exploreriexplore.exe
call ebx
dec eax
cmp eax, 0x3fd
ja 0x47e2e5
lea eax, [ebp + 0x60]
push eax
call esi
cmp eax, 0xffffffff
je 0x47e2e5
test al, 0x10
jne 0x47e2e5
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 0x47e2e5
push str.ShellExecuteExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47e2e5
lea ecx, [ebp]
push ecx
call eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x47e304
mov eax, dword [edi]
test eax, eax
je 0x47e2fd
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 0x5c], 0
mov al, 1
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.004947ff
lea esp, [ebp + 0xa6c]
pop ebp
ret 4