Function at 0x403304
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, 0x178
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov byte [esp + 0x10], 0x20
mov ebp, ebx
mov edi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push 9
mov dword [0x7c5c80], eax
call fcn.00405ec1
push ebx
push 0x160
mov dword [0x7c1c10], eax
lea eax, [esp + 0x30]
push eax
push ebx
push 0x40844b
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x7c1c20
call fcn.004060a4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov esi, 0x7ee000
push esi
call fcn.004060a4
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x7ee000], 0x22
mov dword [0x7c1c14], eax
mov eax, esi
jne 0x40339e
mov byte [esp + 0x10], 0x22
mov eax, 0x7ee001
push dword [esp + 0x10]
push eax
call fcn.00405bbc
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x403433
push 0x20
pop ecx
cmp al, cl
jne 0x4033c3
inc esi
cmp byte [esi], cl
je 0x4033be
cmp byte [esi], 0x22
mov byte [esp + 0x10], cl
jne 0x4033d2
inc esi
mov byte [esp + 0x10], 0x22
cmp byte [esi], 0x2f
jne 0x403421
inc esi
cmp byte [esi], 0x53
jne 0x4033f2
mov al, byte [esi + 1]
cmp al, cl
je 0x4033e8
test al, al
jne 0x4033f2
mov dword [0x7c5d00], 1
cmp dword [esi - 2], 0x3d442f20
je 0x40343f
cmp dword [esi], 0x6f666e69
jne 0x403421
mov al, byte [esi + 4]
cmp al, cl
je 0x40340e
test al, al
jne 0x403421
push 0x40
push 0x408458
push 0x408464
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [esp + 0x10]
push esi
call fcn.00405bbc
mov esi, eax
cmp byte [esi], 0x22
jne 0x403433
inc esi
mov al, byte [esi]
test al, al
jne 0x4033b7
jmp 0x403450
lea eax, [esi + 2]
mov byte [esi - 2], bl
push eax
push 0x7f0000
call fcn.004060a4
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, 0x7f8000
push ebx
push 0x2000
call esi
call fcn.00403714
test eax, eax
jne 0x4034c2
push 0x1ffb
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push ebx
call sub.KERNEL32.dll_lstrcatA
call fcn.00403714
test eax, eax
jne 0x4034c2
push ebx
push 0x1ffc
call esi
push 0x4084a4
push ebx
call sub.KERNEL32.dll_lstrcatA
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
push str.TEMP
call esi
push ebx
push 0x4084b0
call esi
call fcn.00403714
test eax, eax
je 0x403545
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x7f6000
call ebx
push 0
call fcn.00402fed
mov edi, eax
test edi, edi
jne 0x403545
cmp dword [0x7c5c24], ebp
je 0x403537
push eax
push 0x7ee000
call fcn.00405bbc
mov esi, eax
mov eax, 0x7ee000
jmp 0x403501
cmp dword [esi], 0x3d3f5f20
je 0x403505
dec esi
cmp esi, eax
jae 0x4034f8
mov edi, str.Error_launching_installer
cmp esi, eax
jb 0x40356b
xor ebx, ebx
mov byte [esi], bl
add esi, 4
push esi
call fcn.00405bf9
test eax, eax
je 0x403545
push esi
push 0x7f0000
call fcn.004060a4
push esi
push 0x7f2000
call fcn.004060a4
mov edi, ebx
or dword [0x7c5d0c], 0xffffffff
call fcn.00405308
mov ebp, eax
call fcn.004032da
call dword [sym.imp.ole32.dll_OleUninitialize]
test edi, edi
je 0x403654
push 0x200010
push edi
call fcn.00406032
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.nsu.tmp
mov esi, 0x7f8000
push esi
call sub.KERNEL32.dll_lstrcatA
push 0x7f4000
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403545
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [0x7f0000], 0
jne 0x4035b3
push 0x7f4000
push 0x7f0000
call fcn.004060a4
push dword [esp + 0x14]
push section..ndata
call fcn.004060a4
push 0x41
pop eax
push 0x1a
mov word [0x7c8000], ax
pop esi
mov eax, dword [0x7c5c30]
push dword [eax + 0x120]
push 0x7a69e0
call fcn.004056c6
push 0x7a69e0
call ebx
test edi, edi
je 0x40363b
push 1
push 0x7a69e0
push 0x7fc000
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40363b
push 0
push 0x7a69e0
call fcn.00405969
mov eax, dword [0x7c5c30]
push dword [eax + 0x124]
push 0x7a69e0
call fcn.004056c6
push 0x7a69e0
call fcn.00405c92
test eax, eax
je 0x40363b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc byte [0x7c8000]
dec esi
jne 0x4035cd
push esi
push 0x7f8000
call fcn.00405969
jmp 0x403545
cmp dword [0x7c5cf4], 0
je 0x403700
push 4
call fcn.00405ec1
push 5
mov ebx, eax
call fcn.00405ec1
push 6
mov esi, eax
call fcn.00405ec1
mov edi, eax
test ebx, ebx
je 0x4036cd
test esi, esi
je 0x4036cd
test edi, edi
je 0x4036cd
lea eax, [esp + 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x4036cd
lea eax, [esp + 0x1c]
push eax
push str.SeShutdownPrivilege
push 0
call esi
push 0
push 0
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 1
push eax
push 0
push dword [esp + 0x28]
mov dword [esp + 0x3c], 2
call edi
push 7
call fcn.00405ec1
mov esi, 0x80040002
test eax, eax
je 0x4036ec
push esi
push 0x25
push 0
push 0
push 0
call eax
test eax, eax
je 0x4036f9
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403700
push 9
call fcn.00401424
cmp dword [0x7c5d0c], 0xffffffff
cmovne ebp, dword [0x7c5d0c]
push ebp
jmp 0x403565