Function at 0x140013404
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xe0
mov cl, 1
call fcn.1400146cc
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
lea rcx, [0x140057e20]
call fcn.140015a78
mov esi, 0x7002
lea rcx, [0x140042e40]
mov r8, rsi
xor edx, edx
call fcn.140020cd0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
test rax, rax
je 0x1400134e3
mov rcx, rax
call fcn.140010144
cmp byte [0x140049ec9], 0
je 0x1400134db
mov ebx, 0xf001f
lea r8, str.winrarsfxmappingfile.tmp
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rdi, rax
test rax, rax
je 0x1400134d0
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x1400134c7
lea rcx, [0x140042e40]
mov r8, rsi
mov rdx, rax
call fcn.1400210c0
lea rcx, [0x140042e42]
mov byte [rbx], 1
call fcn.1400100dc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400134e3
mov rcx, rbx
call fcn.1400100dc
lea rsi, [0x140041e40]
mov r8d, 0x800
xor ecx, ecx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, str.sfxname
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, 0x64
mov rcx, rax
mov rdx, rdi
mov rbx, rax
mov qword [0x14003bb88], rax
mov qword [0x14003bb90], rax
call qword [sym.imp.USER32.dll_LoadIconW]
mov rcx, qword [0x14003bb90]
lea edx, [rdi + 1]
mov qword [0x140041e38], rax
call qword [sym.imp.USER32.dll_LoadBitmapW]
lea rcx, [rsp + 0x30]
mov qword [0x140041e30], rax
call fcn.140020420
lea rcx, [0x14003bba8]
mov rdx, rsi
call fcn.14000e820
lea rcx, [rsp + 0x90]
call fcn.14001eeb8
lea rcx, [rsp + 0x40]
call fcn.14001eeb8
mov ecx, edi
call fcn.14002004c
mov ecx, edi
mov dword [rsp + 0xcc], eax
call fcn.14002004c
and qword [rsp + 0x20], 0
mov dword [rsp + 0x7c], eax
lea rax, [rsp + 0x90]
lea r9, [0x1400128cc]
mov qword [0x140040e28], rax
lea rax, [rsp + 0x40]
lea rdx, str.STARTDLG
xor r8d, r8d
mov rcx, rbx
mov qword [0x140040e20], rax
call qword [sym.imp.USER32.dll_DialogBoxParamW]
and qword [0x140040e20], 0
and qword [0x140040e28], 0
lea rcx, [rsp + 0x40]
call fcn.14001eee8
lea rcx, [rsp + 0x90]
call fcn.14001eee8
lea rcx, [rsp + 0x30]
call fcn.14002048c
cmp byte [0x140049ec0], 0
je 0x140013616
call fcn.140010388
lea rcx, [0x140055660]
call fcn.14000f9bc
cmp qword [0x140049e98], 0
jbe 0x140013638
mov rcx, qword [0x140049e80]
call fcn.140020b44
mov rcx, qword [0x140041e38]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [0x140041e30]
test rcx, rcx
je 0x140013657
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x14003bb98], 0
jne 0x14001367a
cmp byte [0x140049e60], 0
je 0x14001367a
lea rcx, [0x14003bb98]
mov edx, 0xff
call fcn.140007068
mov rbx, qword [0x140049ea8]
mov byte [0x140049e60], 1
test rbx, rbx
je 0x1400136db
mov edi, 0xa
mov rcx, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, 0x102
jmp 0x1400136ca
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_PeekMessageW]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
je 0x1400136a4
mov rcx, qword [0x140049ea8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x140049ea4]
test ecx, ecx
je 0x1400136eb
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [0x140049ea0]
mov eax, dword [0x14003bb98]
lea r11, [rsp + 0xe0]
test ecx, ecx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
cmovne eax, ecx
mov rsp, r11
pop rdi
ret