Function at 0x1400132c0
Capabilities:
Accept command line arguments
Inspect load icon resource
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x160
mov cl, 1
call fcn.140014708
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
lea rcx, [0x14005a110]
call fcn.140016200
mov ebp, 0x7002
lea rcx, [0x140045140]
mov r8, rbp
xor edx, edx
call fcn.140021b90
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
test rax, rax
je 0x14001339f
mov rcx, rax
call fcn.14000ff38
cmp byte [0x14004c1c9], 0
je 0x140013397
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 0x14001338c
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x140013383
lea rcx, [0x140045140]
mov r8, rbp
mov rdx, rax
call fcn.140021f80
lea rcx, [0x140045142]
mov byte [rbx], 1
call fcn.14000fed0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001339f
mov rcx, rbx
call fcn.14000fed0
lea rdi, [0x140044140]
mov r8d, 0x800
xor ecx, ecx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, str.sfxname
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x5a]
movzx edx, word [rsp + 0x58]
movzx r8d, word [rsp + 0x56]
movzx r11d, word [rsp + 0x5e]
movzx eax, word [rsp + 0x5c]
movzx r10d, word [rsp + 0x52]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r8d
lea rcx, [rsp + 0xf0]
lea r8, str._4d__02d__02d__02d__02d__02d__03d
mov edx, 0x32
mov dword [rsp + 0x20], r10d
call fcn.14000dcb8
lea rdx, [rsp + 0xf0]
lea rcx, str.sfxstime
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, 0x64
mov rcx, rax
mov rbx, rax
mov qword [0x14003de88], rax
mov qword [0x14003de90], rax
call qword [sym.imp.USER32.dll_LoadIconW]
mov rcx, qword [0x14003de90]
mov edx, 0x65
mov qword [0x140044138], rax
call qword [sym.imp.USER32.dll_LoadBitmapW]
lea rcx, [rsp + 0x60]
mov qword [0x140044130], rax
call fcn.140020898
lea rcx, [0x14003dea8]
mov rdx, rdi
call fcn.14000e704
lea rcx, [rsp + 0xb0]
call fcn.14001f3a8
lea rcx, [rsp + 0x70]
call fcn.14001f3a8
and qword [rsp + 0x20], 0
lea r11, [rsp + 0xb0]
lea rax, [rsp + 0x70]
lea r9, [0x140012668]
lea rdx, str.STARTDLG
xor r8d, r8d
mov rcx, rbx
mov qword [0x140043128], r11
mov qword [0x140043120], rax
call qword [sym.imp.USER32.dll_DialogBoxParamW]
and qword [0x140043120], 0
and qword [0x140043128], 0
lea rcx, [rsp + 0x70]
call fcn.14001f3d8
lea rcx, [rsp + 0xb0]
call fcn.14001f3d8
lea rcx, [rsp + 0x60]
call fcn.1400208f4
mov ecx, dword [0x14004c1a4]
test ecx, ecx
je 0x140013535
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x14004c1c0], 0
je 0x140013543
call fcn.14001017c
lea rcx, [0x140057960]
call fcn.14000f8b4
cmp qword [0x14004c198], 0
jbe 0x140013565
mov rcx, qword [0x14004c180]
call fcn.140021a00
mov rcx, qword [0x140044138]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [0x140044130]
test rcx, rcx
je 0x140013584
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x14003de98], 0
jne 0x1400135a7
cmp byte [0x14004c160], 0
je 0x1400135a7
lea rcx, [0x14003de98]
mov edx, 0xff
call fcn.140006e7c
mov rbx, qword [0x14004c1a8]
mov byte [0x14004c160], 1
test rbx, rbx
je 0x140013608
mov edi, 0xa
mov rcx, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, 0x102
jmp 0x1400135f7
lea rcx, [rsp + 0x70]
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, ebp
je 0x1400135d1
mov rcx, qword [0x14004c1a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [0x14004c1a0]
mov eax, dword [0x14003de98]
lea r11, [rsp + 0x160]
test ecx, ecx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
cmovne eax, ecx
mov rsp, r11
pop rdi
ret