Function at 0x403229
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, 0x2d4
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push 0x20
pop esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [esp + 0x1c], 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 8
mov dword [0x434f58], eax
call fcn.0040610b
mov dword [0x434ea4], eax
push ebp
lea eax, [esp + 0x34]
push 0x2b4
push eax
push ebp
push 0x42b1b8
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push str.NSIS_Error
push 0x433ea0
call fcn.00405da1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ebx, 0x43f000
push ebx
call fcn.00405da1
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp word [0x43f000], 0x22
mov dword [0x434ea0], eax
mov eax, ebx
jne 0x4032c9
push 0x22
pop esi
mov eax, 0x43f002
push esi
push eax
call fcn.00405819
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [esp + 0x18], eax
jmp 0x4033a9
push 0x20
pop edx
cmp cx, dx
jne 0x4032ef
inc eax
inc eax
cmp word [eax], dx
je 0x4032e8
mov esi, edx
cmp word [eax], 0x22
jne 0x4032fc
inc eax
push 0x22
inc eax
pop esi
cmp word [eax], 0x2f
jne 0x40339a
inc eax
inc eax
cmp word [eax], 0x53
jne 0x403326
mov cx, word [eax + 2]
cmp cx, dx
je 0x40331c
cmp cx, bp
jne 0x403326
mov dword [0x434f40], 1
movzx edi, word [str.NCRC]
movzx ecx, word [0x40a2b6]
mov edx, dword [eax]
shl ecx, 0x10
or ecx, edi
cmp edx, ecx
jne 0x40336b
movzx ecx, word [0x40a2ba]
shl ecx, 0x10
movzx edi, word [0x40a2b8]
or ecx, edi
cmp dword [eax + 4], ecx
jne 0x40336b
mov cx, word [eax + 8]
cmp cx, 0x20
je 0x403366
cmp cx, bp
jne 0x40336b
or dword [esp + 0x1c], 4
movzx edi, word [str.__D]
movzx ecx, word [0x40a2aa]
shl ecx, 0x10
or ecx, edi
cmp dword [eax - 4], ecx
jne 0x40339a
movzx edi, word [0x40a2ac]
movzx ecx, word [0x40a2ae]
shl ecx, 0x10
or ecx, edi
cmp edx, ecx
je 0x4033b7
push esi
push eax
call fcn.00405819
cmp word [eax], 0x22
jne 0x4033a9
inc eax
inc eax
mov cx, word [eax]
cmp cx, bp
jne 0x4032e0
jmp 0x4033c9
mov word [eax - 4], bp
add eax, 4
push eax
push 0x43f800
call fcn.00405da1
mov edi, 0x441800
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
push 0x400
call esi
call fcn.004031f5
test eax, eax
jne 0x40343b
push 0x3fb
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Temp
push edi
call sub.KERNEL32.dll_lstrcatW
call fcn.004031f5
or eax, eax
jne 0x40343b
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.004031f5
or eax, eax
je 0x4034eb
push 0x441000
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x1c]
call fcn.00402d67
mov dword [esp + 0x10], eax
cmp eax, ebp
jne 0x4034eb
cmp dword [0x434ebc], ebp
je 0x4034db
push ebp
push ebx
call fcn.00405819
mov esi, eax
cmp esi, ebx
jb 0x4034a5
movzx eax, word [0x40a276]
shl eax, 0x10
movzx ecx, word [str.___]
or eax, ecx
cmp dword [esi], eax
jne 0x40349f
movzx ecx, word [0x40a27a]
shl ecx, 0x10
movzx edx, word [0x40a278]
or ecx, edx
cmp dword [esi + 4], ecx
je 0x4034a5
dec esi
dec esi
cmp esi, ebx
jae 0x403483
cmp esi, ebx
mov dword [esp + 0x10], str.Error_launching_installer
jb 0x403516
mov word [esi], bp
add esi, 8
push esi
call fcn.004058f4
test eax, eax
je 0x4034eb
push esi
push 0x43f800
call fcn.00405da1
push esi
push 0x440000
call fcn.00405da1
mov dword [esp + 0x10], ebp
or dword [0x434f4c], 0xffffffff
call fcn.0040376b
mov dword [esp + 0x14], eax
call fcn.00403691
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [esp + 0x10], ebp
je 0x4035f6
push 0x200010
push dword [esp + 0x14]
call fcn.0040557d
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]
or eax, eax
je 0x4034eb
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 0x403555
push esi
push 0x43f800
call fcn.00405da1
push dword [esp + 0x18]
push section..ndata
call fcn.00405da1
mov esi, 0x42a9b8
movzx ecx, word [0x40a258]
movzx eax, word [0x40a25a]
push 0x1a
shl eax, 0x10
or eax, ecx
mov dword [0x435800], eax
pop ebx
mov eax, dword [0x434eb0]
push dword [eax + 0x120]
push esi
call fcn.00405dc3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x10], ebp
je 0x4035e0
push 1
push esi
push 0x442800
call dword [sym.imp.KERNEL32.dll_CopyFileW]
or eax, eax
je 0x4035e0
push ebp
push esi
call fcn.00405c3b
mov eax, dword [0x434eb0]
push dword [eax + 0x124]
push esi
call fcn.00405dc3
push esi
call fcn.0040551c
cmp eax, ebp
je 0x4035e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebp
inc word [0x435800]
dec ebx
jne 0x403583
push ebp
push edi
call fcn.00405c3b
jmp 0x4034eb
cmp dword [0x434f34], ebp
je 0x403679
push 3
call fcn.0040610b
push 4
mov ebx, eax
call fcn.0040610b
mov esi, eax
push 5
call fcn.0040610b
cmp ebx, ebp
mov edi, eax
je 0x403665
cmp esi, ebp
je 0x403665
cmp edi, ebp
je 0x403665
lea eax, [esp + 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
or eax, eax
je 0x403665
lea eax, [esp + 0x24]
push eax
push str.SeShutdownPrivilege
push ebp
call esi
push ebp
push ebp
lea eax, [esp + 0x28]
push ebp
push eax
push ebp
push dword [esp + 0x2c]
mov dword [esp + 0x38], 1
mov dword [esp + 0x44], 2
call edi
push ebp
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403679
push 9
call fcn.0040140b
mov eax, dword [0x434f4c]
cmp eax, 0xffffffff
je 0x403687
mov dword [esp + 0x14], eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ExitProcess]