Function at 0x40322e
Capabilities:
Accept command line arguments
Copy file
Create directory
Delete file
Get common file path
Get file system object information
Set current directory
Set environment variable
Shutdown system
Terminate process

Disassembly:
sub esp, 0x2d8
push ebx
push ebp
push esi
push edi
push 0x20
xor ebp, ebp
pop esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [esp + 0x14], ebp
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
call dword [sym.imp.ole32.dll_OleInitialize]
push 9
mov dword [0x434f78], eax
call fcn.004061b2
mov dword [0x434ec4], eax
push ebp
lea eax, [esp + 0x38]
push 0x2b4
push eax
push ebp
push 0x42b1d8
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push str.NSIS_Error
push 0x433ec0
call fcn.00405e48
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, 0x43f000
push eax
push ebx
call fcn.00405e48
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x22
mov dword [0x434ec0], eax
pop edi
mov eax, ebx
cmp word [0x43f000], di
jne 0x4032cf
mov esi, edi
mov eax, 0x43f002
push esi
push eax
call fcn.004058c0
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
mov dword [esp + 0x1c], ecx
jmp 0x4033de
push 0x20
pop edx
cmp ax, dx
jne 0x4032f7
inc ecx
inc ecx
cmp word [ecx], dx
je 0x4032f0
cmp word [ecx], di
mov dword [esp + 0x20], edx
jne 0x403306
inc ecx
mov dword [esp + 0x20], edi
inc ecx
cmp word [ecx], 0x2f
jne 0x4033cb
inc ecx
inc ecx
cmp word [ecx], 0x53
jne 0x403330
mov ax, word [ecx + 2]
cmp ax, dx
je 0x403326
cmp ax, bp
jne 0x403330
mov dword [0x434f60], 1
movzx eax, word [0x40a2ba]
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov edi, eax
xor esi, esi
movzx eax, word [0x40a2b8]
cdq
movzx edx, word [str.NCRC]
or edi, eax
movzx eax, word [0x40a2b6]
shl eax, 0x10
or eax, edx
cdq
or esi, eax
mov eax, dword [ecx]
or edi, edx
cmp eax, esi
jne 0x403386
mov eax, dword [ecx + 4]
cmp eax, edi
jne 0x403386
mov ax, word [ecx + 8]
cmp ax, 0x20
je 0x403381
cmp ax, bp
jne 0x403386
or dword [esp + 0x14], 4
movzx eax, word [0x40a2ae]
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov edi, eax
xor esi, esi
movzx eax, word [0x40a2ac]
cdq
movzx edx, word [str.__D]
or edi, eax
movzx eax, word [0x40a2aa]
shl eax, 0x10
or eax, edx
cdq
or esi, eax
mov eax, dword [ecx - 4]
or edi, edx
cmp eax, esi
jne 0x4033c8
mov eax, dword [ecx]
cmp eax, edi
je 0x4033ec
push 0x22
pop edi
push dword [esp + 0x20]
push ecx
call fcn.004058c0
mov ecx, eax
cmp word [ecx], di
jne 0x4033de
inc ecx
inc ecx
mov ax, word [ecx]
cmp ax, bp
jne 0x4032e8
jmp 0x4033fe
mov word [ecx - 4], bp
add ecx, 4
push ecx
push 0x43f800
call fcn.00405e48
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x441800
push edi
push 0x400
call esi
call fcn.004031fa
test eax, eax
jne 0x403470
push 0x3fb
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Temp
push edi
call sub.KERNEL32.dll_lstrcatW
call fcn.004031fa
test eax, eax
jne 0x403470
push edi
push 0x3fc
call esi
push 0x40a294
push edi
call sub.KERNEL32.dll_lstrcatW
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push str.TEMP
call esi
push edi
push 0x40a280
call esi
call fcn.004031fa
test eax, eax
je 0x40353b
push 0x441000
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x14]
call fcn.00402d69
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x40353b
cmp dword [0x434edc], ebp
je 0x40352b
push ebp
push ebx
call fcn.004058c0
mov esi, eax
cmp esi, ebx
jb 0x4034f5
movzx eax, word [0x40a27a]
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov ebp, eax
movzx eax, word [0x40a278]
movzx ecx, word [str.___]
cdq
or ebp, eax
movzx eax, word [0x40a276]
shl eax, 0x10
or eax, ecx
xor ecx, ecx
cdq
or ecx, eax
mov eax, ebp
or eax, edx
mov edx, dword [esi]
cmp edx, ecx
jne 0x4034ed
mov edx, dword [esi + 4]
cmp edx, eax
je 0x4034f3
dec esi
dec esi
cmp esi, ebx
jae 0x4034e0
xor ebp, ebp
cmp esi, ebx
mov dword [esp + 0x10], str.Error_launching_installer
jb 0x403566
mov word [esi], bp
add esi, 8
push esi
call fcn.0040599b
test eax, eax
je 0x40353b
push esi
push 0x43f800
call fcn.00405e48
push esi
push 0x440000
call fcn.00405e48
mov dword [esp + 0x10], ebp
or dword [0x434f6c], 0xffffffff
call fcn.004037db
mov dword [esp + 0x18], eax
call fcn.00403701
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [esp + 0x10], ebp
je 0x403646
push 0x200010
push dword [esp + 0x14]
call fcn.00405624
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.nsu.tmp
push edi
call sub.KERNEL32.dll_lstrcatW
mov esi, 0x440800
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40353b
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp word [0x43f800], bp
jne 0x4035a5
push esi
push 0x43f800
call fcn.00405e48
push dword [esp + 0x1c]
push section..ndata
call fcn.00405e48
movzx eax, word [0x40a25a]
movzx ecx, word [0x40a258]
shl eax, 0x10
or eax, ecx
push 0x1a
mov dword [0x435800], eax
pop ebx
mov esi, 0x42a9d8
mov eax, dword [0x434ed0]
push dword [eax + 0x120]
push esi
call fcn.00405e6a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x10], ebp
je 0x403630
push 1
push esi
push 0x442800
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403630
push ebp
push esi
call fcn.00405ce2
mov eax, dword [0x434ed0]
push dword [eax + 0x124]
push esi
call fcn.00405e6a
push esi
call fcn.004055bf
cmp eax, ebp
je 0x403630
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebp
inc word [0x435800]
dec ebx
jne 0x4035d3
push ebp
push edi
call fcn.00405ce2
jmp 0x40353b
cmp dword [0x434f54], ebp
je 0x4036e9
push 4
call fcn.004061b2
push 5
mov ebx, eax
call fcn.004061b2
push 6
mov esi, eax
call fcn.004061b2
cmp ebx, ebp
mov edi, eax
je 0x4036b9
cmp esi, ebp
je 0x4036b9
cmp edi, ebp
je 0x4036b9
lea eax, [esp + 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x4036b9
lea eax, [esp + 0x28]
push eax
push str.SeShutdownPrivilege
push ebp
call esi
push ebp
push ebp
lea eax, [esp + 0x2c]
push ebp
push eax
push ebp
push dword [esp + 0x30]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x48], 2
call edi
push 7
call fcn.004061b2
cmp eax, ebp
mov esi, 0x80040002
je 0x4036d5
push esi
push 0x25
push ebp
push ebp
push ebp
call eax
test eax, eax
je 0x4036e2
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4036e9
push 9
call fcn.0040140b
mov eax, dword [0x434f6c]
cmp eax, 0xffffffff
je 0x4036f7
mov dword [esp + 0x18], eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_ExitProcess]