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

Disassembly:
push ebp
lea ebp, [esp - 0x7d0]
sub esp, 0x850
mov eax, dword [0x411034]
xor eax, ebp
mov dword [ebp + 0x7cc], eax
push ebx
xor ebx, ebx
cmp dword [ebp + 0x7dc], ebx
jne 0x403af7
xor al, al
jmp 0x403c9c
mov eax, dword [ebp + 0x7d8]
mov eax, dword [eax]
cmp eax, ebx
je 0x403b0b
cmp byte [eax + 0x1038], bl
je 0x403af0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.COMCTL32.DLL
mov dword [ebp - 0x44], 8
mov dword [ebp - 0x40], 0xff
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitCommonControlsEx
push eax
mov dword [ebp - 0x38], eax
call edi
cmp eax, ebx
je 0x403b43
lea ecx, [ebp - 0x44]
push ecx
call eax
push str.User32.dll
call esi
push str.MessageBoxW
push eax
mov dword [ebp - 0x3c], eax
call edi
mov esi, eax
cmp esi, ebx
je 0x403b8a
call dword [sym.imp.KERNEL32.dll_GetACP]
cmp eax, 0x3a8
je 0x403b7c
cmp eax, 0xd698
je 0x403b7c
push ebx
push str.HaoZip
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 0x403b87
push ebx
push str.2345
push 0x40edc0
push ebx
call esi
push 0x7fe
lea eax, [ebp - 0x32]
push ebx
push eax
mov word [ebp - 0x34], bx
call fcn.00404fe0
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add esp, 0xc
mov ebx, 0x3fe
push ebx
lea eax, [ebp - 0x34]
push eax
push str._programfiles_Internet_Exploreriexplore.exe
call esi
dec eax
lea edi, [ebx - 1]
cmp eax, edi
ja 0x403bd2
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403bd2
test al, 0x10
je 0x403c19
push ebx
lea eax, [ebp - 0x34]
push eax
push str._programfiles_x86__Internet_Exploreriexplore.exe
call esi
dec eax
cmp eax, edi
ja 0x403bf6
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403bf6
test al, 0x10
je 0x403c19
cmp dword [ebp - 0x3c], 0
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x403c07
push dword [ebp - 0x3c]
call esi
cmp dword [ebp - 0x38], 0
je 0x403c12
push dword [ebp - 0x38]
call esi
xor al, al
jmp 0x403c9a
push 0x38
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00404fe0
add esp, 0xc
lea eax, [ebp - 0x34]
push str.Shell32.dll
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], str.http:__www.haozip.com
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
cmp edi, esi
je 0x403c84
push str.ShellExecuteExW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x403c81
lea ecx, [ebp - 0x80]
push ecx
call eax
push edi
call ebx
cmp dword [ebp - 0x3c], esi
je 0x403c8e
push dword [ebp - 0x3c]
call ebx
cmp dword [ebp - 0x38], esi
je 0x403c98
push dword [ebp - 0x38]
call ebx
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp + 0x7cc]
xor ecx, ebp
pop ebx
call fcn.00404335
add ebp, 0x7d0
leave
ret 8