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

Disassembly:
sub esp, 0x850
mov eax, dword [0x40f384]
xor eax, esp
mov dword [esp + 0x84c], eax
push ebx
xor ebx, ebx
cmp dword [esp + 0x85c], ebx
jne 0x40551a
xor al, al
pop ebx
mov ecx, dword [esp + 0x84c]
xor ecx, esp
call fcn.00409ed0
add esp, 0x850
ret 8
mov eax, dword [esp + 0x858]
mov eax, dword [eax]
cmp eax, ebx
je 0x40552f
cmp byte [eax + 0x1038], bl
je 0x405500
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push str.COMCTL32.DLL
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 0xff
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitCommonControlsEx
push eax
mov dword [esp + 0x18], eax
call esi
cmp eax, ebx
je 0x40556b
lea ecx, [esp + 0x14]
push ecx
call eax
push str.User32.dll
call ebp
push str.MessageBoxW
push eax
mov dword [esp + 0x14], eax
call esi
mov esi, eax
cmp esi, ebx
je 0x4055b3
call dword [sym.imp.KERNEL32.dll_GetACP]
cmp eax, 0x3a8
je 0x4055a5
cmp eax, 0xd698
je 0x4055a5
push ebx
push 0x40c618
push str.The_HaoZip_program_files_may_be_damaged._nPlease_press__OK__goto_the_Official_Website_n_http:__www.haozip.com___download_the_lastest_version_and_reinstall.
jmp 0x4055b0
push ebx
push 0x40cbac
push 0x40cbc0
push ebx
call esi
push edi
push 0x7fe
lea edx, [esp + 0x62]
push ebx
push edx
mov word [esp + 0x68], bx
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add esp, 0xc
push 0x3fe
lea eax, [esp + 0x60]
push eax
push str._programfiles_Internet_Exploreriexplore.exe
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add eax, 0xffffffff
cmp eax, 0x3fd
ja 0x405603
lea ecx, [esp + 0x5c]
push ecx
call edi
cmp eax, 0xffffffff
je 0x405603
test al, 0x10
je 0x405651
push 0x3fe
lea edx, [esp + 0x60]
push edx
push str._programfiles_x86__Internet_Exploreriexplore.exe
call esi
add eax, 0xffffffff
cmp eax, 0x3fd
ja 0x40562e
lea eax, [esp + 0x5c]
push eax
call edi
cmp eax, 0xffffffff
je 0x40562e
test al, 0x10
je 0x405651
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x40563f
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40564a
push eax
call esi
xor al, al
jmp 0x4056da
push 0x38
lea ecx, [esp + 0x28]
push ebx
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x5c]
push str.Shell32.dll
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], str.http:__www.haozip.com
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 1
mov dword [esp + 0x5c], ebx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
cmp esi, ebx
je 0x4056c2
push str.ShellExecuteExW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4056bf
lea ecx, [esp + 0x20]
push ecx
call eax
push esi
call edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4056cd
push eax
call edi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4056d8
push eax
call edi
mov al, 1
mov ecx, dword [esp + 0x85c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409ed0
add esp, 0x850
ret 8