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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r14
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov cl, 1
call fcn.140012140
mov edx, 0x800
lea rcx, [0x140053960]
call fcn.14001e9ac
lea rcx, [rsp + 0x60]
call fcn.14001f078
lea rcx, [0x1400536b0]
call fcn.1400136f8
mov r14d, 0x7104
lea rcx, [0x140062270]
mov r8d, r14d
xor edx, edx
call fcn.140024cd0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
test rax, rax
je 0x140022d08
mov rcx, rax
call fcn.140020e58
cmp byte [0x140055969], 0
je 0x140022d00
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 0x140022cf5
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 0x140022cec
mov r8d, r14d
lea rcx, [0x140062270]
mov rdx, rax
call fcn.140024e80
lea rcx, [0x140062272]
mov byte [rbx], 1
call fcn.140022704
mov eax, 2
lea rcx, [0x14005796a]
lea rdx, [0x140069272]
lea r8d, [rax + 0x7e]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rdx + 0x70]
add rdx, r8
movups xmmword [rcx + 0x60], xmm0
add rcx, r8
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x140022c9c
movzx eax, word [rdx]
mov word [rcx], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140022d08
mov rcx, rbx
call fcn.140022704
lea rdi, [0x140069380]
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 + 0x10]
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.14000462c
lea rdx, [rbp + 0x10]
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 [0x14004c2c8], rax
mov edx, 0x64
mov qword [0x14004c2c0], rax
mov rbx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [0x14006a380], rax
call fcn.14001fd18
mov rdx, rdi
mov qword [0x14006a388], rax
lea rcx, [0x14004c300]
call fcn.14000edf0
lea rcx, [rbp - 0x40]
call fcn.14001ce30
lea rcx, [rsp + 0x70]
call fcn.14001ce30
and qword [rsp + 0x20], 0
lea rax, [rbp - 0x40]
mov qword [0x140053920], rax
lea r9, [0x14001fe50]
lea rax, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.STARTDLG
mov qword [0x140053928], rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_DialogBoxParamW]
and qword [0x140053928], 0
lea rcx, [rsp + 0x70]
and qword [0x140053920], 0
call fcn.14001cf30
lea rcx, [rbp - 0x40]
call fcn.14001cf30
mov ecx, dword [0x140069374]
test ecx, ecx
je 0x140022e69
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x140054960], 0
je 0x140022e77
call fcn.14001f2b8
lea rcx, [0x140062160]
call fcn.140010840
cmp qword [0x140053918], 0
jbe 0x140022e99
mov rcx, qword [0x140053910]
call fcn.140027ce4
mov rcx, qword [0x14006a380]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [0x14006a388]
test rcx, rcx
je 0x140022eb8
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x14004c3d0], 0
jne 0x140022edb
cmp byte [0x140053947], 0
je 0x140022edb
mov edx, 0xff
lea rcx, [0x14004c3d0]
call fcn.140007a60
mov rbx, qword [0x14006a3a8]
mov byte [0x140053947], 1
test rbx, rbx
je 0x140022f3e
mov edi, 0xa
mov rcx, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r14d, 0x102
jmp 0x140022f2c
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x70]
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 0x140022f06
mov rcx, qword [0x14006a3a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140053957], 0
mov ebx, dword [0x14004c3d0]
je 0x140022f70
cmp byte [0x140062262], 0
mov eax, dword [0x1400497a8]
je 0x140022f6a
mov ebx, dword [0x140057a6c]
test eax, eax
jle 0x140022f70
add ebx, eax
jmp 0x140022f70
test eax, eax
jns 0x140022f70
sub ebx, eax
lea rcx, [rsp + 0x60]
call fcn.14001f0f0
lea r11, [rsp + 0x180]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret