Function at 0x404044
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, 0x1ac
call sub.COMCTL32.DLL_InitCommonControls
mov dword [esp], 0x8001
call sub.KERNEL32.dll_SetErrorMode
push esi
mov dword [esp], 0
call sub.OLE32.dll_OleInitialize
mov dword [0x425c88], eax
push ebx
mov dword [esp], 8
call fcn.004072a6
mov dword [0x425d38], eax
lea eax, [ebp - 0x17c]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x160
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x40b2a4
call sub.SHELL32.DLL_SHGetFileInfoA
sub esp, 0x14
mov dword [esp + 4], str.NSIS_Error
mov dword [esp], 0x425d68
call fcn.0040752a
push edx
push edx
call sub.KERNEL32.dll_GetCommandLineA
mov dword [esp], 0x42e000
mov dword [esp + 4], eax
call fcn.0040752a
push eax
push eax
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x425d58], eax
push edi
cmp byte [0x42e000], 0x22
je 0x404108
mov eax, 0x42e000
mov dl, 0x20
jmp 0x40410f
mov eax, 0x42e001
mov dl, 0x22
movsx edx, dl
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040732c
push esi
push esi
mov dword [esp], eax
call fcn.00409104
mov esi, eax
push ebx
xor ebx, ebx
jmp 0x4041b7
inc eax
mov dl, byte [eax]
cmp dl, 0x20
je 0x404132
mov cl, 0x20
cmp dl, 0x22
jne 0x404144
inc eax
mov cl, 0x22
cmp byte [eax], 0x2f
jne 0x40419c
inc eax
cmp byte [eax], 0x53
jne 0x40415d
mov dl, byte [eax + 1]
or edx, 0x20
cmp dl, 0x20
jne 0x40415d
or ebx, 2
cmp dword [eax], 0x4352434e
jne 0x404173
mov dl, byte [eax + 4]
or edx, 0x20
cmp dl, 0x20
jne 0x404173
or ebx, 4
lea edx, [eax - 2]
cmp dword [eax - 2], 0x3d442f20
jne 0x40419c
mov dword [edx], 0
add eax, 2
mov dword [esp + 4], eax
mov dword [esp], 0x42e400
call fcn.0040752a
push ecx
push ecx
jmp 0x4041c0
movsx ecx, cl
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0040732c
push edx
push edx
xor edx, edx
cmp byte [eax], 0x22
sete dl
add eax, edx
cmp byte [eax], 0
jne 0x404133
mov dword [esp + 4], 0x42f400
mov dword [esp], 0x400
call sub.KERNEL32.dll_GetTempPathA
push edi
push edi
call fcn.00403fe1
test eax, eax
jne 0x40421b
mov dword [esp + 4], 0x3fb
mov dword [esp], 0x42f400
call sub.KERNEL32.dll_GetWindowsDirectoryA
push ecx
push ecx
mov dword [esp + 4], str.Temp
mov dword [esp], 0x42f400
call fcn.00407496
push edx
push edx
call fcn.00403fe1
test eax, eax
jne 0x40421b
mov ebx, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x404237
mov dword [esp], 0x42f000
call sub.KERNEL32.dll_DeleteFileA
push eax
mov dword [esp], ebx
call fcn.00403afd
test eax, eax
push edi
je 0x40423e
mov ebx, eax
xor esi, esi
jmp 0x404419
cmp dword [0x425d18], 0
je 0x404406
mov dword [esp + 4], 0
mov dword [esp], 0x42e000
call fcn.0040732c
push ebx
push ebx
jmp 0x404264
dec eax
cmp eax, 0x42e000
jb 0x404278
cmp dword [eax], 0x3d3f5f20
jne 0x404263
jmp 0x404572
mov dword [esp + 4], str.nsu.tmp
mov dword [esp], 0x42f400
call fcn.00407496
push ecx
push ecx
mov dword [esp + 4], 0x42ec00
mov dword [esp], 0x42f400
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
push edx
push edx
je 0x404589
jmp 0x4042d7
mov dword [esp + 4], ebx
mov dword [esp], 0x42e400
call fcn.0040752a
push edi
push edi
mov dword [esp + 4], ebx
mov dword [esp], 0x42e800
call fcn.0040752a
push esi
push esi
jmp 0x404406
mov dword [esp + 4], 0
mov dword [esp], 0x42f400
call sub.KERNEL32.dll_CreateDirectoryA
push ebx
push ebx
mov dword [esp], 0x42f400
call sub.KERNEL32.dll_SetCurrentDirectoryA
cmp byte [0x42e400], 0
push ecx
jne 0x404319
mov dword [esp + 4], 0x42ec00
mov dword [esp], 0x42e400
call fcn.0040752a
push edx
push edx
mov dword [esp + 4], esi
mov dword [esp], section..ndata
call fcn.0040752a
xor esi, esi
mov word [0x429400], 0x41
mov ebx, str.Error_launching_installer
push eax
push eax
mov eax, dword [0x425ca8]
mov eax, dword [eax + 0x120]
mov dword [esp], 0x421d60
mov dword [esp + 4], eax
call fcn.0040761b
push edi
push edi
mov dword [esp], 0x421d60
call sub.KERNEL32.dll_DeleteFileA
test ebx, ebx
push ecx
je 0x4043db
mov dword [esp + 8], 1
mov dword [esp + 4], 0x421d60
mov dword [esp], 0x42fc00
call sub.KERNEL32.dll_CopyFileA
sub esp, 0xc
test eax, eax
je 0x4043db
mov dword [esp + 4], 0
mov dword [esp], 0x421d60
call fcn.00407b08
mov eax, dword [0x425ca8]
push edx
push edx
mov eax, dword [eax + 0x124]
mov dword [esp], 0x421d60
mov dword [esp + 4], eax
call fcn.0040761b
push eax
push eax
mov dword [esp], 0x421d60
call fcn.0040811c
test eax, eax
push edi
je 0x4043db
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
xor ebx, ebx
push ecx
inc esi
inc byte [0x429400]
cmp esi, 0x1a
jne 0x40433b
mov dword [esp + 4], 0
mov dword [esp], 0x42f400
xor si, si
call fcn.00407b08
push edx
push edx
jmp 0x404419
mov dword [0x425c74], 0xffffffff
call fcn.00406d19
xor ebx, ebx
mov esi, eax
call fcn.00403f84
call sub.OLE32.dll_OleUninitialize
test ebx, ebx
je 0x404445
mov dword [esp + 4], 0x200010
mov dword [esp], ebx
call fcn.00408071
push eax
push eax
mov dword [esp], 2
jmp 0x40456d
cmp dword [0x425c5c], 0
je 0x40455e
mov dword [esp], 3
call fcn.004072a6
mov dword [ebp - 0x18c], eax
push edi
mov dword [esp], 4
call fcn.004072a6
mov edi, eax
push ebx
mov dword [esp], 5
call fcn.004072a6
mov ebx, eax
test edi, edi
push ecx
je 0x404537
cmp dword [ebp - 0x18c], 0
je 0x404537
test eax, eax
je 0x404537
call sub.KERNEL32.dll_GetCurrentProcess
lea edx, [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x28
mov dword [esp], eax
call dword [ebp - 0x18c]
sub esp, 0xc
test eax, eax
je 0x404537
lea edx, [ebp - 0x17c]
lea eax, [ebp - 0x178]
mov dword [ebp - 0x190], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.SeShutdownPrivilege
mov dword [esp], 0
call edi
mov edx, dword [ebp - 0x190]
sub esp, 0xc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x17c], 1
mov dword [ebp - 0x170], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
sub esp, 0x18
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.USER32.dll_ExitWindowsEx
test eax, eax
push edx
push edx
jne 0x40455e
mov dword [esp], 9
call fcn.004035b6
push edi
mov eax, dword [0x425c74]
cmp eax, 0xffffffff
jne 0x40456a
mov eax, esi
mov dword [esp], eax
call sub.KERNEL32.dll_ExitProcess
mov byte [eax], 0
lea ebx, [eax + 4]
mov dword [esp], ebx
call fcn.0040795d
test eax, eax
push esi
jne 0x4042ae
mov ebx, str.Error_launching_installer
jmp 0x404237