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

Disassembly:
sub esp, 0x180
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
xor esi, esi
mov byte [esp + 0x10], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push ebx
push 0x160
mov dword [0x42f150], eax
lea eax, [esp + 0x38]
push eax
push ebx
push 0x4074a7
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x42e8a0
call fcn.00405615
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov edi, 0x435000
push edi
call fcn.00405615
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x435000], 0x22
mov dword [0x42f0a4], eax
mov eax, edi
jne 0x4032d3
mov byte [esp + 0x10], 0x22
mov eax, 0x435001
push dword [esp + 0x10]
push eax
call fcn.004053c0
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esp + 0x1c], eax
jmp 0x40334d
cmp cl, 0x20
jne 0x4032f5
inc eax
cmp byte [eax], 0x20
je 0x4032ef
cmp byte [eax], 0x22
mov byte [esp + 0x10], 0x20
jne 0x403305
inc eax
mov byte [esp + 0x10], 0x22
cmp byte [eax], 0x2f
jne 0x40333d
inc eax
cmp byte [eax], 0x53
jne 0x40331e
mov cl, byte [eax + 1]
or cl, 0x20
cmp cl, 0x20
jne 0x40331e
or esi, 2
cmp dword [eax], 0x4352434e
jne 0x403334
mov cl, byte [eax + 4]
or cl, 0x20
cmp cl, 0x20
jne 0x403334
or esi, 4
cmp dword [eax - 2], 0x3d442f20
je 0x403355
push dword [esp + 0x10]
push eax
call fcn.004053c0
cmp byte [eax], 0x22
jne 0x40334d
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x4032ea
jmp 0x403366
mov byte [eax - 2], bl
add eax, 2
push eax
push 0x435400
call fcn.00405615
mov ebp, 0x436400
push ebp
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.004031f0
test eax, eax
jne 0x4033a4
push 0x3fb
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push ebp
call sub.KERNEL32.dll_lstrcatA
call fcn.004031f0
test eax, eax
je 0x403537
push 0x436000
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.00402f6d
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x403537
cmp dword [0x42f100], ebx
je 0x40341a
push ebx
push edi
call fcn.004053c0
mov esi, eax
jmp 0x4033dd
cmp dword [esi], 0x3d3f5f20
je 0x4033e1
dec esi
cmp esi, edi
jae 0x4033d4
cmp esi, edi
mov dword [esp + 0x14], str.Error_launching_installer
jb 0x40342f
mov byte [esi], bl
add esi, 4
push esi
call fcn.004057bf
test eax, eax
je 0x403537
push esi
push 0x435400
call fcn.00405615
push esi
push 0x435800
call fcn.00405615
mov dword [esp + 0x14], ebx
or dword [0x42f14c], 0xffffffff
call fcn.0040500f
mov dword [esp + 0x18], eax
jmp 0x403537
push str.nsu.tmp_
push ebp
call sub.KERNEL32.dll_lstrcatA
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [esp + 0x10], ebx
mov esi, 0x428cd8
mov ebx, 0x428cd9
mov edi, 0x4288d8
push ebp
push esi
mov word [0x428cd8], 0x22
call sub.KERNEL32.dll_lstrcatA
push str.Au_.exe
push esi
call sub.KERNEL32.dll_lstrcatA
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x14], 0
je 0x403520
push 0x400
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x409015
lea eax, [eax + 0x4288d2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403535
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403520
push 0
push ebx
call fcn.00405897
cmp byte [0x435400], 0
je 0x4034d6
push 0x435400
push edi
call fcn.00405615
jmp 0x4034dc
push edi
call fcn.00405799
push 0x407484
push esi
call sub.KERNEL32.dll_lstrcatA
push dword [esp + 0x1c]
push esi
call sub.KERNEL32.dll_lstrcatA
push 0x40747c
push esi
call sub.KERNEL32.dll_lstrcatA
push edi
push esi
call sub.KERNEL32.dll_lstrcatA
push esi
call fcn.0040576c
push ebp
push esi
call fcn.00405306
test eax, eax
je 0x403520
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esp + 0x14], 0
inc byte [str.Au_.exe]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1a
jl 0x403455
xor ebx, ebx
call fcn.00403224
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [esp + 0x14], ebx
je 0x40355e
push 0x200010
push dword [esp + 0x18]
call fcn.0040537e
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x42f134], ebx
je 0x4035f6
push str.OpenProcessToken
mov esi, 0x407458
push esi
call fcn.0040570f
push str.LookupPrivilegeValueA
push esi
mov ebp, eax
call fcn.0040570f
push str.AdjustTokenPrivileges
push esi
mov edi, eax
call fcn.0040570f
cmp ebp, ebx
mov esi, eax
je 0x4035e2
cmp edi, ebx
je 0x4035e2
cmp esi, ebx
je 0x4035e2
lea eax, [esp + 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebp
test eax, eax
je 0x4035e2
lea eax, [esp + 0x24]
push eax
push str.SeShutdownPrivilege
push ebx
call edi
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 0x4035f6
push 9
call fcn.00401416
mov eax, dword [0x42f14c]
cmp eax, 0xffffffff
je 0x403604
mov dword [esp + 0x18], eax
push dword [esp + 0x18]
jmp 0x403558