Function at 0x403848
Capabilities:
Accept command line arguments
Check os version
Copy file
Delete file
Get common file path
Get file attributes
Get file system object information
Set current directory
Set environment variable
Shutdown system
Terminate process

Disassembly:
sub esp, 0x3ec
push ebx
push ebp
push edi
push 4
push 0x40000000
xor ebx, ebx
mov edi, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
push str.C:Mircmirc.ini
mov dword [esp + 0x18], ebx
mov ebp, ebx
call fcn.00406ad4
cmp eax, 0xffffffff
je 0x403880
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
push esi
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
mov dword [esp + 0x40], ebx
push eax
movlpd qword [esp + 0x144], xmm0
mov dword [esp + 0x30], 0x11c
call esi
test eax, eax
jne 0x4038ec
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x114
push eax
call esi
push 0x53
pop eax
mov dl, 4
mov byte [esp + 0x146], dl
cmp word [esp + 0x40], ax
jne 0x4038e8
mov eax, dword [esp + 0x5a]
add eax, 0xffffffd0
mov word [esp + 0x140], ax
jmp 0x4038f3
xor eax, eax
jmp 0x4038de
mov dl, byte [esp + 0x146]
cmp dword [esp + 0x30], 0xa
jae 0x403905
movzx eax, word [esp + 0x38]
mov dword [esp + 0x38], eax
jmp 0x403909
mov eax, dword [esp + 0x38]
mov dword [0x429638], eax
movzx eax, byte [esp + 0x30]
shl ax, 8
movzx ecx, ax
movzx eax, byte [esp + 0x34]
or ecx, eax
movzx eax, byte [esp + 0x140]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, dl
or ecx, eax
mov eax, 0x600
mov dword [0x42963c], ecx
sar ecx, 0x10
cmp cx, ax
je 0x40395e
push ebx
call fcn.00406a9f
test eax, eax
je 0x40395e
push 0xc00
call eax
mov esi, str.UXTHEME
push esi
call fcn.00406357
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc esi
add esi, eax
cmp byte [esi], bl
jne 0x403963
push 0xc
call fcn.00406a9f
push 0xa
call fcn.00406a9f
push 8
mov dword [0x428530], eax
call fcn.00406a9f
test eax, eax
je 0x4039a4
push 0x1e
call eax
test eax, eax
je 0x4039a4
or byte [0x42963c], 0x80
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push ebx
push 0x2b4
mov dword [0x4295a0], eax
lea eax, [esp + 0x150]
push eax
push ebx
push 0x4085f0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push str.NSIS_Error
push 0x428540
call fcn.00406cd3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov esi, 0x434000
push esi
call fcn.00406cd3
movzx ecx, word [0x434000]
push 0x22
pop ebx
push 0x20
pop edx
cmp cx, bx
mov dword [0x428534], 0x400000
mov eax, ebx
mov dword [esp + 0x14], ebx
cmovne eax, edx
mov edx, 0x434002
movzx eax, ax
push eax
mov eax, esi
cmove eax, edx
push eax
call fcn.004067af
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
movzx eax, word [ecx]
test ax, ax
je 0x403b1f
mov esi, eax
push 0x20
pop edx
movzx eax, si
cmp si, dx
jne 0x403a5b
add ecx, 2
movzx eax, word [ecx]
cmp ax, dx
je 0x403a50
mov ebx, edx
movzx esi, ax
movzx edx, ax
cmp ax, word [esp + 0x14]
jne 0x403a73
movzx edx, word [ecx + 2]
push 0x22
pop eax
mov ebx, eax
cmp si, word [esp + 0x14]
lea eax, [ecx + 2]
cmovne eax, ecx
cmp dx, 0x2f
jne 0x403add
push 0x53
add eax, 2
pop ecx
push 0x20
pop edx
cmp word [eax], cx
jne 0x403aaa
movzx ecx, word [eax + 2]
cmp cx, dx
je 0x403aa0
test cx, cx
jne 0x403aaa
mov dword [0x429620], 1
cmp dword [eax], 0x43004e
jne 0x403acc
cmp dword [eax + 4], 0x430052
jne 0x403acc
movzx ecx, word [eax + 8]
cmp cx, dx
je 0x403ac9
test cx, cx
jne 0x403acc
or ebp, 4
cmp dword [eax - 4], 0x2f0020
jne 0x403add
cmp dword [eax], 0x3d0044
je 0x403b07
push ebx
push eax
call fcn.004067af
mov ecx, eax
push 0x22
pop ebx
movzx eax, word [ecx]
mov edx, eax
cmp ax, bx
jne 0x403af9
add ecx, 2
movzx edx, word [ecx]
movzx esi, dx
test dx, dx
jne 0x403a45
jmp 0x403b1b
xor ecx, ecx
mov word [eax - 4], cx
add eax, 4
push eax
push 0x434800
call fcn.00406cd3
mov ebx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x436800
push 0x400
call esi
call fcn.00403e6d
test eax, eax
jne 0x403ba5
push 0x3fb
push 0x436800
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Temp
push 0x436800
call sub.KERNEL32.dll_lstrcatW
call fcn.00403e6d
test eax, eax
jne 0x403ba5
push 0x436800
push 0x3fc
call esi
push 0x408618
mov esi, 0x436800
push esi
call sub.KERNEL32.dll_lstrcatW
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push str.TEMP
call esi
push 0x436800
push 0x40862c
call esi
call fcn.00403e6d
test eax, eax
je 0x403d86
push 0x436000
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
call fcn.004034d3
mov edi, eax
test edi, edi
jne 0x403d86
cmp dword [0x429544], eax
je 0x403c2d
xor ebp, ebp
push ebp
push 0x434000
call fcn.004067af
mov esi, eax
mov eax, 0x434000
jmp 0x403bf2
cmp dword [esi], 0x5f0020
jne 0x403bef
cmp dword [esi + 4], 0x3d003f
je 0x403bf6
sub esi, 2
cmp esi, eax
jae 0x403bde
mov edi, str.Error_launching_installer
cmp esi, eax
jb 0x403c40
xor eax, eax
mov word [esi], ax
add esi, 8
push esi
call fcn.004067f1
test eax, eax
je 0x403dd0
push esi
push 0x434800
call fcn.00406cd3
push esi
push 0x435000
call fcn.00406cd3
mov edi, ebp
or dword [0x42962c], 0xffffffff
call fcn.00405c06
mov ebx, eax
jmp 0x403d8a
call fcn.004066b5
push 0x436800
mov dword [esp + 0x1c], eax
call sub.KERNEL32.dll_lstrlenW
push ebx
push section..ndata
mov esi, eax
call fcn.00406cd3
cmp word [0x434800], bp
jne 0x403c78
push 0x435800
push 0x434800
call fcn.00406cd3
xor ebx, ebx
lea eax, [esi*2 + 0x436800]
inc ebx
mov dword [esp + 0x14], eax
mov esi, ebp
movzx ebp, bx
push ebp
push str.nsu_X.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x429550]
add esp, 0xc
push dword [eax + 0x120]
push 0x42c800
call fcn.00406061
cmp dword [esp + 0x18], 0
push 0x436800
je 0x403cc3
call fcn.00406006
jmp 0x403cc8
call fcn.00405fe6
test eax, eax
je 0x403d15
push 0x42c800
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x403dae
push 0x42c800
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x403dae
push 1
push 0x436800
call fcn.004068d2
mov eax, esi
inc esi
test eax, eax
jne 0x403dae
mov eax, dword [esp + 0x14]
jmp 0x403c8b
push 0x436800
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push 0x436800
call fcn.004063f6
push 1
push 0x42c800
push 0x437800
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403d86
push 0
push 0x42c800
call fcn.004063f6
mov eax, dword [0x429550]
push dword [eax + 0x124]
push 0x42d000
call fcn.00406061
push 0x42d000
call fcn.0040688f
test eax, eax
jne 0x403dc1
mov eax, esi
inc esi
test eax, eax
jne 0x403d86
push 0x42c800
call fcn.00406788
test eax, eax
je 0x403d0c
mov ebx, dword [esp + 0x10]
xor ebp, ebp
call fcn.00403806
call dword [sym.imp.ole32.dll_OleUninitialize]
test edi, edi
je 0x403dd4
push 0x200010
push edi
call fcn.00406c61
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [esp + 0x14]
inc ebx
push 0
pop ebp
test bx, bx
jne 0x403c86
jmp 0x403d86
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
mov edi, ebp
mov ebx, edi
jmp 0x403d8c
mov ebx, ebp
jmp 0x403d8a
cmp dword [0x429614], 0
je 0x403e59
lea eax, [esp + 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403e29
lea eax, [esp + 0x20]
push eax
push str.SeShutdownPrivilege
push ebp
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push ebp
push ebp
push ebp
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 1
push eax
push ebp
push dword [esp + 0x2c]
mov dword [esp + 0x40], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 4
call fcn.00406a9f
mov esi, 0x80040002
test eax, eax
je 0x403e45
push esi
push 0x25
push ebp
push ebp
push ebp
call eax
test eax, eax
je 0x403e52
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x403e59
push 9
call fcn.00401533
cmp dword [0x42962c], 0xffffffff
cmovne ebx, dword [0x42962c]
push ebx
jmp 0x403da8