Function at 0x4039b0
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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x17c
call sub.COMCTL32.DLL_InitCommonControls
sub esp, 0xc
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
push 0
call sub.OLE32.dll_OleInitialize
mov dword [0x440c88], eax
push 8
call fcn.00406253
mov dword [0x440d38], eax
lea eax, [ebp - 0x170]
push 0
push 0x160
push eax
push 0
push 0x40a2a4
call sub.SHELL32.DLL_SHGetFileInfoA
sub esp, 0xc
push str.NSIS_Error
push 0x440d68
call fcn.004064a4
add esp, 0x18
call sub.KERNEL32.dll_GetCommandLineA
push edx
push edx
push eax
push 0x473000
call fcn.004064a4
push edi
push 0
call sub.KERNEL32.dll_GetModuleHandleA
add esp, 0xc
mov dword [0x440d58], eax
cmp byte [0x473000], 0x22
je 0x403a49
mov edx, 0x473000
mov al, 0x20
jmp 0x403a50
mov edx, 0x473001
mov al, 0x22
movsx eax, al
push esi
push esi
push eax
push edx
call fcn.004062d5
push ebx
push eax
call fcn.00407e6c
xor ebx, ebx
mov edi, eax
mov edx, eax
add esp, 0xc
jmp 0x403ae9
inc edx
mov al, byte [edx]
cmp al, 0x20
je 0x403a6e
mov cl, 0x20
cmp al, 0x22
jne 0x403a7e
inc edx
mov cl, 0x22
cmp byte [edx], 0x2f
jne 0x403acf
inc edx
cmp byte [edx], 0x53
jne 0x403a96
mov al, byte [edx + 1]
or eax, 0x20
cmp al, 0x20
jne 0x403a96
or ebx, 2
cmp dword [edx], 0x4352434e
jne 0x403aab
mov al, byte [edx + 4]
or eax, 0x20
cmp al, 0x20
jne 0x403aab
or ebx, 4
cmp dword [edx - 2], 0x3d442f20
jne 0x403acf
mov dword [edx - 2], 0
lea eax, [edx + 2]
push ecx
push ecx
push eax
push 0x475000
call fcn.004064a4
pop eax
pop edx
jmp 0x403aee
push eax
push eax
movsx eax, cl
push eax
push edx
call fcn.004062d5
mov edx, eax
pop esi
pop eax
xor eax, eax
cmp byte [edx], 0x22
sete al
add edx, eax
cmp byte [edx], 0
jne 0x403a6f
push ecx
push ecx
push 0x47d000
push 0x2000
call sub.KERNEL32.dll_GetTempPathA
pop eax
pop edx
call fcn.00403959
test eax, eax
jne 0x403b49
push eax
push eax
push 0x1ffb
push 0x47d000
call sub.KERNEL32.dll_GetWindowsDirectoryA
push str.Temp
push 0x47d000
call fcn.00406420
pop esi
pop eax
call fcn.00403959
test eax, eax
jne 0x403b49
mov esi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [ebp - 0x180], 0
jmp 0x403d2c
sub esp, 0xc
push 0x47b000
call sub.KERNEL32.dll_DeleteFileA
push ebx
call fcn.00403555
mov dword [ebp - 0x180], 0
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x403d2c
cmp dword [0x440d18], 0
je 0x403d17
push ebx
push ebx
push 0
push 0x473000
call fcn.004062d5
pop edx
pop ecx
jmp 0x403b93
dec eax
cmp eax, 0x473000
jb 0x403bd7
cmp dword [eax], 0x3d3f5f20
jne 0x403b92
sub esp, 0xc
mov byte [eax], 0
lea ebx, [eax + 4]
push ebx
call fcn.00406872
add esp, 0xc
test eax, eax
je 0x403bfd
push eax
push eax
push ebx
push 0x475000
call fcn.004064a4
push ebx
push 0x477000
call fcn.004064a4
pop edi
pop eax
jmp 0x403d17
push ebx
push ebx
push str.nsu.tmp
push 0x47d000
call fcn.00406420
push 0x479000
push 0x47d000
call sub.KERNEL32.dll_lstrcmpiA
pop edx
test eax, eax
pop ecx
jne 0x403c11
mov esi, str.Error_launching_installer
mov dword [ebp - 0x180], 0
jmp 0x403d2c
push eax
push eax
push 0
push 0x47d000
call sub.KERNEL32.dll_CreateDirectoryA
push eax
push 0x47d000
call sub.KERNEL32.dll_SetCurrentDirectoryA
add esp, 0xc
cmp byte [0x475000], 0
jne 0x403c49
push eax
push eax
push 0x479000
push 0x475000
call fcn.004064a4
pop ebx
pop esi
push ecx
push ecx
push edi
push section..ndata
call fcn.004064a4
mov esi, str.Error_launching_installer
pop eax
mov word [0x44d000], 0x41
xor ebx, ebx
pop edx
push eax
push eax
mov eax, dword [0x440ca8]
push dword [eax + 0x120]
push 0x429960
call fcn.0040655b
push edi
push 0x429960
call sub.KERNEL32.dll_DeleteFileA
add esp, 0xc
test esi, esi
je 0x403ceb
push ecx
push 1
push 0x429960
push 0x481000
call sub.KERNEL32.dll_CopyFileA
pop edx
test eax, eax
je 0x403ceb
push eax
push eax
push 0
push 0x429960
call fcn.004069fb
mov eax, dword [0x440ca8]
push dword [eax + 0x124]
push 0x429960
call fcn.0040655b
push edi
push 0x429960
call fcn.00406efe
add esp, 0xc
test eax, eax
je 0x403ceb
sub esp, 0xc
xor esi, esi
push eax
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
inc ebx
inc byte [0x44d000]
cmp ebx, 0x1a
jne 0x403c68
push ecx
push ecx
push 0
push 0x47d000
call fcn.004069fb
mov dword [ebp - 0x180], 0
pop eax
pop edx
jmp 0x403d2c
mov dword [0x440c74], 0xffffffff
call fcn.00405d9a
mov dword [ebp - 0x180], eax
call fcn.004038fc
call sub.OLE32.dll_OleUninitialize
test esi, esi
je 0x403d4f
push edi
push edi
push 0x200010
push esi
call fcn.00406e67
push ebx
push 2
jmp 0x403e10
cmp dword [0x440c5c], 0
je 0x403df7
sub esp, 0xc
push 3
call fcn.00406253
mov ebx, eax
push 4
call fcn.00406253
mov esi, eax
push 5
call fcn.00406253
add esp, 0xc
mov edi, eax
test ebx, ebx
je 0x403dd9
test esi, esi
je 0x403dd9
test eax, eax
je 0x403dd9
call sub.KERNEL32.dll_GetCurrentProcess
lea edx, [ebp - 0x10]
push ecx
push edx
push 0x28
push eax
call ebx
pop edx
test eax, eax
je 0x403dd9
lea eax, [ebp - 0x16c]
push ebx
push eax
push str.SeShutdownPrivilege
push 0
call esi
lea ebx, [ebp - 0x170]
mov dword [ebp - 0x170], 1
push ecx
push 0
push 0
push 0
push ebx
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x164], 2
call edi
pop eax
pop edx
push edi
push edi
push 0
push 2
call sub.USER32.dll_ExitWindowsEx
pop ebx
test eax, eax
pop esi
jne 0x403df7
sub esp, 0xc
push 9
call fcn.00403103
add esp, 0xc
mov eax, dword [0x440c74]
cmp eax, 0xffffffff
je 0x403e07
mov dword [ebp - 0x180], eax
sub esp, 0xc
push dword [ebp - 0x180]
call sub.KERNEL32.dll_ExitProcess
nop
nop
nop