Function at 0x40384d
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, 0x17c
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x188], 0
call sub.COMCTL32.DLL_InitCommonControls
push 0
call sub.OLE32.dll_OleInitialize
mov dword [0x424c80], eax
lea eax, [ebp - 0x16c]
push 0
push 0x160
push eax
push 0
push 0x409320
call sub.SHELL32.DLL_SHGetFileInfoA
mov edi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov bl, 0x20
push str.NSIS_Error
push 0x424d40
call fcn.00405f27
call sub.KERNEL32.dll_GetCommandLineA
push eax
push 0x42d000
call fcn.00405f27
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov edx, 0x42d000
mov dword [0x424d30], eax
cmp byte [0x42d000], 0x22
jne 0x4038df
mov edx, 0x42d001
mov bl, 0x22
movsx eax, bl
push eax
push edx
call fcn.00405bd1
push eax
call fcn.004079e0
mov esi, eax
mov edx, eax
cmp byte [eax], 0
je 0x403967
cmp byte [edx], 0x20
jne 0x403900
inc edx
jmp 0x4038f8
mov bl, 0x20
cmp byte [edx], 0x22
jne 0x40390a
inc edx
mov bl, 0x22
cmp byte [edx], 0x2f
jne 0x40394c
inc edx
cmp byte [edx], 0x53
jne 0x403926
mov al, byte [edx + 1]
or eax, 0x20
cmp al, 0x20
jne 0x403926
or dword [ebp - 0x188], 2
cmp dword [edx], 0x4352434e
jne 0x40393f
mov al, byte [edx + 4]
or eax, 0x20
cmp al, 0x20
jne 0x40393f
or dword [ebp - 0x188], 4
cmp dword [edx - 2], 0x3d442f20
je 0x403a35
movsx eax, bl
push eax
push edx
call fcn.00405bd1
mov edx, eax
xor eax, eax
cmp byte [edx], 0x22
sete al
add edx, eax
cmp byte [edx], 0
jmp 0x4038f6
push 0x42e400
push 0x400
call sub.KERNEL32.dll_GetTempPathA
call fcn.004037c0
test eax, eax
jne 0x4039aa
push 0x3fb
push 0x42e400
call sub.KERNEL32.dll_GetWindowsDirectoryA
push str.Temp
push 0x42e400
call fcn.00405fcc
call fcn.004037c0
test eax, eax
je 0x403b57
push 0x42e000
call sub.KERNEL32.dll_DeleteFileA
push dword [ebp - 0x188]
call fcn.00403447
mov edi, eax
test eax, eax
jne 0x403b57
cmp dword [0x424d00], 0
je 0x403b42
push 0
push 0x42d000
call fcn.00405bd1
mov ebx, eax
jmp 0x4039ef
cmp dword [ebx], 0x3d3f5f20
je 0x4039f7
dec ebx
cmp ebx, 0x42d000
jae 0x4039e6
mov edi, str.Error_launching_installer
cmp ebx, 0x42d000
jb 0x403a4f
mov byte [ebx], 0
add ebx, 4
push ebx
call fcn.0040625c
test eax, eax
je 0x403b57
push ebx
push 0x42d400
call fcn.00405f27
xor edi, edi
push ebx
push 0x42d800
call fcn.00405f27
jmp 0x403b42
mov dword [edx - 2], 0
lea eax, [edx + 2]
push eax
push 0x42d400
call fcn.00405f27
jmp 0x403967
push str.nsu.tmp
push 0x42e400
call fcn.00405fcc
push 0x42dc00
push 0x42e400
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
je 0x403b57
push 0
push 0x42e400
call sub.KERNEL32.dll_CreateDirectoryA
push 0x42e400
call sub.KERNEL32.dll_SetCurrentDirectoryA
cmp byte [0x42d400], 0
jne 0x403aa3
push 0x42dc00
push 0x42d400
call fcn.00405f27
push esi
mov ebx, 0x19
push section..ndata
call fcn.00405f27
mov word [0x428400], 0x41
mov eax, dword [0x424ca0]
push dword [eax + 0x120]
push 0x420da0
call fcn.00406005
push 0x420da0
call sub.KERNEL32.dll_DeleteFileA
test edi, edi
je 0x403b2b
push 1
push 0x420da0
push 0x42ec00
call sub.KERNEL32.dll_CopyFileA
test eax, eax
je 0x403b2b
push 0
push 0x420da0
call fcn.00406343
mov eax, dword [0x424ca0]
push dword [eax + 0x124]
push 0x420da0
call fcn.00406005
push 0x420da0
call fcn.00405b00
test eax, eax
je 0x403b2b
push eax
call sub.KERNEL32.dll_CloseHandle
xor edi, edi
inc byte [0x428400]
dec ebx
jns 0x403abc
push 0
push 0x42e400
call fcn.00406343
jmp 0x403b57
mov dword [0x424c6c], 0xffffffff
call fcn.00405445
mov dword [ebp - 0x184], eax
call fcn.00403808
call sub.OLE32.dll_OleUninitialize
test edi, edi
je 0x403b77
push 0x200010
push edi
call fcn.00405b6c
push 2
jmp 0x403c2d
cmp dword [0x424c54], 0
je 0x403c17
push 3
call fcn.00406304
mov ebx, eax
push 4
call fcn.00406304
mov esi, eax
push 5
call fcn.00406304
test ebx, ebx
mov edi, eax
setne dl
xor eax, eax
test esi, esi
setne al
test edx, eax
je 0x403c03
test edi, edi
je 0x403c03
lea eax, [ebp - 0x180]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call ebx
test eax, eax
je 0x403c03
lea eax, [ebp - 0x178]
lea ebx, [ebp - 0x17c]
push eax
push str.SeShutdownPrivilege
push 0
call esi
mov dword [ebp - 0x17c], 1
mov dword [ebp - 0x170], 2
push 0
push 0
push 0
push ebx
push 0
push dword [ebp - 0x180]
call edi
push 0
push 2
call sub.USER32.dll_ExitWindowsEx
test eax, eax
jne 0x403c17
push 9
call fcn.00402fe1
mov eax, dword [0x424c6c]
cmp eax, 0xffffffff
je 0x403c27
mov dword [ebp - 0x184], eax
push dword [ebp - 0x184]
call sub.KERNEL32.dll_ExitProcess
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop