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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
push rbp
lea rbp, [rax - 0x68]
sub rsp, 0x160
mov cl, 1
call fcn.140010e58
lea rcx, [rsp + 0x60]
call fcn.14001d57c
lea rcx, [0x14004d300]
call fcn.1400124c0
mov r14d, 0x7104
lea rcx, [0x140059e90]
mov r8d, r14d
xor edx, edx
call fcn.1400230c0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
test rax, rax
je 0x14002107e
mov rcx, rax
call fcn.14001f1d0
cmp byte [0x14004d5b9], 0
je 0x140021076
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 0x14002106b
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 0x140021062
mov r8d, r14d
lea rcx, [0x140059e90]
mov rdx, rax
call fcn.140024720
lea rcx, [0x140059e92]
mov byte [rbx], 1
call fcn.140020a8c
mov eax, 2
lea rcx, [0x14004f5ba]
lea rdx, [0x140060e92]
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 0x140021012
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 0x14002107e
mov rcx, rbx
call fcn.140020a8c
mov r8d, 0x800
lea rdx, [0x140060fa0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [0x140060fa0]
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.14000428c
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 [0x140047fc0], rax
mov edx, 0x64
mov qword [0x140047fb8], rax
mov rdi, rax
call qword [sym.imp.USER32.dll_LoadIconW]
mov rcx, qword [0x140047fb8]
mov r14d, 0x65
mov edx, r14d
mov qword [0x140059e88], rax
call qword [sym.imp.USER32.dll_LoadBitmapW]
test rax, rax
mov qword [0x140060f98], rax
sete bl
test bl, bl
je 0x14002117e
mov ecx, r14d
call fcn.14001cff4
mov qword [0x140060f98], rax
lea r8, [rsp + 0x70]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetObjectW]
call fcn.14001ce8c
test al, al
je 0x140021200
test bl, bl
je 0x1400211c4
mov ecx, 0x66
call fcn.14001cff4
mov rbx, rax
test rax, rax
je 0x1400211c4
mov rcx, qword [0x140060f98]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov qword [0x140060f98], rbx
mov ecx, dword [rsp + 0x78]
call fcn.14001cf28
mov ecx, dword [rsp + 0x74]
mov ebx, eax
call fcn.14001cebc
mov rcx, qword [0x140060f98]
mov edx, eax
mov r8d, ebx
call fcn.14001d17c
mov rcx, qword [0x140060f98]
mov rbx, rax
call qword [sym.imp.GDI32.dll_DeleteObject]
mov qword [0x140060f98], rbx
lea rdx, [0x140060fa0]
lea rcx, [0x140047fc8]
call fcn.14000e0a4
lea rcx, [rbp - 0x50]
call fcn.14001bb18
lea rcx, [rsp + 0x70]
call fcn.14001bb18
and qword [rsp + 0x20], 0
lea rax, [rbp - 0x50]
mov qword [0x14004d560], rax
lea r9, [0x14001e1e0]
lea rax, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.STARTDLG
mov qword [0x14004d568], rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_DialogBoxParamW]
and qword [0x14004d568], 0
lea rcx, [rsp + 0x70]
and qword [0x14004d560], 0
call fcn.14001bba8
lea rcx, [rbp - 0x50]
call fcn.14001bba8
mov ecx, dword [0x140060f94]
test ecx, ecx
je 0x140021290
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x14004d5b0], 0
je 0x14002129e
call fcn.14001d794
lea rcx, [0x140059d80]
call fcn.14000f5fc
cmp qword [0x14004d5a0], 0
jbe 0x1400212c0
mov rcx, qword [0x14004d598]
call fcn.140026070
mov rcx, qword [0x140059e88]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [0x140060f98]
test rcx, rcx
je 0x1400212df
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x140047fe8], 0
jne 0x140021302
cmp byte [0x14004d587], 0
je 0x140021302
mov edx, 0xff
lea rcx, [0x140047fe8]
call fcn.140007668
mov rbx, qword [0x140062fb0]
mov byte [0x14004d587], 1
test rbx, rbx
je 0x140021365
mov edi, 0xa
mov rcx, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r14d, 0x102
jmp 0x140021353
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 0x14002132d
mov rcx, qword [0x140062fb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140059e82], 0
mov ebx, dword [0x140047fe8]
je 0x140021397
cmp byte [0x140059e83], 0
mov eax, dword [0x140045168]
je 0x140021391
mov ebx, dword [0x140059e84]
test eax, eax
jle 0x140021397
add ebx, eax
jmp 0x140021397
test eax, eax
jns 0x140021397
sub ebx, eax
lea rcx, [rsp + 0x60]
call fcn.14001d5f4
lea r11, [rsp + 0x160]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret