Function at 0x403253
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:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
push esi
xor esi, esi
mov bl, 0x20
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [ebp - 4], esi
mov byte [ebp - 0xc], bl
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.ole32.dll_OleInitialize]
push 8
mov dword [0x7a24d8], eax
call fcn.0040585e
push esi
push 0x160
mov dword [0x7a23e0], eax
lea eax, [ebp - 0x184]
push eax
push esi
push 0x4073f3
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x7a1be0
call fcn.0040577b
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov edi, 0x7a8000
push edi
call fcn.0040577b
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x7a8000], 0x22
mov dword [0x7a23e8], eax
mov eax, edi
jne 0x4032f6
mov byte [ebp - 0xc], 0x22
mov eax, 0x7a8001
push dword [ebp - 0xc]
push eax
call fcn.004054b0
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x14], eax
jmp 0x40336a
cmp cl, bl
jne 0x403314
inc eax
cmp byte [eax], bl
je 0x40330f
cmp byte [eax], 0x22
mov byte [ebp - 0xc], bl
jne 0x403321
inc eax
mov byte [ebp - 0xc], 0x22
cmp byte [eax], 0x2f
jne 0x40335b
inc eax
cmp byte [eax], 0x53
jne 0x40333b
mov cl, byte [eax + 1]
cmp cl, bl
je 0x403337
test cl, cl
jne 0x40333b
or dword [ebp - 4], 2
cmp dword [eax], 0x4352434e
jne 0x403352
mov cl, byte [eax + 4]
cmp cl, bl
je 0x40334e
test cl, cl
jne 0x403352
or dword [ebp - 4], 4
cmp dword [eax - 2], 0x3d442f20
je 0x403372
push dword [ebp - 0xc]
push eax
call fcn.004054b0
cmp byte [eax], 0x22
jne 0x40336a
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x40330b
jmp 0x403384
mov byte [eax - 2], 0
add eax, 2
push eax
push 0x7a8400
call fcn.0040577b
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, 0x7a9400
push esi
push 0x400
call ebx
call fcn.004031f5
test eax, eax
jne 0x4033f2
push 0x3fb
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push esi
call sub.KERNEL32.dll_lstrcatA
call fcn.004031f5
test eax, eax
jne 0x4033f2
push esi
push 0x3fc
call ebx
push 0x4073dc
push esi
call sub.KERNEL32.dll_lstrcatA
mov ebx, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
push str.TEMP
call ebx
push esi
push 0x4073d0
call ebx
call fcn.004031f5
test eax, eax
je 0x403470
push 0x7a9000
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 4]
call fcn.00402fa6
mov dword [ebp - 8], eax
test eax, eax
jne 0x403470
cmp dword [0x7a2444], eax
je 0x403461
push eax
push edi
call fcn.004054b0
mov ebx, eax
jmp 0x403428
cmp dword [ebx], 0x3d3f5f20
je 0x40342c
dec ebx
cmp ebx, edi
jae 0x40341f
mov dword [ebp - 8], str.Error_launching_installer
cmp ebx, edi
jb 0x40349a
mov byte [ebx], 0
add ebx, 4
push ebx
call fcn.0040596a
test eax, eax
je 0x403470
push ebx
push 0x7a8400
call fcn.0040577b
push ebx
push 0x7a8800
call fcn.0040577b
and dword [ebp - 8], 0
or dword [0x7a24cc], 0xffffffff
call fcn.00405124
mov dword [ebp - 0x10], eax
call fcn.00403229
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp - 8], 0
je 0x40356e
push 0x200010
push dword [ebp - 8]
call fcn.0040544a
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.nsu.tmp
push esi
call sub.KERNEL32.dll_lstrcatA
mov edi, 0x7a8c00
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403470
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [0x7a8400], bl
jne 0x4034da
push edi
push 0x7a8400
call fcn.0040577b
push dword [ebp - 0x14]
push section..ndata
call fcn.0040577b
push 0x41
pop eax
mov word [0x7a3400], ax
mov dword [ebp - 4], 0x1a
mov edi, 0x79d5b8
mov eax, dword [0x7a23ec]
push dword [eax + 0x120]
push edi
call fcn.004059ec
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], ebx
je 0x403557
push 1
push edi
push 0x7a9c00
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403557
push ebx
push edi
call fcn.00405dcc
mov eax, dword [0x7a23ec]
push dword [eax + 0x124]
push edi
call fcn.004059ec
push edi
call fcn.004053e9
cmp eax, ebx
je 0x403557
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
inc byte [0x7a3400]
dec dword [ebp - 4]
jne 0x4034fc
push ebx
push esi
call fcn.00405dcc
jmp 0x403470
cmp dword [0x7a24b4], 0
je 0x4035ef
push 3
call fcn.0040585e
push 4
mov ebx, eax
call fcn.0040585e
push 5
mov esi, eax
call fcn.0040585e
mov edi, eax
test ebx, ebx
je 0x4035da
test esi, esi
je 0x4035da
test edi, edi
je 0x4035da
lea eax, [ebp - 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x4035da
lea eax, [ebp - 0x20]
push eax
push str.SeShutdownPrivilege
xor ebx, ebx
push ebx
call esi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 2
call edi
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4035ef
push 9
call fcn.0040141a
mov eax, dword [0x7a24cc]
cmp eax, 0xffffffff
je 0x4035fc
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
jmp 0x403494