Function at 0x403a5e
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:
sub esp, 0x2cc
push ebx
push ebp
push esi
push edi
push 0x20
xor ebp, ebp
mov edi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
pop ecx
mov dword [esp + 0x10], ebp
mov ebx, ebp
mov esi, ecx
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 [0x473e24], eax
call fcn.00406e42
push ebp
push 0x2b4
mov dword [0x46bdb0], eax
lea eax, [esp + 0x30]
push eax
push ebp
push 0x40a260
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push str.NSIS_Error
push 0x46bdc0
call fcn.00407220
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x4c40a0
call fcn.00407220
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x22
pop ecx
mov dword [0x46bdb4], eax
mov eax, 0x4c40a0
cmp word [0x4c40a0], cx
jne 0x403afe
mov esi, ecx
mov eax, 0x4c40a2
push esi
push eax
call fcn.004069da
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x403ba9
push 0x20
pop ecx
cmp ax, cx
jne 0x403b27
add esi, 2
cmp word [esi], cx
je 0x403b1f
push 0x22
pop eax
mov ebp, ecx
cmp word [esi], ax
jne 0x403b36
add esi, 2
mov ebp, eax
cmp word [esi], 0x2f
jne 0x403b95
add esi, 2
cmp word [esi], 0x53
jne 0x403b56
movzx eax, word [esi + 2]
cmp ax, cx
je 0x403b53
test ax, ax
jne 0x403b56
or ebx, 2
push 4
push str.NCRC
push esi
call fcn.00403a03
add esp, 0xc
test eax, eax
jne 0x403b7e
movzx eax, word [esi + 8]
push 0x20
pop ecx
cmp ax, cx
je 0x403b7b
test ax, ax
jne 0x403b7e
or ebx, 4
push 4
lea eax, [esi - 4]
push str.__D
push eax
call fcn.00403a03
add esp, 0xc
test eax, eax
je 0x403bb7
push ebp
push esi
call fcn.004069da
mov esi, eax
push 0x22
pop eax
cmp word [esi], ax
jne 0x403ba9
add esi, 2
movzx eax, word [esi]
test ax, ax
jne 0x403b17
jmp 0x403bd5
push 8
lea eax, [esi - 4]
push 0
push eax
call fcn.00408712
add esp, 0xc
lea eax, [esi + 4]
push eax
push 0x4c80a8
call fcn.00407220
mov ebp, 0x4d80c8
push ebp
push 0x2004
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.004039cf
test eax, eax
jne 0x403c13
push 0x1fff
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Temp
push ebp
call sub.KERNEL32.dll_lstrcatW
call fcn.004039cf
test eax, eax
je 0x403dab
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x4d40c0
call ebp
push ebx
call fcn.004036bb
mov edi, eax
test edi, edi
jne 0x403dab
cmp dword [0x473dd0], eax
je 0x403ca0
xor ebx, ebx
mov edi, 0x4c40a0
push ebx
push edi
call fcn.004069da
mov esi, eax
jmp 0x403c61
push 4
push str.___
push esi
call fcn.00403a03
add esp, 0xc
test eax, eax
je 0x403c65
sub esi, 2
cmp esi, edi
jae 0x403c4a
mov edi, str.Error_launching_installer
cmp esi, 0x4c40a0
jb 0x403cba
xor eax, eax
mov word [esi], ax
add esi, 8
push esi
call fcn.004069f9
test eax, eax
je 0x403da7
push esi
push 0x4c80a8
call fcn.00407220
push esi
push 0x4cc0b0
call fcn.00407220
mov edi, ebx
or dword [0x473eac], 0xffffffff
call fcn.00405bd0
push 1
mov ebp, eax
call fcn.00406aa9
jmp 0x403daf
push str.nsu.tmp
mov esi, 0x4d80c8
push esi
call sub.KERNEL32.dll_lstrcatW
push 0x4d00b8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403da7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp word [0x4c80a8], bx
jne 0x403d05
push 0x4d00b8
push 0x4c80a8
call fcn.00407220
push dword [esp + 0x14]
push section..ndata
call fcn.00407220
push 0x40a2c0
push 0x478008
call fcn.00407220
push 0x1a
pop esi
mov eax, dword [0x473ddc]
push dword [eax + 0x120]
push 0x4341e8
call fcn.00406369
push 0x4341e8
call ebp
test edi, edi
je 0x403d92
push 1
push 0x4341e8
push 0x4e00d8
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403d92
push ebx
push 0x4341e8
call fcn.00406659
mov eax, dword [0x473ddc]
push dword [eax + 0x124]
push 0x4341e8
call fcn.00406369
push 0x4341e8
call fcn.00406ba8
test eax, eax
je 0x403d92
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
inc word [0x478008]
dec esi
jne 0x403d25
push ebx
push 0x4d80c8
call fcn.00406659
mov ebp, ebx
jmp 0x403daf
mov ebp, dword [esp + 0x10]
call fcn.004039a5
call dword [sym.imp.ole32.dll_OleUninitialize]
test edi, edi
je 0x403dd1
push 0x200010
push edi
call fcn.0040709a
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x473e94], 0
je 0x403e59
push 3
call fcn.00406e42
push 4
mov ebx, eax
call fcn.00406e42
push 5
mov esi, eax
call fcn.00406e42
mov edi, eax
test ebx, ebx
je 0x403e44
test esi, esi
je 0x403e44
test edi, edi
je 0x403e44
lea eax, [esp + 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x403e44
lea eax, [esp + 0x1c]
push eax
push 0x40a2c4
push 0
call esi
xor ecx, ecx
mov dword [esp + 0x18], 1
push ecx
push ecx
push ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x30], 2
push eax
push ecx
push dword [esp + 0x28]
call edi
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403e59
push 9
call fcn.00401424
cmp dword [0x473eac], 0xffffffff
cmovne ebp, dword [0x473eac]
push ebp
jmp 0x403dcb