Function at 0x403212
Capabilities:
Accept command line arguments
Copy file
Create directory
Delete file
Get common file path
Get file system object information
Set current directory
Set environment variable
Shutdown system
Terminate process

Disassembly:
sub esp, 0x2d8
push ebx
push ebp
push esi
push edi
push 0x20
xor ebp, ebp
pop esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [esp + 0x14], ebp
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
call dword [sym.imp.ole32.dll_OleInitialize]
push 9
mov dword [0x7a7ab8], eax
call fcn.00406152
mov dword [0x7a7a04], eax
push ebp
lea eax, [esp + 0x38]
push 0x2b4
push eax
push ebp
push 0x79eea8
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push str.NSIS_Error
push 0x7a6a00
call fcn.00405de8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, 0x7b2000
push eax
push ebx
call fcn.00405de8
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x22
mov dword [0x7a7a00], eax
pop edi
mov eax, ebx
cmp word [0x7b2000], di
jne 0x4032b3
mov esi, edi
mov eax, 0x7b2002
push esi
push eax
call fcn.00405860
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
mov dword [esp + 0x1c], ecx
jmp 0x4033c2
push 0x20
pop edx
cmp ax, dx
jne 0x4032db
inc ecx
inc ecx
cmp word [ecx], dx
je 0x4032d4
cmp word [ecx], di
mov dword [esp + 0x20], edx
jne 0x4032ea
inc ecx
mov dword [esp + 0x20], edi
inc ecx
cmp word [ecx], 0x2f
jne 0x4033af
inc ecx
inc ecx
cmp word [ecx], 0x53
jne 0x403314
mov ax, word [ecx + 2]
cmp ax, dx
je 0x40330a
cmp ax, bp
jne 0x403314
mov dword [0x7a7aa0], 1
movzx eax, word [0x4092ba]
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov edi, eax
xor esi, esi
movzx eax, word [0x4092b8]
cdq
movzx edx, word [str.NCRC]
or edi, eax
movzx eax, word [0x4092b6]
shl eax, 0x10
or eax, edx
cdq
or esi, eax
mov eax, dword [ecx]
or edi, edx
cmp eax, esi
jne 0x40336a
mov eax, dword [ecx + 4]
cmp eax, edi
jne 0x40336a
mov ax, word [ecx + 8]
cmp ax, 0x20
je 0x403365
cmp ax, bp
jne 0x40336a
or dword [esp + 0x14], 4
movzx eax, word [0x4092ae]
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov edi, eax
xor esi, esi
movzx eax, word [0x4092ac]
cdq
movzx edx, word [str.__D]
or edi, eax
movzx eax, word [0x4092aa]
shl eax, 0x10
or eax, edx
cdq
or esi, eax
mov eax, dword [ecx - 4]
or edi, edx
cmp eax, esi
jne 0x4033ac
mov eax, dword [ecx]
cmp eax, edi
je 0x4033d0
push 0x22
pop edi
push dword [esp + 0x20]
push ecx
call fcn.00405860
mov ecx, eax
cmp word [ecx], di
jne 0x4033c2
inc ecx
inc ecx
mov ax, word [ecx]
cmp ax, bp
jne 0x4032cc
jmp 0x4033e2
mov word [ecx - 4], bp
add ecx, 4
push ecx
push 0x7b2800
call fcn.00405de8
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x7b4800
push edi
push 0x400
call esi
call fcn.004031de
test eax, eax
jne 0x403454
push 0x3fb
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Temp
push edi
call sub.KERNEL32.dll_lstrcatW
call fcn.004031de
test eax, eax
jne 0x403454
push edi
push 0x3fc
call esi
push 0x409294
push edi
call sub.KERNEL32.dll_lstrcatW
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push str.TEMP
call esi
push edi
push 0x409280
call esi
call fcn.004031de
test eax, eax
je 0x40351f
push 0x7b4000
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x14]
call fcn.00402d69
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x40351f
cmp dword [0x7a7a1c], ebp
je 0x40350f
push ebp
push ebx
call fcn.00405860
mov esi, eax
cmp esi, ebx
jb 0x4034d9
movzx eax, word [0x40927a]
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov ebp, eax
movzx eax, word [0x409278]
movzx ecx, word [0x409274]
cdq
or ebp, eax
movzx eax, word [0x409276]
shl eax, 0x10
or eax, ecx
xor ecx, ecx
cdq
or ecx, eax
mov eax, ebp
or eax, edx
mov edx, dword [esi]
cmp edx, ecx
jne 0x4034d1
mov edx, dword [esi + 4]
cmp edx, eax
je 0x4034d7
dec esi
dec esi
cmp esi, ebx
jae 0x4034c4
xor ebp, ebp
cmp esi, ebx
mov dword [esp + 0x10], str.Error_launching_installer
jb 0x40354a
mov word [esi], bp
add esi, 8
push esi
call fcn.0040593b
test eax, eax
je 0x40351f
push esi
push 0x7b2800
call fcn.00405de8
push esi
push 0x7b3000
call fcn.00405de8
mov dword [esp + 0x10], ebp
or dword [0x7a7aac], 0xffffffff
call fcn.004037bf
mov dword [esp + 0x18], eax
call fcn.004036e5
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [esp + 0x10], ebp
je 0x40362a
push 0x200010
push dword [esp + 0x14]
call fcn.004055c4
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.nsu.tmp
push edi
call sub.KERNEL32.dll_lstrcatW
mov esi, 0x7b3800
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40351f
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp word [0x7b2800], bp
jne 0x403589
push esi
push 0x7b2800
call fcn.00405de8
push dword [esp + 0x1c]
push section..ndata
call fcn.00405de8
movzx eax, word [0x40925a]
movzx ecx, word [0x409258]
shl eax, 0x10
or eax, ecx
push 0x1a
mov dword [0x7a8800], eax
pop ebx
mov esi, 0x79e6a8
mov eax, dword [0x7a7a10]
push dword [eax + 0x120]
push esi
call fcn.00405e0a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x10], ebp
je 0x403614
push 1
push esi
push 0x7b5800
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403614
push ebp
push esi
call fcn.00405c82
mov eax, dword [0x7a7a10]
push dword [eax + 0x124]
push esi
call fcn.00405e0a
push esi
call fcn.00405563
cmp eax, ebp
je 0x403614
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebp
inc word [0x7a8800]
dec ebx
jne 0x4035b7
push ebp
push edi
call fcn.00405c82
jmp 0x40351f
cmp dword [0x7a7a94], ebp
je 0x4036cd
push 4
call fcn.00406152
push 5
mov ebx, eax
call fcn.00406152
push 6
mov esi, eax
call fcn.00406152
cmp ebx, ebp
mov edi, eax
je 0x40369d
cmp esi, ebp
je 0x40369d
cmp edi, ebp
je 0x40369d
lea eax, [esp + 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x40369d
lea eax, [esp + 0x28]
push eax
push str.SeShutdownPrivilege
push ebp
call esi
push ebp
push ebp
lea eax, [esp + 0x2c]
push ebp
push eax
push ebp
push dword [esp + 0x30]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x48], 2
call edi
push 7
call fcn.00406152
cmp eax, ebp
mov esi, 0x80040002
je 0x4036b9
push esi
push 0x25
push ebp
push ebp
push ebp
call eax
test eax, eax
je 0x4036c6
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4036cd
push 9
call fcn.0040140b
mov eax, dword [0x7a7aac]
cmp eax, 0xffffffff
je 0x4036db
mov dword [esp + 0x18], eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_ExitProcess]