Function at 0x4016a3
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes
Shutdown system

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4e38
call fcn.00406ff0
lea eax, [ebp - 0x73c]
mov dword [ebp - 0x34], 0x4026d1
push ebx
push esi
push edi
mov edi, 0x104
xor ebx, ebx
push edi
xor esi, esi
push eax
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], 0x4026e1
mov dword [ebp - 0x5c], 0x4026d1
mov dword [ebp - 0x58], 0x4026e1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
je 0x401e03
cmp eax, edi
ja 0x401e03
lea edx, [ebp - 0x73c]
lea ecx, [ebp - 0x4c]
call fcn.00404aa0
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x401747
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00402035
test eax, eax
jne 0x401734
mov esi, str.Cant_find_7z_archive
mov dword [ebp - 0x1c], esi
jmp 0x40174e
push ebx
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x4c]
call fcn.00404bdf
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x401762
mov dword [ebp - 4], 0xb
cmp esi, ebx
je 0x401759
mov dword [ebp - 4], 0xb
cmp dword [ebp - 4], ebx
jne 0x401cd9
cmp dword [0x40a4c4], ebx
mov esi, 0x40a05c
jne 0x40177f
push edi
push esi
push 0x6f
push dword [0x40a4c8]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea ecx, [ebp - 0x54]
call fcn.00404c59
xor edx, edx
lea ecx, [ebp - 0x4e38]
call fcn.004053a5
mov eax, dword [0x40a05c]
xor edx, edx
push 1
cmp ax, bx
pop edi
je 0x4017bb
mov ecx, 0x40a05e
cmp ax, 0x20
je 0x4017b0
mov edx, edi
mov ax, word [ecx]
inc edi
inc ecx
inc ecx
cmp ax, bx
jne 0x4017a8
mov ecx, esi
mov word [edx*2 + 0x40a05c], bx
call fcn.00401377
call fcn.00401e75
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4017dd
mov dword [ebp - 4], 0x80004005
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10c]
call fcn.00402709
cmp dword [ebp - 4], ebx
jne 0x401cbb
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x4e38]
mov dword [ebp - 0x4e28], eax
call fcn.004054bf
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x4e38]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x10c]
call fcn.00402cbd
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x401cbb
or dword [ebp - 0x24], 0xffffffff
cmp dword [0x40a4c4], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x60], ebx
mov dword [0x40a4cc], ebx
jne 0x40187e
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [0x40a058]
call edi
push 5
push dword [0x40a4bc]
call edi
push dword [ebp - 0xcc]
push ebx
push 0x406
push dword [0x40a058]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0xcc], ebx
mov dword [ebp - 8], ebx
jbe 0x401c4c
cmp dword [0x40a4c4], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x18], ebx
jne 0x401913
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 1
push ebx
push ebx
lea eax, [ebp - 0x8c]
push ebx
push eax
call edi
test eax, eax
je 0x4018fe
lea eax, [ebp - 0x8c]
push eax
push dword [0x40a4c8]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4018e4
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [0x40a4c8], ebx
push 1
je 0x401e05
push ebx
push ebx
lea eax, [ebp - 0x8c]
push ebx
push eax
jmp 0x4018ad
push ebx
push dword [ebp - 8]
push 0x402
push dword [0x40a058]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 8]
push ebx
lea ecx, [ebp - 0x10c]
call fcn.004047d0
cmp eax, 0x104
jae 0x401c31
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x10c]
lea edi, [eax*2 + 0x40a05c]
push edi
call fcn.004047d0
cmp dword [0x40a4c4], ebx
jne 0x40195b
push edi
push dword [0x40a4bc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x4e38]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10c]
push dword [ebp - 8]
call fcn.00404666
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x401c4c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], ebx
cmp word [eax*2 + 0x40a05c], bx
lea eax, [eax*2 + 0x40a05c]
je 0x4019d7
mov eax, dword [ebp - 0x14]
lea edi, [eax*2 + 0x40a05c]
mov eax, edi
cmp word [eax], 0x2f
jne 0x4019ce
mov ecx, esi
mov word [edi], bx
call fcn.00401e5e
mov word [edi], 0x5c
inc edi
inc edi
mov eax, edi
cmp word [edi], bx
jne 0x4019b9
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc4]
and ecx, 7
mov eax, 0x80
sar eax, cl
mov ecx, dword [ebp - 8]
shr ecx, 3
mov dword [ebp - 0x38], ecx
test byte [ecx + edx], al
mov dword [ebp - 0x48], eax
je 0x401a07
mov ecx, esi
call fcn.00401e5e
jmp 0x401c1e
lea eax, [ebp - 0x530]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
cmp dword [ebp - 0xc], ebx
je 0x401a70
cmp dword [ebp - 0xc], 0x64
ja 0x401c31
lea eax, [ebp - 0x530]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
push str..tmp
push esi
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x10
cmp dword [ebp - 0xc], 1
jbe 0x401a60
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
lea edx, [eax*2 + 0x40a05c]
mov ecx, dword [ebp - 0xc]
call fcn.0040212a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401b44
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.00404aef
mov edi, eax
cmp edi, ebx
je 0x401b4c
cmp dword [ebp - 0xc], ebx
jne 0x401b44
mov eax, dword [ebp - 0x14]
mov edx, 0x4087b8
lea ecx, [eax*2 + 0x40a05c]
call fcn.004013db
test eax, eax
jne 0x401b44
cmp dword [0x40a4c4], ebx
jne 0x401b38
lea eax, [ebp - 0xe1c]
push 0x408794
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [ebp - 0xe1c]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0xe1c]
push 0x408790
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0xe1c]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x1c
lea edx, [ebp + eax*2 - 0xe1c]
mov ecx, edi
call fcn.00402695
lea eax, [ebp - 0xe1c]
push 0x212
push str.Error
push eax
push dword [0x40a4c8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 3
je 0x401c3a
cmp eax, 5
jne 0x401a17
mov dword [ebp - 0xc], 1
jmp 0x401a17
inc dword [ebp - 0xc]
jmp 0x401a17
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x44]
lea edx, [eax + ecx]
lea ecx, [ebp - 0x20]
call fcn.00404b7d
mov dword [ebp - 0x10], eax
cmp eax, ebx
mov eax, dword [ebp - 0x18]
jne 0x401b76
cmp dword [ebp - 0x3c], eax
je 0x401b84
mov dword [ebp - 0x1c], str.Cant_write_output_file
mov dword [ebp - 4], 0xb
add dword [0x40a4cc], eax
mov eax, dword [ebp - 0xb0]
cmp eax, ebx
je 0x401bc5
mov edx, dword [ebp - 0x38]
mov cl, byte [ebp - 0x48]
test byte [edx + eax], cl
je 0x401bc5
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx*8]
mov ecx, dword [eax]
mov dword [ebp - 0x68], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea ecx, [ebp - 0x20]
call fcn.00404af7
cmp dword [ebp - 4], ebx
jne 0x401c4c
cmp eax, ebx
jne 0x401c49
mov eax, dword [ebp - 0xb8]
cmp eax, ebx
je 0x401bfe
mov edx, dword [ebp - 0x38]
mov cl, byte [ebp - 0x48]
test byte [edx + eax], cl
je 0x401bfe
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 8]
push dword [eax + ecx*4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0xc], ebx
je 0x401c1e
lea eax, [ebp - 0x530]
push 5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x401c43
mov dword [ebp - 0x40], 1
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xcc]
jae 0x401c4c
jmp 0x40188d
mov dword [ebp - 4], 0xb
jmp 0x401c4c
mov dword [ebp - 4], 0x64
jmp 0x401c4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x34]
call dword [ebp - 0x30]
cmp dword [0x40a4c4], ebx
jne 0x401c72
push ebx
push dword [ebp - 8]
push 0x402
push dword [0x40a058]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
mov word [eax*2 + 0x40a05c], bx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xcc]
jne 0x401cbb
call fcn.00402177
call fcn.004023cb
call fcn.00402495
mov ecx, dword [0x40a4c8]
call fcn.00402224
cmp dword [0x40a4c4], ebx
jne 0x401cbb
push str.7_Zip_16.04_is_installed
push dword [0x40a4bc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x10c]
call fcn.0040276b
lea ecx, [ebp - 0x4c]
call fcn.00404af7
mov esi, dword [ebp - 0x1c]
mov edi, 0x104
cmp dword [ebp - 0x10], ebx
je 0x401ce5
mov dword [ebp - 4], 0xb
cmp dword [ebp - 4], ebx
jne 0x401d76
cmp dword [0x40a4c4], ebx
jne 0x401d6f
cmp dword [ebp - 0x40], ebx
je 0x401d6f
push edi
push dword [0x40a01c]
push str.You_must_restart_your_system_to_complete_the_installation._nRestart_now_
push dword [0x40a4c8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x401d6f
lea eax, [ebp - 0x24]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401d6f
lea eax, [ebp - 0x6c]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 1
push 2
pop esi
push ebx
push ebx
push ebx
push eax
push ebx
mov dword [ebp - 0x64], esi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401d6f
push ebx
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
jmp 0x401e06
cmp dword [0x40a4c4], ebx
jne 0x401e03
cmp dword [ebp - 0x10], ebx
je 0x401db9
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x3dc]
mov word [ebp - 0x3dc], bx
call fcn.00402695
lea eax, [ebp - 0x3dc]
push 0x10
push dword [0x40a018]
push eax
push dword [0x40a4c8]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x401e03
mov eax, dword [ebp - 4]
cmp eax, 0x64
jne 0x401dc5
push 2
jmp 0x401e05
cmp eax, 4
jne 0x401dd1
mov esi, str.Decoder_doesnt_support_this_archive
jmp 0x401df3
cmp eax, 2
jne 0x401ddd
mov esi, str.Cant_allocate_required_memory
jmp 0x401df3
cmp eax, 3
jne 0x401de9
mov esi, str.CRC_error
jmp 0x401df3
cmp eax, 1
jne 0x401df3
mov esi, str.Data_error
cmp esi, ebx
jne 0x401dfc
mov esi, str.ERROR
mov ecx, esi
call fcn.00401e0b
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret