Function at 0x403828
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 [0x42f928], eax
push 8
call fcn.004060cb
mov dword [0x42f9d8], eax
lea eax, [ebp - 0x170]
push 0
push 0x160
push eax
push 0
push 0x40a24c
call sub.SHELL32.DLL_SHGetFileInfoA
sub esp, 0xc
push str.NSIS_Error
push 0x42fa08
call fcn.0040631c
add esp, 0x18
call sub.KERNEL32.dll_GetCommandLineA
push edx
push edx
push eax
push 0x438000
call fcn.0040631c
push edi
push 0
call sub.KERNEL32.dll_GetModuleHandleA
add esp, 0xc
mov dword [0x42f9f8], eax
cmp byte [0x438000], 0x22
je 0x4038c1
mov edx, 0x438000
mov al, 0x20
jmp 0x4038c8
mov edx, 0x438001
mov al, 0x22
movsx eax, al
push esi
push esi
push eax
push edx
call fcn.0040614d
push ebx
push eax
call fcn.00408678
xor ebx, ebx
mov edi, eax
mov edx, eax
add esp, 0xc
jmp 0x403961
inc edx
mov al, byte [edx]
cmp al, 0x20
je 0x4038e6
mov cl, 0x20
cmp al, 0x22
jne 0x4038f6
inc edx
mov cl, 0x22
cmp byte [edx], 0x2f
jne 0x403947
inc edx
cmp byte [edx], 0x53
jne 0x40390e
mov al, byte [edx + 1]
or eax, 0x20
cmp al, 0x20
jne 0x40390e
or ebx, 2
cmp dword [edx], 0x4352434e
jne 0x403923
mov al, byte [edx + 4]
or eax, 0x20
cmp al, 0x20
jne 0x403923
or ebx, 4
cmp dword [edx - 2], 0x3d442f20
jne 0x403947
mov dword [edx - 2], 0
lea eax, [edx + 2]
push ecx
push ecx
push eax
push 0x438400
call fcn.0040631c
pop eax
pop edx
jmp 0x403966
push eax
push eax
movsx eax, cl
push eax
push edx
call fcn.0040614d
mov edx, eax
pop esi
pop eax
xor eax, eax
cmp byte [edx], 0x22
sete al
add edx, eax
cmp byte [edx], 0
jne 0x4038e7
push ecx
push ecx
push 0x439400
push 0x400
call sub.KERNEL32.dll_GetTempPathA
pop eax
pop edx
call fcn.004037d1
test eax, eax
jne 0x4039c1
push eax
push eax
push 0x3fb
push 0x439400
call sub.KERNEL32.dll_GetWindowsDirectoryA
push str.Temp
push 0x439400
call fcn.00406298
pop esi
pop eax
call fcn.004037d1
test eax, eax
jne 0x4039c1
mov esi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [ebp - 0x180], 0
jmp 0x403ba4
sub esp, 0xc
push 0x439000
call sub.KERNEL32.dll_DeleteFileA
push ebx
call fcn.00403466
mov dword [ebp - 0x180], 0
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x403ba4
cmp dword [0x42f9b8], 0
je 0x403b8f
push ebx
push ebx
push 0
push 0x438000
call fcn.0040614d
pop edx
pop ecx
jmp 0x403a0b
dec eax
cmp eax, 0x438000
jb 0x403a4f
cmp dword [eax], 0x3d3f5f20
jne 0x403a0a
sub esp, 0xc
mov byte [eax], 0
lea ebx, [eax + 4]
push ebx
call fcn.004066ea
add esp, 0xc
test eax, eax
je 0x403a75
push eax
push eax
push ebx
push 0x438400
call fcn.0040631c
push ebx
push 0x438800
call fcn.0040631c
pop edi
pop eax
jmp 0x403b8f
push ebx
push ebx
push str.nsu.tmp
push 0x439400
call fcn.00406298
push 0x438c00
push 0x439400
call sub.KERNEL32.dll_lstrcmpiA
pop edx
test eax, eax
pop ecx
jne 0x403a89
mov esi, str.Error_launching_installer
mov dword [ebp - 0x180], 0
jmp 0x403ba4
push eax
push eax
push 0
push 0x439400
call sub.KERNEL32.dll_CreateDirectoryA
push eax
push 0x439400
call sub.KERNEL32.dll_SetCurrentDirectoryA
add esp, 0xc
cmp byte [0x438400], 0
jne 0x403ac1
push eax
push eax
push 0x438c00
push 0x438400
call fcn.0040631c
pop ebx
pop esi
push ecx
push ecx
push edi
push section..ndata
call fcn.0040631c
xor ebx, ebx
pop eax
mov word [0x433400], 0x41
mov esi, str.Error_launching_installer
pop edx
push eax
push eax
mov eax, dword [0x42f948]
push dword [eax + 0x120]
push 0x42a850
call fcn.004063d3
push edi
push 0x42a850
call sub.KERNEL32.dll_DeleteFileA
add esp, 0xc
test esi, esi
je 0x403b63
push ecx
push 1
push 0x42a850
push 0x439c00
call sub.KERNEL32.dll_CopyFileA
pop edx
test eax, eax
je 0x403b63
push eax
push eax
push 0
push 0x42a850
call fcn.00406873
mov eax, dword [0x42f948]
push dword [eax + 0x124]
push 0x42a850
call fcn.004063d3
push edi
push 0x42a850
call fcn.00406d76
add esp, 0xc
test eax, eax
je 0x403b63
sub esp, 0xc
xor esi, esi
push eax
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
inc ebx
inc byte [0x433400]
cmp ebx, 0x1a
jne 0x403ae0
push ecx
push ecx
push 0
push 0x439400
call fcn.00406873
mov dword [ebp - 0x180], 0
pop eax
pop edx
jmp 0x403ba4
mov dword [0x42f914], 0xffffffff
call fcn.00405c12
mov dword [ebp - 0x180], eax
call fcn.00403794
call sub.OLE32.dll_OleUninitialize
test esi, esi
je 0x403bc7
push edi
push edi
push 0x200010
push esi
call fcn.00406cdf
push ebx
push 2
jmp 0x403c88
cmp dword [0x42f8fc], 0
je 0x403c6f
sub esp, 0xc
push 3
call fcn.004060cb
mov ebx, eax
push 4
call fcn.004060cb
mov esi, eax
push 5
call fcn.004060cb
add esp, 0xc
mov edi, eax
test ebx, ebx
je 0x403c51
test esi, esi
je 0x403c51
test eax, eax
je 0x403c51
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 0x403c51
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 0x403c6f
sub esp, 0xc
push 9
call fcn.00403103
add esp, 0xc
mov eax, dword [0x42f914]
cmp eax, 0xffffffff
je 0x403c7f
mov dword [ebp - 0x180], eax
sub esp, 0xc
push dword [ebp - 0x180]
call sub.KERNEL32.dll_ExitProcess
nop
nop
nop