Function at 0x404139
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
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x19c
call dword [sym.imp.COMCTL32.DLL_InitCommonControls]
mov dword [esp], 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
mov dword [esp], 0
call dword [sym.imp.ole32.dll_OleInitialize]
push esi
mov dword [esp], 8
mov dword [0x4337f4], eax
call fcn.00407dd3
mov dword [0x433850], eax
lea eax, [ebp - 0x178]
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x160
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x40b2a9
call dword [sym.imp.SHELL32.DLL_SHGetFileInfoA]
sub esp, 0x14
mov dword [esp + 4], str.NSIS_Error
mov dword [esp], 0x43385c
call fcn.00407881
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [esp], 0x43c000
mov dword [esp + 4], eax
call fcn.00407881
push eax
push eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x433858], eax
movsx eax, byte [0x43c000]
push edx
mov edx, 0x43c001
cmp al, 0x22
je 0x40420b
mov edx, 0x43c000
mov eax, 0x20
mov dword [esp], edx
xor ebx, ebx
mov dword [esp + 4], eax
call fcn.0040746c
push edx
push edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x18c], eax
push ecx
cmp byte [eax], 0
je 0x4042cd
mov dl, byte [eax]
cmp dl, 0x20
jne 0x40423e
inc eax
jmp 0x404234
cmp dl, 0x22
mov ecx, 0x20
jne 0x40424e
inc eax
mov ecx, 0x22
cmp byte [eax], 0x2f
jne 0x4042b0
cmp byte [eax + 1], 0x53
lea edi, [eax + 1]
jne 0x40426d
mov dl, byte [eax + 2]
mov esi, ebx
or esi, 2
or edx, 0x20
cmp dl, 0x20
cmove ebx, esi
cmp dword [eax + 1], 0x4352434e
jne 0x404287
mov dl, byte [eax + 5]
mov esi, ebx
or esi, 4
or edx, 0x20
cmp dl, 0x20
cmove ebx, esi
cmp dword [eax - 1], 0x3d442f20
jne 0x4042ae
mov dword [eax - 1], 0
add eax, 3
mov dword [esp + 4], eax
mov dword [esp], 0x43c400
call fcn.00407881
push edi
push edi
jmp 0x4042cd
mov eax, edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0040746c
xor edx, edx
push esi
push esi
cmp byte [eax], 0x22
sete dl
add eax, edx
jmp 0x40422b
mov dword [esp + 4], 0x43d400
mov dword [esp], 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ecx
push ecx
call fcn.00404094
test eax, eax
je 0x404314
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp], 0x43d000
call edi
push eax
mov dword [esp], ebx
xor ebx, ebx
call fcn.00403d76
test eax, eax
mov esi, eax
push edx
jne 0x4044ca
jmp 0x404354
mov dword [esp + 4], 0x3fb
mov dword [esp], 0x43d400
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
mov dword [esp + 4], str.Temp
mov dword [esp], 0x43d400
call fcn.004078b4
push edi
push edi
call fcn.00404094
test eax, eax
jne 0x4042ed
mov esi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x4044c8
cmp dword [0x433848], 0
je 0x4043c0
mov dword [esp + 4], 0
mov dword [esp], 0x43c000
call fcn.0040746c
push ecx
push ecx
cmp eax, 0x43c000
jb 0x4043d6
cmp dword [eax], 0x3d3f5f20
je 0x404385
dec eax
jmp 0x404373
lea ebx, [eax + 4]
mov byte [eax], 0
mov dword [esp], ebx
call fcn.00407d1a
test eax, eax
push ecx
je 0x40461b
mov dword [esp + 4], ebx
mov dword [esp], 0x43c400
call fcn.00407881
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x43c800
call fcn.00407881
push edx
push edx
mov dword [0x4337e8], 0xffffffff
call fcn.00405da1
mov ebx, eax
jmp 0x4044ca
mov dword [esp + 4], str.nsu.tmp
mov dword [esp], 0x43d400
call fcn.004078b4
push eax
push eax
mov dword [esp + 4], 0x43cc00
mov dword [esp], 0x43d400
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
push edx
push edx
je 0x40461b
mov dword [esp + 4], 0
mov dword [esp], 0x43d400
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
push eax
mov dword [esp], 0x43d400
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [0x43c400], 0
push eax
jne 0x40444f
mov dword [esp + 4], 0x43cc00
mov dword [esp], 0x43c400
call fcn.00407881
push eax
push eax
mov eax, dword [ebp - 0x18c]
mov ebx, 0x1a
mov esi, str.Error_launching_installer
mov dword [esp], section..ndata
mov dword [esp + 4], eax
call fcn.00407881
mov word [0x437400], 0x41
push eax
push eax
mov eax, dword [0x4337fc]
mov eax, dword [eax + 0x120]
mov dword [esp], 0x42e810
mov dword [esp + 4], eax
call fcn.004079d1
push ecx
push ecx
mov dword [esp], 0x42e810
call edi
test esi, esi
push eax
jne 0x404625
inc byte [0x437400]
dec ebx
jne 0x40447a
mov dword [esp + 4], 0
mov dword [esp], 0x43d400
call fcn.00407e26
push ebx
push ebx
xor ebx, ebx
call fcn.004040f8
call dword [sym.imp.ole32.dll_OleUninitialize]
test esi, esi
je 0x4044f7
mov dword [esp + 4], 0x200010
mov dword [esp], esi
call fcn.004073fe
push ecx
push ecx
mov dword [esp], 2
jmp 0x404615
cmp dword [0x4337d0], 0
je 0x404607
mov dword [esp], 3
call fcn.00407dd3
push edx
mov edi, eax
mov dword [esp], 4
call fcn.00407dd3
push ecx
mov esi, eax
mov dword [esp], 5
call fcn.00407dd3
test esi, esi
mov dword [ebp - 0x18c], eax
push edx
je 0x4045df
test edi, edi
je 0x4045df
test eax, eax
je 0x4045df
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x17c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x28
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
je 0x4045df
lea eax, [ebp - 0x174]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SeShutdownPrivilege
mov dword [esp], 0
call esi
lea eax, [ebp - 0x178]
mov dword [ebp - 0x178], 1
mov dword [ebp - 0x16c], 2
sub esp, 0xc
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x17c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ebp - 0x18c]
sub esp, 0x18
mov dword [esp + 4], 0
mov dword [esp], 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
push edi
push edi
jne 0x404607
mov dword [esp], 9
call fcn.004038c1
push esi
mov eax, dword [0x4337e8]
cmp eax, 0xffffffff
cmove eax, ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, str.Error_launching_installer
jmp 0x4044c8
mov dword [esp + 8], 1
mov dword [esp + 4], 0x42e810
mov dword [esp], 0x43dc00
call dword [sym.imp.KERNEL32.dll_CopyFileA]
sub esp, 0xc
test eax, eax
je 0x4044a9
mov dword [esp + 4], 0
mov dword [esp], 0x42e810
call fcn.00407e26
push eax
push eax
mov eax, dword [0x4337fc]
mov eax, dword [eax + 0x124]
mov dword [esp], 0x42e810
mov dword [esp + 4], eax
call fcn.004079d1
push eax
push eax
mov dword [esp], 0x42e810
call fcn.00407340
test eax, eax
push edx
je 0x4044a9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
xor esi, esi
jmp 0x4044a9