Function at 0x4031c4
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, 0x2d4
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 8
mov dword [0x7a7a98], eax
call fcn.00406097
mov dword [0x7a79e4], eax
push ebp
lea eax, [esp + 0x34]
push 0x2b4
push eax
push ebp
push 0x79ee90
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push str.NSIS_Error
push 0x7a69e0
call fcn.00405d2d
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, 0x7b2000
push eax
push ebx
call fcn.00405d2d
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp word [0x7b2000], 0x22
mov dword [0x7a79e0], eax
mov eax, ebx
jne 0x403264
push 0x22
mov eax, 0x7b2002
pop esi
push esi
push eax
call fcn.004057c2
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [esp + 0x1c], eax
jmp 0x40333f
push 0x20
pop edx
cmp cx, dx
jne 0x40328a
inc eax
inc eax
cmp word [eax], dx
je 0x403283
cmp word [eax], 0x22
mov esi, edx
jne 0x403297
inc eax
push 0x22
inc eax
pop esi
cmp word [eax], 0x2f
jne 0x403330
inc eax
inc eax
cmp word [eax], 0x53
jne 0x4032bc
mov cx, word [eax + 2]
cmp cx, dx
je 0x4032b7
cmp cx, bp
jne 0x4032bc
or dword [esp + 0x14], 2
movzx ecx, word [0x4092b6]
movzx edi, word [str.NCRC]
mov edx, dword [eax]
shl ecx, 0x10
or ecx, edi
cmp edx, ecx
jne 0x403301
movzx ecx, word [0x4092ba]
movzx edi, word [0x4092b8]
shl ecx, 0x10
or ecx, edi
cmp dword [eax + 4], ecx
jne 0x403301
mov cx, word [eax + 8]
cmp cx, 0x20
je 0x4032fc
cmp cx, bp
jne 0x403301
or dword [esp + 0x14], 4
movzx ecx, word [0x4092aa]
movzx edi, word [str.__D]
shl ecx, 0x10
or ecx, edi
cmp dword [eax - 4], ecx
jne 0x403330
movzx ecx, word [0x4092ae]
movzx edi, word [0x4092ac]
shl ecx, 0x10
or ecx, edi
cmp edx, ecx
je 0x40334d
push esi
push eax
call fcn.004057c2
cmp word [eax], 0x22
jne 0x40333f
inc eax
inc eax
mov cx, word [eax]
cmp cx, bp
jne 0x40327b
jmp 0x40335f
mov word [eax - 4], bp
add eax, 4
push eax
push 0x7b2800
call fcn.00405d2d
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x7b4800
push edi
push 0x400
call esi
call fcn.00403190
test eax, eax
jne 0x4033d1
push 0x3fb
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Temp
push edi
call sub.KERNEL32.dll_lstrcatW
call fcn.00403190
test eax, eax
jne 0x4033d1
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.00403190
test eax, eax
je 0x403481
push 0x7b4000
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x14]
call fcn.00402cff
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x403481
cmp dword [0x7a79fc], ebp
je 0x403471
push ebp
push ebx
call fcn.004057c2
mov esi, eax
cmp esi, ebx
jb 0x40343b
movzx eax, word [0x409276]
movzx ecx, word [str.___]
shl eax, 0x10
or eax, ecx
cmp dword [esi], eax
jne 0x403435
movzx ecx, word [0x40927a]
movzx edx, word [0x409278]
shl ecx, 0x10
or ecx, edx
cmp dword [esi + 4], ecx
je 0x40343b
dec esi
dec esi
cmp esi, ebx
jae 0x403419
cmp esi, ebx
mov dword [esp + 0x10], str.Error_launching_installer
jb 0x4034ac
mov word [esi], bp
add esi, 8
push esi
call fcn.0040589d
test eax, eax
je 0x403481
push esi
push 0x7b2800
call fcn.00405d2d
push esi
push 0x7b3000
call fcn.00405d2d
mov dword [esp + 0x10], ebp
or dword [0x7a7a8c], 0xffffffff
call fcn.00403701
mov dword [esp + 0x18], eax
call fcn.00403627
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [esp + 0x10], ebp
je 0x40358c
push 0x200010
push dword [esp + 0x14]
call fcn.00405510
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 0x403481
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 0x4034eb
push esi
push 0x7b2800
call fcn.00405d2d
push dword [esp + 0x1c]
push section..ndata
call fcn.00405d2d
movzx eax, word [0x40925a]
movzx ecx, word [0x409258]
shl eax, 0x10
or eax, ecx
push 0x1a
mov dword [0x7a8800], eax
pop ebx
mov esi, 0x79e690
mov eax, dword [0x7a79f0]
push dword [eax + 0x120]
push esi
call fcn.00405d4f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x10], ebp
je 0x403576
push 1
push esi
push 0x7b5800
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403576
push ebp
push esi
call fcn.00405bc7
mov eax, dword [0x7a79f0]
push dword [eax + 0x124]
push esi
call fcn.00405d4f
push esi
call fcn.004054af
cmp eax, ebp
je 0x403576
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebp
inc word [0x7a8800]
dec ebx
jne 0x403519
push ebp
push edi
call fcn.00405bc7
jmp 0x403481
cmp dword [0x7a7a74], ebp
je 0x40360f
push 3
call fcn.00406097
push 4
mov ebx, eax
call fcn.00406097
push 5
mov esi, eax
call fcn.00406097
cmp ebx, ebp
mov edi, eax
je 0x4035fb
cmp esi, ebp
je 0x4035fb
cmp edi, ebp
je 0x4035fb
lea eax, [esp + 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x4035fb
lea eax, [esp + 0x24]
push eax
push str.SeShutdownPrivilege
push ebp
call esi
push ebp
push ebp
lea eax, [esp + 0x28]
push ebp
push eax
push ebp
push dword [esp + 0x30]
mov dword [esp + 0x38], 1
mov dword [esp + 0x44], 2
call edi
push ebp
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x40360f
push 9
call fcn.0040140b
mov eax, dword [0x7a7a8c]
cmp eax, 0xffffffff
je 0x40361d
mov dword [esp + 0x18], eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_ExitProcess]