Function at 0x403e3b
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 ecx
mov dword [0x430804], eax
mov dword [esp], 8
call fcn.004070b6
mov dword [0x4308b4], eax
lea eax, [ebp - 0x17c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x160
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x40b24c
call sub.SHELL32.DLL_SHGetFileInfoA
sub esp, 0x14
mov dword [esp + 4], str.NSIS_Error
mov dword [esp], 0x4308e4
call fcn.0040733a
push edi
push edi
call sub.KERNEL32.dll_GetCommandLineA
mov dword [esp], 0x439000
mov dword [esp + 4], eax
call fcn.0040733a
push esi
push esi
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
cmp byte [0x439000], 0x22
push ebx
mov dword [0x4308d4], eax
je 0x403eff
mov eax, 0x439000
mov dl, 0x20
jmp 0x403f06
mov eax, 0x439001
mov dl, 0x22
movsx edx, dl
xor ebx, ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040713c
push ecx
push ecx
mov dword [esp], eax
call fcn.00409490
mov esi, eax
push edx
jmp 0x403fae
inc eax
mov dl, byte [eax]
cmp dl, 0x20
je 0x403f29
cmp dl, 0x22
mov cl, 0x20
jne 0x403f3b
inc eax
mov cl, 0x22
cmp byte [eax], 0x2f
jne 0x403f93
inc eax
cmp byte [eax], 0x53
jne 0x403f54
mov dl, byte [eax + 1]
or edx, 0x20
cmp dl, 0x20
jne 0x403f54
or ebx, 2
cmp dword [eax], 0x4352434e
jne 0x403f6a
mov dl, byte [eax + 4]
or edx, 0x20
cmp dl, 0x20
jne 0x403f6a
or ebx, 4
cmp dword [eax - 2], 0x3d442f20
lea edx, [eax - 2]
jne 0x403f93
mov dword [edx], 0
add eax, 2
mov dword [esp + 4], eax
mov dword [esp], 0x439400
call fcn.0040733a
push eax
push eax
jmp 0x403fb7
movsx ecx, cl
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0040713c
xor edx, edx
push edi
push edi
cmp byte [eax], 0x22
sete dl
add eax, edx
cmp byte [eax], 0
jne 0x403f2a
mov dword [esp + 4], 0x43a400
mov dword [esp], 0x400
call sub.KERNEL32.dll_GetTempPathA
push ecx
push ecx
call fcn.00403dd8
test eax, eax
jne 0x404012
mov dword [esp + 4], 0x3fb
mov dword [esp], 0x43a400
call sub.KERNEL32.dll_GetWindowsDirectoryA
push edx
push edx
mov dword [esp + 4], str.Temp
mov dword [esp], 0x43a400
call fcn.004072a6
push eax
push eax
call fcn.00403dd8
test eax, eax
jne 0x404012
mov ebx, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x40402e
mov dword [esp], 0x43a000
call sub.KERNEL32.dll_DeleteFileA
push edi
mov dword [esp], ebx
call fcn.004039a5
test eax, eax
push ecx
je 0x404035
mov ebx, eax
xor esi, esi
jmp 0x404210
cmp dword [0x430894], 0
je 0x4041fd
mov dword [esp + 4], 0
mov dword [esp], 0x439000
call fcn.0040713c
push edx
push edx
jmp 0x40405b
dec eax
cmp eax, 0x439000
jb 0x40406f
cmp dword [eax], 0x3d3f5f20
jne 0x40405a
jmp 0x404369
mov dword [esp + 4], str.nsu.tmp
mov dword [esp], 0x43a400
call fcn.004072a6
push edi
push edi
mov dword [esp + 4], 0x439c00
mov dword [esp], 0x43a400
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
push ebx
push ebx
je 0x404380
jmp 0x4040ce
mov dword [esp + 4], ebx
mov dword [esp], 0x439400
call fcn.0040733a
push ecx
push ecx
mov dword [esp + 4], ebx
mov dword [esp], 0x439800
call fcn.0040733a
push edx
push edx
jmp 0x4041fd
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
cmp byte [0x439400], 0
push edi
jne 0x404110
mov dword [esp + 4], 0x439c00
mov dword [esp], 0x439400
call fcn.0040733a
push ebx
push ebx
mov dword [esp + 4], esi
mov ebx, str.Error_launching_installer
xor esi, esi
mov dword [esp], section..ndata
call fcn.0040733a
mov word [0x434400], 0x41
push ecx
push ecx
mov eax, dword [0x430824]
mov eax, dword [eax + 0x120]
mov dword [esp], 0x42b810
mov dword [esp + 4], eax
call fcn.0040742b
push edx
push edx
mov dword [esp], 0x42b810
call sub.KERNEL32.dll_DeleteFileA
test ebx, ebx
push eax
je 0x4041d2
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 0x4041d2
mov dword [esp + 4], 0
mov dword [esp], 0x42b810
call fcn.00407914
mov eax, dword [0x430824]
push edi
push edi
mov eax, dword [eax + 0x124]
mov dword [esp], 0x42b810
mov dword [esp + 4], eax
call fcn.0040742b
push ecx
push ecx
mov dword [esp], 0x42b810
call fcn.00407f22
test eax, eax
push edx
je 0x4041d2
mov dword [esp], eax
xor ebx, ebx
call sub.KERNEL32.dll_CloseHandle
push eax
inc esi
inc byte [0x434400]
cmp esi, 0x1a
jne 0x404132
mov dword [esp + 4], 0
xor si, si
mov dword [esp], 0x43a400
call fcn.00407914
push edi
push edi
jmp 0x404210
mov dword [0x4307f0], 0xffffffff
xor ebx, ebx
call fcn.00406b2b
mov esi, eax
call fcn.00403d98
call sub.OLE32.dll_OleUninitialize
test ebx, ebx
je 0x40423c
mov dword [esp + 4], 0x200010
mov dword [esp], ebx
call fcn.00407e77
push esi
push esi
mov dword [esp], 2
jmp 0x404364
cmp dword [0x4307d8], 0
je 0x404355
mov dword [esp], 3
call fcn.004070b6
push ebx
mov dword [ebp - 0x18c], eax
mov dword [esp], 4
call fcn.004070b6
push ecx
mov edi, eax
mov dword [esp], 5
call fcn.004070b6
test edi, edi
mov ebx, eax
push edx
je 0x40432e
cmp dword [ebp - 0x18c], 0
je 0x40432e
test eax, eax
je 0x40432e
call sub.KERNEL32.dll_GetCurrentProcess
lea edx, [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x28
mov dword [esp], eax
call dword [ebp - 0x18c]
sub esp, 0xc
test eax, eax
je 0x40432e
lea edx, [ebp - 0x17c]
lea eax, [ebp - 0x178]
mov dword [ebp - 0x190], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.SeShutdownPrivilege
mov dword [esp], 0
call edi
mov edx, dword [ebp - 0x190]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x17c], 1
mov dword [ebp - 0x170], 2
sub esp, 0xc
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
sub esp, 0x18
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.USER32.dll_ExitWindowsEx
test eax, eax
push ebx
push ebx
jne 0x404355
mov dword [esp], 9
call fcn.004035b2
push ecx
mov eax, dword [0x4307f0]
cmp eax, 0xffffffff
jne 0x404361
mov eax, esi
mov dword [esp], eax
call sub.KERNEL32.dll_ExitProcess
mov byte [eax], 0
lea ebx, [eax + 4]
mov dword [esp], ebx
call fcn.00407769
test eax, eax
push edx
jne 0x4040a5
mov ebx, str.Error_launching_installer
jmp 0x40402e