Function at 0x403831
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, 0x184
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [esp + 0x18], ebx
mov byte [esp + 0x14], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push 8
mov dword [0x426a98], eax
call fcn.004060e1
push ebx
push 0x160
mov dword [0x4269a0], eax
lea eax, [esp + 0x3c]
push eax
push ebx
push 0x408b03
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x4261a0
call fcn.00405e4c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov ebp, 0x42c000
push ebp
call fcn.00405e4c
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x42c000], 0x22
mov dword [0x4269a8], eax
mov eax, ebp
jne 0x4038d4
mov byte [esp + 0x14], 0x22
mov eax, 0x42c001
push dword [esp + 0x14]
push eax
call fcn.00405b81
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esp + 0x20], eax
jmp 0x403954
cmp cl, 0x20
jne 0x4038f6
inc eax
cmp byte [eax], 0x20
je 0x4038f0
cmp byte [eax], 0x22
mov byte [esp + 0x14], 0x20
jne 0x403906
inc eax
mov byte [esp + 0x14], 0x22
cmp byte [eax], 0x2f
jne 0x403944
inc eax
cmp byte [eax], 0x53
jne 0x403922
mov cl, byte [eax + 1]
cmp cl, 0x20
je 0x40391d
cmp cl, bl
jne 0x403922
or dword [esp + 0x18], 2
cmp dword [eax], 0x4352434e
jne 0x40393b
mov cl, byte [eax + 4]
cmp cl, 0x20
je 0x403936
cmp cl, bl
jne 0x40393b
or dword [esp + 0x18], 4
cmp dword [eax - 2], 0x3d442f20
je 0x40395c
push dword [esp + 0x14]
push eax
call fcn.00405b81
cmp byte [eax], 0x22
jne 0x403954
inc eax
mov cl, byte [eax]
cmp cl, bl
jne 0x4038eb
jmp 0x40396d
mov byte [eax - 2], bl
add eax, 2
push eax
push 0x42c400
call fcn.00405e4c
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, 0x42d400
push esi
push 0x400
call edi
call main
test eax, eax
jne 0x4039df
push 0x3fb
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push esi
call sub.KERNEL32.dll_lstrcatA
call main
test eax, eax
jne 0x4039df
push esi
push 0x3fc
call edi
push 0x408aec
push esi
call sub.KERNEL32.dll_lstrcatA
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
push str.TEMP
call edi
push esi
push 0x408ae0
call edi
call main
test eax, eax
je 0x403a67
push 0x42d000
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esp + 0x18]
call fcn.00403520
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x403a67
cmp dword [0x426a04], ebx
je 0x403a50
push ebx
push ebp
call fcn.00405b81
mov edi, eax
jmp 0x403a17
cmp dword [edi], 0x3d3f5f20
je 0x403a1b
dec edi
cmp edi, ebp
jae 0x403a0e
mov dword [esp + 0x10], str.Error_launching_installer
cmp edi, ebp
jb 0x403a92
mov byte [edi], bl
add edi, 4
push edi
call fcn.004061ed
test eax, eax
je 0x403a67
push edi
push 0x42c400
call fcn.00405e4c
push edi
push 0x42c800
call fcn.00405e4c
mov dword [esp + 0x10], ebx
or dword [0x426a8c], 0xffffffff
call fcn.004057d5
push 1
mov dword [esp + 0x20], eax
call fcn.00405f08
call fcn.004037ef
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [esp + 0x10], ebx
je 0x403b61
push 0x200010
push dword [esp + 0x14]
call fcn.00405b1b
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.nsu.tmp
push esi
call sub.KERNEL32.dll_lstrcatA
mov edi, 0x42cc00
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403a67
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [0x42c400], bl
jne 0x403ad0
push edi
push 0x42c400
call fcn.00405e4c
push dword [esp + 0x20]
push section..ndata
call fcn.00405e4c
push 0x41
pop eax
push 0x1a
mov word [0x427400], ax
pop ebp
mov edi, 0x4201d0
mov eax, dword [0x4269ac]
push dword [eax + 0x120]
push edi
call fcn.0040626f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x10], ebx
je 0x403b4c
push 1
push edi
push 0x42dc00
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403b4c
push ebx
push edi
call fcn.0040664f
mov eax, dword [0x4269ac]
push dword [eax + 0x124]
push edi
call fcn.0040626f
push edi
call fcn.00405aba
cmp eax, ebx
je 0x403b4c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebx
inc byte [0x427400]
dec ebp
jne 0x403aef
push ebx
push esi
call fcn.0040664f
jmp 0x403a67
cmp dword [0x426a74], ebx
je 0x403be4
push 3
call fcn.004060e1
push 4
mov ebp, eax
call fcn.004060e1
push 5
mov esi, eax
call fcn.004060e1
mov edi, eax
cmp ebp, ebx
je 0x403bd0
cmp esi, ebx
je 0x403bd0
cmp edi, ebx
je 0x403bd0
lea eax, [esp + 0x20]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebp
test eax, eax
je 0x403bd0
lea eax, [esp + 0x28]
push eax
push str.SeShutdownPrivilege
push ebx
call esi
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
push ebx
push dword [esp + 0x34]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x48], 2
call edi
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403be4
push 9
call fcn.0040148b
mov eax, dword [0x426a8c]
cmp eax, 0xffffffff
je 0x403bf2
mov dword [esp + 0x1c], eax
push dword [esp + 0x1c]
jmp 0x403a8c