Function at 0x4031ff
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 [0x429278], eax
call fcn.0040613f
mov dword [0x4291c4], eax
push ebp
lea eax, [esp + 0x38]
push 0x2b4
push eax
push ebp
push 0x420670
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push str.NSIS_Error
push 0x4281c0
call fcn.00405dd5
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, 0x434000
push eax
push ebx
call fcn.00405dd5
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x22
mov dword [0x4291c0], eax
pop edi
mov eax, ebx
cmp word [0x434000], di
jne 0x4032a0
mov esi, edi
mov eax, 0x434002
push esi
push eax
call fcn.0040584d
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
mov dword [esp + 0x1c], ecx
jmp 0x4033af
push 0x20
pop edx
cmp ax, dx
jne 0x4032c8
inc ecx
inc ecx
cmp word [ecx], dx
je 0x4032c1
cmp word [ecx], di
mov dword [esp + 0x20], edx
jne 0x4032d7
inc ecx
mov dword [esp + 0x20], edi
inc ecx
cmp word [ecx], 0x2f
jne 0x40339c
inc ecx
inc ecx
cmp word [ecx], 0x53
jne 0x403301
mov ax, word [ecx + 2]
cmp ax, dx
je 0x4032f7
cmp ax, bp
jne 0x403301
mov dword [0x429260], 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 0x403357
mov eax, dword [ecx + 4]
cmp eax, edi
jne 0x403357
mov ax, word [ecx + 8]
cmp ax, 0x20
je 0x403352
cmp ax, bp
jne 0x403357
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 [0x4092a8]
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 0x403399
mov eax, dword [ecx]
cmp eax, edi
je 0x4033bd
push 0x22
pop edi
push dword [esp + 0x20]
push ecx
call fcn.0040584d
mov ecx, eax
cmp word [ecx], di
jne 0x4033af
inc ecx
inc ecx
mov ax, word [ecx]
cmp ax, bp
jne 0x4032b9
jmp 0x4033cf
mov word [ecx - 4], bp
add ecx, 4
push ecx
push 0x434800
call fcn.00405dd5
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x436800
push edi
push 0x400
call esi
call fcn.004031cb
test eax, eax
jne 0x403441
push 0x3fb
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Temp
push edi
call sub.KERNEL32.dll_lstrcatW
call fcn.004031cb
test eax, eax
jne 0x403441
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.004031cb
test eax, eax
je 0x40350c
push 0x436000
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x14]
call fcn.00402d69
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x40350c
cmp dword [0x4291dc], ebp
je 0x4034fc
push ebp
push ebx
call fcn.0040584d
mov esi, eax
cmp esi, ebx
jb 0x4034c6
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 0x4034be
mov edx, dword [esi + 4]
cmp edx, eax
je 0x4034c4
dec esi
dec esi
cmp esi, ebx
jae 0x4034b1
xor ebp, ebp
cmp esi, ebx
mov dword [esp + 0x10], str.Error_launching_installer
jb 0x403537
mov word [esi], bp
add esi, 8
push esi
call fcn.00405928
test eax, eax
je 0x40350c
push esi
push 0x434800
call fcn.00405dd5
push esi
push 0x435000
call fcn.00405dd5
mov dword [esp + 0x10], ebp
or dword [0x42926c], 0xffffffff
call fcn.004037ac
mov dword [esp + 0x18], eax
call fcn.004036d2
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [esp + 0x10], ebp
je 0x403617
push 0x200010
push dword [esp + 0x14]
call fcn.004055b1
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.nsu.tmp
push edi
call sub.KERNEL32.dll_lstrcatW
mov esi, 0x435800
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40350c
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp word [0x434800], bp
jne 0x403576
push esi
push 0x434800
call fcn.00405dd5
push dword [esp + 0x1c]
push section..ndata
call fcn.00405dd5
movzx eax, word [0x40925a]
movzx ecx, word [0x409258]
shl eax, 0x10
or eax, ecx
push 0x1a
mov dword [0x42a800], eax
pop ebx
mov esi, 0x41fe70
mov eax, dword [0x4291d0]
push dword [eax + 0x120]
push esi
call fcn.00405df7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x10], ebp
je 0x403601
push 1
push esi
push 0x437800
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403601
push ebp
push esi
call fcn.00405c6f
mov eax, dword [0x4291d0]
push dword [eax + 0x124]
push esi
call fcn.00405df7
push esi
call fcn.00405550
cmp eax, ebp
je 0x403601
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebp
inc word [0x42a800]
dec ebx
jne 0x4035a4
push ebp
push edi
call fcn.00405c6f
jmp 0x40350c
cmp dword [0x429254], ebp
je 0x4036ba
push 4
call fcn.0040613f
push 5
mov ebx, eax
call fcn.0040613f
push 6
mov esi, eax
call fcn.0040613f
cmp ebx, ebp
mov edi, eax
je 0x40368a
cmp esi, ebp
je 0x40368a
cmp edi, ebp
je 0x40368a
lea eax, [esp + 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x40368a
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.0040613f
cmp eax, ebp
mov esi, 0x80040002
je 0x4036a6
push esi
push 0x25
push ebp
push ebp
push ebp
call eax
test eax, eax
je 0x4036b3
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4036ba
push 9
call fcn.0040140b
mov eax, dword [0x42926c]
cmp eax, 0xffffffff
je 0x4036c8
mov dword [esp + 0x18], eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_ExitProcess]