Function at 0x40335f
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 [0x42f8e0], ebx
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 [0x42f9d8], eax
call fcn.004059f1
push ebx
push 0x160
mov dword [0x42f8e4], eax
lea eax, [ebp - 0x598]
push eax
push ebx
push 0x408483
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x42f0e0
call fcn.0040590e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov esi, 0x435000
push esi
call fcn.0040590e
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x435000], 0x22
mov dword [0x42f8ec], eax
jne 0x40340c
mov byte [ebp - 0xc], 0x22
mov esi, 0x435001
push dword [ebp - 0xc]
push esi
call fcn.004056ac
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x18], eax
jmp 0x403483
cmp cl, 0x20
jne 0x40342c
inc eax
cmp byte [eax], 0x20
je 0x403426
cmp byte [eax], 0x22
mov byte [ebp - 0xc], 0x20
jne 0x40343a
inc eax
mov byte [ebp - 0xc], 0x22
cmp byte [eax], 0x2f
jne 0x403474
inc eax
cmp byte [eax], 0x53
jne 0x403454
mov cl, byte [eax + 1]
or cl, 0x20
cmp cl, 0x20
jne 0x403454
or dword [ebp - 4], 2
cmp dword [eax], 0x4352434e
jne 0x40346b
mov cl, byte [eax + 4]
or cl, 0x20
cmp cl, 0x20
jne 0x40346b
or dword [ebp - 4], 4
cmp dword [eax - 2], 0x3d442f20
je 0x40348b
push dword [ebp - 0xc]
push eax
call fcn.004056ac
cmp byte [eax], 0x22
jne 0x403483
inc eax
mov cl, byte [eax]
cmp cl, bl
jne 0x403421
jmp 0x40349c
mov dword [eax - 2], ebx
add eax, 2
push eax
push 0x435400
call fcn.0040590e
mov esi, 0x436400
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.00403301
test eax, eax
jne 0x4034da
push 0x3fb
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
push esi
call sub.KERNEL32.dll_lstrcatA
call fcn.00403301
test eax, eax
je 0x40363d
push 0x436000
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 [0x42f8e0], eax
jne 0x403552
mov dword [0x42f8e0], ebx
push str.Start_Log_r_n_r_n
lea eax, [ebp - 0x438]
push 0x408434
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 [0x42f8e0]
call edi
push dword [ebp - 4]
call fcn.0040306a
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40363d
mov eax, dword [0x42f8f0]
mov eax, dword [eax + 0x60]
cmp eax, ebx
je 0x4035af
cmp eax, 1
je 0x4035af
push eax
push str.g_header__lb_fg_:__d__disable_file_extraction_log_r_n_r_n
jmp 0x4035b5
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 [0x42f8e0]
call edi
cmp dword [0x42f944], ebx
je 0x40362e
push ebx
mov edi, 0x435000
push edi
call fcn.004056ac
mov esi, eax
jmp 0x4035f7
cmp dword [esi], 0x3d3f5f20
je 0x4035fb
dec esi
cmp esi, edi
jae 0x4035ee
cmp esi, edi
mov dword [ebp - 8], str.Error_launching_installer
jb 0x40367c
mov byte [esi], bl
add esi, 4
push esi
call fcn.00405aaf
test eax, eax
je 0x40363d
push esi
push 0x435400
call fcn.0040590e
push esi
push 0x435800
call fcn.0040590e
mov dword [ebp - 8], ebx
or dword [0x42f9cc], 0xffffffff
call fcn.0040531e
mov dword [ebp - 0x10], eax
mov eax, dword [0x42f8e0]
cmp eax, ebx
je 0x403653
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x42f8e0], ebx
call fcn.00403335
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp - 8], ebx
je 0x403753
push 0x200010
push dword [ebp - 8]
call fcn.00405648
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.nsu.tmp
mov edi, 0x436400
push edi
call sub.KERNEL32.dll_lstrcatA
mov esi, 0x435c00
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40363d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [0x435400], bl
jne 0x4036bf
push esi
push 0x435400
call fcn.0040590e
push dword [ebp - 0x18]
push section..ndata
call fcn.0040590e
mov word [0x430400], 0x41
mov dword [ebp - 4], 0x1a
mov esi, 0x4298f8
mov eax, dword [0x42f8f0]
push dword [eax + 0x120]
push esi
call fcn.00405b87
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], ebx
je 0x40373c
push 1
push esi
push 0x436c00
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40373c
push ebx
push esi
call fcn.00405ddd
mov eax, dword [0x42f8f0]
push dword [eax + 0x124]
push esi
call fcn.00405b87
push esi
call fcn.004055e7
cmp eax, ebx
je 0x40373c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
inc byte [0x430400]
dec dword [ebp - 4]
jne 0x4036e1
push ebx
push edi
call fcn.00405ddd
jmp 0x40363d
cmp dword [0x42f9b4], ebx
je 0x4037d3
push 3
call fcn.004059f1
push 4
mov dword [ebp - 4], eax
call fcn.004059f1
push 5
mov esi, eax
call fcn.004059f1
cmp dword [ebp - 4], ebx
mov edi, eax
je 0x4037bf
cmp esi, ebx
je 0x4037bf
cmp edi, ebx
je 0x4037bf
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 0x4037bf
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 0x4037d3
push 9
call fcn.00401411
mov eax, dword [0x42f9cc]
cmp eax, 0xffffffff
je 0x4037e0
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
jmp 0x403676