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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [ebp - 4], ebx
mov byte [ebp - 0xc], 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x59dd20], eax
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 8
mov dword [0x5a39d8], eax
call fcn.00405a31
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push str.EST_INTROTEXT
mov dword [0x5a38e0], eax
call esi
push str.EST_PROGRESSLEN
mov dword [0x40a01c], eax
call esi
push str.EST_PROGRESSPOS
mov dword [0x40a020], eax
call esi
push str.EST_ERRORCODE
mov dword [0x40a024], eax
call esi
push str.EST_EXITCODE
mov dword [0x40a028], eax
call esi
push ebx
push 0x160
mov dword [0x40a02c], eax
lea eax, [ebp - 0x184]
push eax
push ebx
push 0x408447
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x5a30e0
call fcn.0040594e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov edi, 0x5a9000
push edi
call fcn.0040594e
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x5a9000], 0x22
mov dword [0x5a38e8], eax
mov eax, edi
jne 0x403438
mov byte [ebp - 0xc], 0x22
mov eax, 0x5a9001
push dword [ebp - 0xc]
push eax
call fcn.004056cd
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x14], esi
jmp 0x4034d6
cmp al, 0x20
jne 0x40345c
inc esi
cmp byte [esi], 0x20
je 0x403456
cmp byte [esi], 0x22
mov byte [ebp - 0xc], 0x20
jne 0x40346a
inc esi
mov byte [ebp - 0xc], 0x22
cmp byte [esi], 0x2f
jne 0x4034c5
inc esi
mov al, byte [esi]
cmp al, 0x53
jne 0x403485
mov cl, byte [esi + 1]
or cl, 0x20
cmp cl, 0x20
jne 0x403485
or dword [ebp - 4], 2
cmp dword [esi], 0x4352434e
jne 0x40349c
mov cl, byte [esi + 4]
or cl, 0x20
cmp cl, 0x20
jne 0x40349c
or dword [ebp - 4], 4
cmp dword [esi - 2], 0x3d442f20
je 0x4034e2
cmp al, 0x68
je 0x4034ad
cmp al, 0x48
jne 0x4034b4
push esi
call fcn.0040328b
pop ecx
mov al, byte [esi]
cmp al, 0x51
je 0x4034be
cmp al, 0x71
jne 0x4034c5
push esi
call fcn.004032b3
pop ecx
push dword [ebp - 0xc]
push esi
call fcn.004056cd
mov esi, eax
cmp byte [esi], 0x22
jne 0x4034d6
inc esi
mov al, byte [esi]
test al, al
jne 0x403452
jmp 0x4034f3
mov dword [esi - 2], ebx
add esi, 2
push esi
push 0x5a9400
call fcn.0040594e
mov ebx, 0x5aa400
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.004032eb
test eax, eax
jne 0x40352d
push 0x3fb
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push ebx
call sub.KERNEL32.dll_lstrcatA
call fcn.004032eb
test eax, eax
je 0x4035ab
push 0x5aa000
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 4]
call fcn.00402fd8
test eax, eax
mov dword [ebp - 8], eax
jne 0x4035ab
cmp dword [0x5a3944], eax
je 0x40359c
push eax
push edi
call fcn.004056cd
mov esi, eax
jmp 0x403563
cmp dword [esi], 0x3d3f5f20
je 0x403567
dec esi
cmp esi, edi
jae 0x40355a
cmp esi, edi
mov dword [ebp - 8], str.Error_launching_installer
jb 0x4035ec
mov byte [esi], 0
add esi, 4
push esi
call fcn.00405b2d
test eax, eax
je 0x4035ab
push esi
push 0x5a9400
call fcn.0040594e
push esi
push 0x5a9800
call fcn.0040594e
and dword [ebp - 8], 0
or dword [0x5a39cc], 0xffffffff
call fcn.004052e2
mov dword [ebp - 0x10], eax
call fcn.0040331f
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp - 8], 0
je 0x4036c1
push 0x200010
push dword [ebp - 8]
call fcn.00405669
push dword [ebp - 8]
push dword [0x59dd20]
push dword [0x40a028]
call fcn.0040323a
add esp, 0xc
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.nsu.tmp
push ebx
call sub.KERNEL32.dll_lstrcatA
mov esi, 0x5a9c00
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4035ab
xor edi, edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [0x5a9400], 0
jne 0x40362d
push esi
push 0x5a9400
call fcn.0040594e
push dword [ebp - 0x14]
push section..ndata
call fcn.0040594e
mov word [0x5a4400], 0x41
mov dword [ebp - 4], 0x1a
mov esi, 0x59d918
mov eax, dword [0x5a38ec]
push dword [eax + 0x120]
push esi
call fcn.00405c05
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], edi
je 0x4036aa
push 1
push esi
push 0x5aac00
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4036aa
push edi
push esi
call fcn.00405e5b
mov eax, dword [0x5a38ec]
push dword [eax + 0x124]
push esi
call fcn.00405c05
push esi
call fcn.00405608
cmp eax, edi
je 0x4036aa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], edi
inc byte [0x5a4400]
dec dword [ebp - 4]
jne 0x40364f
push edi
push ebx
call fcn.00405e5b
jmp 0x4035ab
cmp dword [0x5a39b4], 0
je 0x403744
push 3
call fcn.00405a31
push 4
mov dword [ebp - 4], eax
call fcn.00405a31
push 5
mov esi, eax
call fcn.00405a31
xor edi, edi
cmp dword [ebp - 4], edi
mov ebx, eax
je 0x403730
cmp esi, edi
je 0x403730
cmp ebx, edi
je 0x403730
lea eax, [ebp - 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 4]
test eax, eax
je 0x403730
lea eax, [ebp - 0x20]
push eax
push str.SeShutdownPrivilege
push edi
call esi
push edi
push edi
push edi
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 2
call ebx
push edi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403744
push 9
call fcn.0040144f
mov eax, dword [0x5a39cc]
cmp eax, 0xffffffff
je 0x403751
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push dword [0x59dd20]
push dword [0x40a02c]
call fcn.0040323a
add esp, 0xc
push dword [ebp - 0x10]
jmp 0x4035e6