Function at 0x403949
Capabilities:
Accept command line arguments
Copy file
Create directory
Delete file
Get common file path
Shutdown system
Terminate process

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edi
mov ebx, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov byte [esp + 0x10], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push edi
call dword [sym.imp.ole32.dll_OleInitialize]
push str.NSIS_Error
push 0x4308c0
mov dword [0x431170], eax
call sub.KERNEL32.dll_lstrcpyA
mov esi, 0x438400
push esi
mov ebp, 0x400
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.004038d9
test eax, eax
jne 0x4039c1
push 0x3fb
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
call fcn.004038d9
test eax, eax
je 0x403c03
mov esi, 0x437000
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push eax
push esi
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x437000], 0x22
mov dword [0x4310c4], eax
jne 0x4039fe
mov byte [esp + 0x10], 0x22
mov esi, 0x437001
push dword [esp + 0x10]
push esi
call fcn.00405c29
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x403b2b
cmp al, 0x20
jne 0x403a24
inc esi
cmp byte [esi], 0x20
je 0x403a1e
cmp byte [esi], 0x22
mov byte [esp + 0x10], 0x20
jne 0x403a34
inc esi
mov byte [esp + 0x10], 0x22
cmp byte [esi], 0x2f
jne 0x403b19
inc esi
mov al, byte [esi]
cmp al, 0x53
jne 0x403a52
mov cl, byte [esi + 1]
or cl, 0x20
cmp cl, 0x20
jne 0x403a52
or edi, 2
cmp dword [esi], 0x4352434e
jne 0x403a68
mov cl, byte [esi + 4]
or cl, 0x20
cmp cl, 0x20
jne 0x403a68
or edi, 4
cmp dword [esi - 2], 0x3d442f20
je 0x403b8c
cmp al, 0x58
je 0x403a81
cmp al, 0x78
jne 0x403b19
mov al, byte [esi + 1]
or al, 0x20
cmp al, 0x20
jne 0x403b19
lea eax, [esi + 2]
mov cl, byte [eax]
or edi, 0x12
cmp cl, 0x22
mov dword [esp + 0x1c], edi
jne 0x403aa8
mov byte [esp + 0x10], cl
add esi, 3
jmp 0x403ac0
cmp cl, 0x20
je 0x403b62
test cl, cl
je 0x403b62
mov byte [esp + 0x10], 0x20
mov esi, eax
push dword [esp + 0x10]
push esi
call fcn.00405c29
test eax, eax
je 0x403ba0
sub eax, esi
inc eax
inc eax
push ebp
mov edi, eax
call fcn.00405c1a
test eax, eax
mov dword [0x429cf4], eax
je 0x403ba7
cmp edi, ebp
jbe 0x403af1
mov edi, ebp
dec edi
push edi
push esi
push eax
call ebx
push dword [0x429cf4]
call fcn.00406005
push 0
push dword [0x429cf4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x10], 0x2f
push dword [esp + 0x10]
push esi
call fcn.00405c29
mov esi, eax
cmp byte [esi], 0x22
jne 0x403b2b
inc esi
mov al, byte [esi]
test al, al
jne 0x403a1a
push edi
call fcn.0040362d
mov ebx, eax
xor ebp, ebp
cmp ebx, ebp
jne 0x403c03
cmp dword [0x431120], ebp
je 0x403bec
mov edi, dword [esp + 0x18]
push ebp
push edi
call fcn.00405c29
mov esi, eax
jmp 0x403bb7
push ebp
call fcn.00405c1a
test eax, eax
mov dword [0x429cf4], eax
je 0x403b81
push str.C:NSIS_ExtractFiles_
push eax
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [0x429cf4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x403b2b
mov byte [esi - 2], 0
add esi, 2
push esi
push 0x437400
call sub.KERNEL32.dll_lstrcpyA
jmp 0x403b35
mov ebx, str.Extraction_pathname_not_properly_delimited._n_nTry_using_quotes_or_a_shorter_path.
jmp 0x403c03
mov ebx, str.Out_of_Memory
jmp 0x403c03
cmp dword [esi], 0x3d3f5f20
je 0x403bbb
dec esi
cmp esi, edi
jae 0x403bae
cmp esi, edi
mov ebx, str.Error_launching_installer
jb 0x403c28
mov byte [esi], 0
add esi, 4
push esi
call fcn.0040608c
test eax, eax
je 0x403c03
push esi
push 0x437400
call sub.KERNEL32.dll_lstrcpyA
push esi
push 0x437800
call sub.KERNEL32.dll_lstrcpyA
xor ebx, ebx
or dword [0x43116c], 0xffffffff
call fcn.004058b9
push 1
mov dword [esp + 0x18], eax
call fcn.00405f0c
call fcn.0040390d
call dword [sym.imp.ole32.dll_OleUninitialize]
test ebx, ebx
je 0x403d29
push 0x200010
push ebx
call fcn.00405bd8
push 2
jmp 0x403de5
mov dword [esp + 0x10], ebp
mov edi, 0x429cf9
mov esi, 0x429cf8
mov ebp, 0x42a4f8
push 0x438400
push edi
mov byte [0x429cf8], 0x22
call sub.KERNEL32.dll_lstrcpyA
push str.ANSISu_.exe
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebx, ebx
je 0x403d0f
push 0x400
push ebp
push dword [0x4310c4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40a011
lea eax, [eax + 0x42a4ed]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403c03
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403d0f
push 0
push edi
call fcn.004061b6
cmp byte [0x437400], 0
je 0x403cc0
push 0x437400
push ebp
call sub.KERNEL32.dll_lstrcpyA
jmp 0x403cc6
push ebp
call fcn.00406066
push 0x408aac
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.___
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call fcn.00406005
push 0x438400
push esi
call fcn.00405b60
test eax, eax
je 0x403d0f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc byte [str.ANSISu_.exe]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1a
jl 0x403c3b
jmp 0x403c03
cmp dword [0x431154], 0
je 0x403dd3
push 0x408a94
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x403dbf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenProcessToken
push edi
call esi
push str.LookupPrivilegeValueA
push edi
mov dword [esp + 0x20], eax
call esi
push str.AdjustTokenPrivileges
push edi
mov ebp, eax
call esi
cmp dword [esp + 0x18], ebx
mov esi, eax
je 0x403dbf
cmp ebp, ebx
je 0x403dbf
cmp esi, ebx
je 0x403dbf
lea eax, [esp + 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [esp + 0x24]
test eax, eax
je 0x403dbf
lea eax, [esp + 0x24]
push eax
push str.SeShutdownPrivilege
push ebx
call ebp
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
push ebx
push dword [esp + 0x30]
mov dword [esp + 0x38], 1
mov dword [esp + 0x44], 2
call esi
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403dd3
push 9
call fcn.004014c9
mov eax, dword [0x43116c]
cmp eax, 0xffffffff
je 0x403de1
mov dword [esp + 0x14], eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ExitProcess]