Function at 0x403343
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
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x598
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [ebp - 4], ebx
mov byte [ebp - 0xc], 0x20
mov dword [ebp - 0x14], 0x800
mov dword [0x7a2400], ebx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push SetCursor
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push 8
mov dword [0x7a24f8], eax
call fcn.004059d5
push ebx
push 0x160
mov dword [0x7a2404], eax
lea eax, [ebp - 0x598]
push eax
push ebx
push 0x407483
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x7a1c00
call fcn.004058f2
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov esi, 0x7a8000
push esi
call fcn.004058f2
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x7a8000], 0x22
mov dword [0x7a240c], eax
jne 0x4033f0
mov byte [ebp - 0xc], 0x22
mov esi, 0x7a8001
push dword [ebp - 0xc]
push esi
call fcn.00405690
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x18], eax
jmp 0x403467
cmp cl, 0x20
jne 0x403410
inc eax
cmp byte [eax], 0x20
je 0x40340a
cmp byte [eax], 0x22
mov byte [ebp - 0xc], 0x20
jne 0x40341e
inc eax
mov byte [ebp - 0xc], 0x22
cmp byte [eax], 0x2f
jne 0x403458
inc eax
cmp byte [eax], 0x53
jne 0x403438
mov cl, byte [eax + 1]
or cl, 0x20
cmp cl, 0x20
jne 0x403438
or dword [ebp - 4], 2
cmp dword [eax], 0x4352434e
jne 0x40344f
mov cl, byte [eax + 4]
or cl, 0x20
cmp cl, 0x20
jne 0x40344f
or dword [ebp - 4], 4
cmp dword [eax - 2], 0x3d442f20
je 0x40346f
push dword [ebp - 0xc]
push eax
call fcn.00405690
cmp byte [eax], 0x22
jne 0x403467
inc eax
mov cl, byte [eax]
cmp cl, bl
jne 0x403405
jmp 0x403480
mov dword [eax - 2], ebx
add eax, 2
push eax
push 0x7a8400
call fcn.004058f2
mov esi, 0x7a9400
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.004032e5
test eax, eax
jne 0x4034be
push 0x3fb
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push esi
call sub.KERNEL32.dll_lstrcatA
call fcn.004032e5
test eax, eax
je 0x403621
push 0x7a9000
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x26]
push eax
movzx eax, word [ebp - 0x28]
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x438]
push str._sXYCQ_SETUP_LOG__d_d_d_d_d_d_EX.txt
push eax
call esi
add esp, 0x24
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x7a2400], eax
jne 0x403536
mov dword [0x7a2400], ebx
push str.Start_Log_r_n_r_n
lea eax, [ebp - 0x438]
push 0x407434
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x438]
push eax
push dword [0x7a2400]
call edi
push dword [ebp - 4]
call fcn.0040304e
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x403621
mov eax, dword [0x7a2410]
mov eax, dword [eax + 0x60]
cmp eax, ebx
je 0x403593
cmp eax, 1
je 0x403593
push eax
push str.g_header__lb_fg_:__d__disable_file_extraction_log_r_n_r_n
jmp 0x403599
push eax
push str.g_header__lb_fg_:__d__enable_file_extraction_log_r_n_r_n
lea eax, [ebp - 0x438]
push eax
call esi
add esp, 0xc
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x438]
push eax
push dword [0x7a2400]
call edi
cmp dword [0x7a2464], ebx
je 0x403612
push ebx
mov edi, 0x7a8000
push edi
call fcn.00405690
mov esi, eax
jmp 0x4035db
cmp dword [esi], 0x3d3f5f20
je 0x4035df
dec esi
cmp esi, edi
jae 0x4035d2
cmp esi, edi
mov dword [ebp - 8], str.Error_launching_installer
jb 0x403660
mov byte [esi], bl
add esi, 4
push esi
call fcn.00405a93
test eax, eax
je 0x403621
push esi
push 0x7a8400
call fcn.004058f2
push esi
push 0x7a8800
call fcn.004058f2
mov dword [ebp - 8], ebx
or dword [0x7a24ec], 0xffffffff
call fcn.00405302
mov dword [ebp - 0x10], eax
mov eax, dword [0x7a2400]
cmp eax, ebx
je 0x403637
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x7a2400], ebx
call fcn.00403319
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp - 8], ebx
je 0x403737
push 0x200010
push dword [ebp - 8]
call fcn.0040562c
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.nsu.tmp
mov edi, 0x7a9400
push edi
call sub.KERNEL32.dll_lstrcatA
mov esi, 0x7a8c00
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403621
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [0x7a8400], bl
jne 0x4036a3
push esi
push 0x7a8400
call fcn.004058f2
push dword [ebp - 0x18]
push section..ndata
call fcn.004058f2
mov word [0x7a3400], 0x41
mov dword [ebp - 4], 0x1a
mov esi, 0x79d5b8
mov eax, dword [0x7a2410]
push dword [eax + 0x120]
push esi
call fcn.00405b6b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], ebx
je 0x403720
push 1
push esi
push 0x7a9c00
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403720
push ebx
push esi
call fcn.00405dc1
mov eax, dword [0x7a2410]
push dword [eax + 0x124]
push esi
call fcn.00405b6b
push esi
call fcn.004055cb
cmp eax, ebx
je 0x403720
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
inc byte [0x7a3400]
dec dword [ebp - 4]
jne 0x4036c5
push ebx
push edi
call fcn.00405dc1
jmp 0x403621
cmp dword [0x7a24d4], ebx
je 0x4037b7
push 3
call fcn.004059d5
push 4
mov dword [ebp - 4], eax
call fcn.004059d5
push 5
mov esi, eax
call fcn.004059d5
cmp dword [ebp - 4], ebx
mov edi, eax
je 0x4037a3
cmp esi, ebx
je 0x4037a3
cmp edi, ebx
je 0x4037a3
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 4]
test eax, eax
je 0x4037a3
lea eax, [ebp - 0x34]
push eax
push str.SeShutdownPrivilege
push ebx
call esi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 2
call edi
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4037b7
push 9
call fcn.00401411
mov eax, dword [0x7a24ec]
cmp eax, 0xffffffff
je 0x4037c4
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
jmp 0x40365a