Function at 0x404173
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 ebx
mov dword [esp], 0
call sub.OLE32.dll_OleInitialize
push esi
mov dword [0x4307f4], eax
mov dword [esp], 8
call fcn.00407d0c
push edi
mov dword [0x430850], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x160
lea eax, [ebp - 0x178]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x40b2a9
call sub.SHELL32.DLL_SHGetFileInfoA
sub esp, 0x14
mov dword [esp + 4], str.NSIS_Error
mov dword [esp], 0x43085c
call fcn.004077f4
push eax
push eax
call sub.KERNEL32.dll_GetCommandLineA
mov dword [esp + 4], eax
mov dword [esp], 0x439000
call fcn.004077f4
push eax
push eax
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
push edx
mov dword [0x430858], eax
movsx eax, byte [0x439000]
mov edx, 0x439001
cmp al, 0x22
je 0x40423f
mov edx, 0x439000
mov eax, 0x20
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004073ff
push edx
push edx
mov dword [esp], eax
call fcn.004097ac
push ecx
mov esi, eax
mov edx, eax
xor ebx, ebx
jmp 0x4042eb
inc edx
mov al, byte [edx]
cmp al, 0x20
je 0x404261
mov ecx, 0x20
cmp al, 0x22
jne 0x404277
inc edx
mov ecx, 0x22
cmp byte [edx], 0x2f
jne 0x4042d1
lea edi, [edx + 1]
cmp byte [edx + 1], 0x53
jne 0x404292
mov al, byte [edx + 2]
or eax, 0x20
cmp al, 0x20
jne 0x404292
or ebx, 2
cmp dword [edx + 1], 0x4352434e
jne 0x4042a8
mov al, byte [edx + 5]
or eax, 0x20
cmp al, 0x20
jne 0x4042a8
or ebx, 4
cmp dword [edx - 1], 0x3d442f20
jne 0x4042cf
mov dword [edx - 1], 0
add edx, 3
mov dword [esp + 4], edx
mov dword [esp], 0x439400
call fcn.004077f4
push eax
push eax
jmp 0x4042f4
mov edx, edi
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.004073ff
push edi
push edi
mov edx, eax
xor eax, eax
cmp byte [edx], 0x22
sete al
add edx, eax
cmp byte [edx], 0
jne 0x404262
mov dword [esp + 4], 0x43a400
mov dword [esp], 0x400
call sub.KERNEL32.dll_GetTempPathA
push ecx
push ecx
call fcn.004040d0
test eax, eax
je 0x404337
mov dword [esp], 0x43a000
call sub.KERNEL32.dll_DeleteFileA
push eax
mov dword [esp], ebx
call fcn.00403daa
push edx
mov edi, eax
xor ebx, ebx
test eax, eax
jne 0x40451e
jmp 0x404371
mov dword [esp + 4], 0x3fb
mov dword [esp], 0x43a400
call sub.KERNEL32.dll_GetWindowsDirectoryA
push ecx
push ecx
mov dword [esp + 4], str.Temp
mov dword [esp], 0x43a400
call fcn.00407824
push edi
push edi
call fcn.004040d0
test eax, eax
jne 0x404313
jmp 0x404517
cmp dword [0x430848], 0
je 0x404504
mov dword [esp + 4], 0
mov dword [esp], 0x439000
call fcn.004073ff
push edx
push edx
jmp 0x404397
dec eax
cmp eax, 0x439000
jb 0x40468d
cmp dword [eax], 0x3d3f5f20
jne 0x404396
jmp 0x40466c
mov dword [esp + 4], ebx
mov dword [esp], 0x439400
call fcn.004077f4
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x439800
call fcn.004077f4
push eax
push eax
jmp 0x404504
mov dword [esp + 4], 0
mov dword [esp], 0x43a400
call sub.KERNEL32.dll_CreateDirectoryA
push eax
push eax
mov dword [esp], 0x43a400
call sub.KERNEL32.dll_SetCurrentDirectoryA
push eax
cmp byte [0x439400], 0
jne 0x40441a
mov dword [esp + 4], 0x439c00
mov dword [esp], 0x439400
call fcn.004077f4
push eax
push eax
mov dword [esp + 4], esi
mov dword [esp], section..ndata
call fcn.004077f4
push edi
push edi
mov word [0x434400], 0x41
mov ebx, 0x1a
mov edi, str.Error_launching_installer
mov eax, dword [0x4307fc]
mov eax, dword [eax + 0x120]
mov dword [esp + 4], eax
mov dword [esp], 0x42b810
call fcn.00407935
push ecx
push ecx
mov dword [esp], 0x42b810
call sub.KERNEL32.dll_DeleteFileA
push esi
test edi, edi
je 0x4044df
mov dword [esp + 8], 1
mov dword [esp + 4], 0x42b810
mov dword [esp], 0x43ac00
call sub.KERNEL32.dll_CopyFileA
sub esp, 0xc
test eax, eax
je 0x4044df
mov dword [esp + 4], 0
mov dword [esp], 0x42b810
call fcn.00407d5c
push eax
push eax
mov eax, dword [0x4307fc]
mov eax, dword [eax + 0x124]
mov dword [esp + 4], eax
mov dword [esp], 0x42b810
call fcn.00407935
push eax
push eax
mov dword [esp], 0x42b810
call fcn.004072d4
push edx
test eax, eax
je 0x4044df
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push esi
xor edi, edi
inc byte [0x434400]
dec ebx
jne 0x40443f
mov dword [esp + 4], 0
mov dword [esp], 0x43a400
call fcn.00407d5c
push ebx
push ebx
jmp 0x40451c
mov dword [0x4307e8], 0xffffffff
call fcn.00405d7b
mov ebx, eax
jmp 0x40451e
mov edi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
xor ebx, ebx
call fcn.00404133
call sub.OLE32.dll_OleUninitialize
test edi, edi
je 0x40454a
mov dword [esp + 4], 0x200010
mov dword [esp], edi
call fcn.0040738d
push ecx
push ecx
mov dword [esp], 2
jmp 0x404667
cmp dword [0x4307d0], 0
je 0x404658
mov dword [esp], 3
call fcn.00407d0c
push edx
mov edi, eax
mov dword [esp], 4
call fcn.00407d0c
push ecx
mov esi, eax
mov dword [esp], 5
call fcn.00407d0c
push edx
mov dword [ebp - 0x18c], eax
test esi, esi
je 0x404631
test edi, edi
je 0x404631
test eax, eax
je 0x404631
call sub.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 0x404631
lea edi, [ebp - 0x178]
lea eax, [ebp - 0x174]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SeShutdownPrivilege
mov dword [esp], 0
call esi
sub esp, 0xc
mov dword [ebp - 0x178], 1
mov dword [ebp - 0x16c], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x17c]
mov dword [esp], eax
call dword [ebp - 0x18c]
sub esp, 0x18
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.USER32.dll_ExitWindowsEx
push edi
push edi
test eax, eax
jne 0x404658
mov dword [esp], 9
call fcn.00403904
push esi
mov eax, dword [0x4307e8]
cmp eax, 0xffffffff
jne 0x404664
mov eax, ebx
mov dword [esp], eax
call sub.KERNEL32.dll_ExitProcess
mov byte [eax], 0
lea ebx, [eax + 4]
mov dword [esp], ebx
call fcn.00407c5e
push ecx
test eax, eax
jne 0x4043af
mov edi, str.Error_launching_installer
jmp 0x40451c
mov dword [esp + 4], str.nsu.tmp
mov dword [esp], 0x43a400
call fcn.00407824
push eax
push eax
mov dword [esp + 4], 0x439c00
mov dword [esp], 0x43a400
call sub.KERNEL32.dll_lstrcmpiA
push edx
push edx
test eax, eax
je 0x404683
jmp 0x4043d8