Function at 0x403834
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 [0x7a3490], eax
push 8
call fcn.004060e3
mov dword [0x7a3540], eax
lea eax, [ebp - 0x170]
push 0
push 0x160
push eax
push 0
push 0x40a250
call sub.SHELL32.DLL_SHGetFileInfoA
sub esp, 0xc
push str.NSIS_Error
push 0x7a3570
call fcn.00406334
add esp, 0x18
call sub.KERNEL32.dll_GetCommandLineA
push edx
push edx
push eax
push 0x7ac000
call fcn.00406334
push edi
push 0
call sub.KERNEL32.dll_GetModuleHandleA
add esp, 0xc
mov dword [0x7a3560], eax
cmp byte [0x7ac000], 0x22
je 0x4038cd
mov edx, 0x7ac000
mov al, 0x20
jmp 0x4038d4
mov edx, 0x7ac001
mov al, 0x22
movsx eax, al
push esi
push esi
push eax
push edx
call fcn.00406165
push ebx
push eax
call fcn.004080d0
xor ebx, ebx
mov edi, eax
mov edx, eax
add esp, 0xc
jmp 0x40396d
inc edx
mov al, byte [edx]
cmp al, 0x20
je 0x4038f2
mov cl, 0x20
cmp al, 0x22
jne 0x403902
inc edx
mov cl, 0x22
cmp byte [edx], 0x2f
jne 0x403953
inc edx
cmp byte [edx], 0x53
jne 0x40391a
mov al, byte [edx + 1]
or eax, 0x20
cmp al, 0x20
jne 0x40391a
or ebx, 2
cmp dword [edx], 0x4352434e
jne 0x40392f
mov al, byte [edx + 4]
or eax, 0x20
cmp al, 0x20
jne 0x40392f
or ebx, 4
cmp dword [edx - 2], 0x3d442f20
jne 0x403953
mov dword [edx - 2], 0
lea eax, [edx + 2]
push ecx
push ecx
push eax
push 0x7ac400
call fcn.00406334
pop eax
pop edx
jmp 0x403972
push eax
push eax
movsx eax, cl
push eax
push edx
call fcn.00406165
mov edx, eax
pop esi
pop eax
xor eax, eax
cmp byte [edx], 0x22
sete al
add edx, eax
cmp byte [edx], 0
jne 0x4038f3
push ecx
push ecx
push 0x7ad400
push 0x400
call sub.KERNEL32.dll_GetTempPathA
pop eax
pop edx
call fcn.004037dd
test eax, eax
jne 0x4039cd
push eax
push eax
push 0x3fb
push 0x7ad400
call sub.KERNEL32.dll_GetWindowsDirectoryA
push str.Temp
push 0x7ad400
call fcn.004062b0
pop esi
pop eax
call fcn.004037dd
test eax, eax
jne 0x4039cd
mov esi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [ebp - 0x180], 0
jmp 0x403bb0
sub esp, 0xc
push 0x7ad000
call sub.KERNEL32.dll_DeleteFileA
push ebx
call fcn.00403467
mov dword [ebp - 0x180], 0
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x403bb0
cmp dword [0x7a3520], 0
je 0x403b9b
push ebx
push ebx
push 0
push 0x7ac000
call fcn.00406165
pop edx
pop ecx
jmp 0x403a17
dec eax
cmp eax, 0x7ac000
jb 0x403a5b
cmp dword [eax], 0x3d3f5f20
jne 0x403a16
sub esp, 0xc
mov byte [eax], 0
lea ebx, [eax + 4]
push ebx
call fcn.00406702
add esp, 0xc
test eax, eax
je 0x403a81
push eax
push eax
push ebx
push 0x7ac400
call fcn.00406334
push ebx
push 0x7ac800
call fcn.00406334
pop edi
pop eax
jmp 0x403b9b
push ebx
push ebx
push str.nsu.tmp
push 0x7ad400
call fcn.004062b0
push 0x7acc00
push 0x7ad400
call sub.KERNEL32.dll_lstrcmpiA
pop edx
test eax, eax
pop ecx
jne 0x403a95
mov esi, str.Error_launching_installer
mov dword [ebp - 0x180], 0
jmp 0x403bb0
push eax
push eax
push 0
push 0x7ad400
call sub.KERNEL32.dll_CreateDirectoryA
push eax
push 0x7ad400
call sub.KERNEL32.dll_SetCurrentDirectoryA
add esp, 0xc
cmp byte [0x7ac400], 0
jne 0x403acd
push eax
push eax
push 0x7acc00
push 0x7ac400
call fcn.00406334
pop ebx
pop esi
push ecx
push ecx
push edi
push section..ndata
call fcn.00406334
xor ebx, ebx
pop eax
mov word [0x7a7400], 0x41
mov esi, str.Error_launching_installer
pop edx
push eax
push eax
mov eax, dword [0x7a34b0]
push dword [eax + 0x120]
push 0x79f560
call fcn.004063eb
push edi
push 0x79f560
call sub.KERNEL32.dll_DeleteFileA
add esp, 0xc
test esi, esi
je 0x403b6f
push ecx
push 1
push 0x79f560
push 0x7adc00
call sub.KERNEL32.dll_CopyFileA
pop edx
test eax, eax
je 0x403b6f
push eax
push eax
push 0
push 0x79f560
call fcn.0040688b
mov eax, dword [0x7a34b0]
push dword [eax + 0x124]
push 0x79f560
call fcn.004063eb
push edi
push 0x79f560
call fcn.00406d8e
add esp, 0xc
test eax, eax
je 0x403b6f
sub esp, 0xc
xor esi, esi
push eax
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
inc ebx
inc byte [0x7a7400]
cmp ebx, 0x1a
jne 0x403aec
push ecx
push ecx
push 0
push 0x7ad400
call fcn.0040688b
mov dword [ebp - 0x180], 0
pop eax
pop edx
jmp 0x403bb0
mov dword [0x7a347c], 0xffffffff
call fcn.00405c26
mov dword [ebp - 0x180], eax
call fcn.004037a0
call sub.OLE32.dll_OleUninitialize
test esi, esi
je 0x403bd3
push edi
push edi
push 0x200010
push esi
call fcn.00406cf7
push ebx
push 2
jmp 0x403c94
cmp dword [0x7a3464], 0
je 0x403c7b
sub esp, 0xc
push 3
call fcn.004060e3
mov ebx, eax
push 4
call fcn.004060e3
mov esi, eax
push 5
call fcn.004060e3
add esp, 0xc
mov edi, eax
test ebx, ebx
je 0x403c5d
test esi, esi
je 0x403c5d
test eax, eax
je 0x403c5d
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 0x403c5d
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 0x403c7b
sub esp, 0xc
push 9
call fcn.00403128
add esp, 0xc
mov eax, dword [0x7a347c]
cmp eax, 0xffffffff
je 0x403c8b
mov dword [ebp - 0x180], eax
sub esp, 0xc
push dword [ebp - 0x180]
call sub.KERNEL32.dll_ExitProcess
nop
nop
nop
nop
nop
nop
nop