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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov qword [rax + 8], rcx
push rbp
lea rbp, [rax - 0x58]
sub rsp, 0x150
mov cl, 1
call fcn.140010ca4
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
lea rcx, [0x14004c2f0]
call fcn.1400122f0
mov r14d, 0x7002
lea rcx, [0x14004c560]
mov r8d, r14d
xor edx, edx
call fcn.1400229c0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
test rax, rax
je 0x140020a89
mov rcx, rax
call fcn.14001ec78
cmp byte [0x1400535a9], 0
je 0x140020a81
mov ebx, 0xf001f
lea r8, str.winrarsfxmappingfile.tmp
mov ecx, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rdi, rax
test rax, rax
je 0x140020a76
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x140020a6d
mov r8d, r14d
lea rcx, [0x14004c560]
mov rdx, rax
call fcn.140024050
lea rcx, [0x14004c562]
mov byte [rbx], 1
call fcn.1400204f8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140020a89
mov rcx, rbx
call fcn.1400204f8
lea rdi, [0x14005ee80]
mov r8d, 0x800
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdx, rdi
lea rcx, str.sfxname
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x5c]
movzx edx, word [rsp + 0x5a]
movzx r8d, word [rsp + 0x58]
movzx eax, word [rsp + 0x5e]
movzx r10d, word [rsp + 0x56]
movzx r11d, word [rsp + 0x52]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
lea rcx, [rbp - 0x20]
mov dword [rsp + 0x38], edx
mov edx, 0x32
mov dword [rsp + 0x30], r8d
lea r8, str._4d__02d__02d__02d__02d__02d__03d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call fcn.1400041e0
lea rdx, [rbp - 0x20]
lea rcx, str.sfxstime
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov qword [0x140046f90], rax
mov edx, 0x64
mov qword [0x140046f88], rax
mov rbx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
mov rcx, qword [0x140046f88]
mov edx, 0x65
mov qword [0x14005ee78], rax
call qword [sym.imp.USER32.dll_LoadBitmapW]
lea rcx, [rbp + 0x60]
mov qword [0x14005fe80], rax
call fcn.14001d07c
mov rdx, rdi
lea rcx, [0x140046fb8]
call fcn.14000df88
lea rcx, [rbp - 0x60]
call fcn.14001b83c
lea rcx, [rsp + 0x60]
call fcn.14001b83c
and qword [rsp + 0x20], 0
lea rax, [rbp - 0x60]
mov qword [0x140053578], rax
lea r9, [0x14001dccc]
lea rax, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.STARTDLG
mov qword [0x140053580], rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_DialogBoxParamW]
and qword [0x140053580], 0
lea rcx, [rsp + 0x60]
and qword [0x140053578], 0
call fcn.14001b8cc
lea rcx, [rbp - 0x60]
call fcn.14001b8cc
lea rcx, [rbp + 0x60]
call fcn.14001d0d0
mov ecx, dword [0x14005fe9c]
test ecx, ecx
je 0x140020c09
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x1400535a0], 0
je 0x140020c17
call fcn.14001d260
lea rcx, [0x14005ed70]
call fcn.14000f4e0
cmp qword [0x140053570], 0
jbe 0x140020c39
mov rcx, qword [0x140053568]
call fcn.1400259a0
mov rcx, qword [0x14005ee78]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [0x14005fe80]
test rcx, rcx
je 0x140020c58
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x140046fd8], 0
jne 0x140020c7b
cmp byte [0x14004c558], 0
je 0x140020c7b
mov edx, 0xff
lea rcx, [0x140046fd8]
call fcn.14000758c
mov rbx, qword [0x140060ea0]
mov byte [0x14004c558], 1
test rbx, rbx
je 0x140020cde
mov edi, 0xa
mov rcx, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r14d, 0x102
jmp 0x140020ccc
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x60]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, r14d
je 0x140020ca6
mov rcx, qword [0x140060ea0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [0x14005fe98]
lea r11, [rsp + 0x150]
mov eax, dword [0x140046fd8]
test ecx, ecx
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
cmovne eax, ecx
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret