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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0xa8]
sub rsp, 0x1a0
mov cl, 1
call fcn.14001452c
mov edx, 0x800
lea rcx, [0x14005dd40]
call fcn.14001fe7c
lea rcx, [rsp + 0x60]
call fcn.140020698
mov esi, 0x7402
lea rcx, [0x140056920]
mov r8d, esi
xor edx, edx
call fcn.140026730
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
test rax, rax
je 0x1400244c4
mov rcx, rax
call fcn.140022568
cmp byte [0x14005fd49], 0
je 0x1400244bc
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 0x1400244b1
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x1400244a8
mov r8d, esi
lea rcx, [0x140056920]
mov rdx, rax
call fcn.1400275c0
lea rcx, [0x140056922]
mov byte [rbx], 1
call fcn.140023f34
lea rsi, [0x14005d922]
mov r9b, 1
mov rcx, rsi
xor r8d, r8d
mov edx, 0x400
call fcn.140012da4
mov rdx, rsi
lea rcx, [0x140061d50]
call fcn.140012ef0
mov edx, 0x400
mov rcx, rsi
call fcn.140012f60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400244c4
mov rcx, rbx
call fcn.140023f34
lea rdi, [0x14006d380]
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 + 0x30]
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.1400053bc
lea rdx, [rbp + 0x30]
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 [0x14004f488], rax
mov edx, 0x64
mov qword [0x14004f480], rax
mov rbx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [0x14006e380], rax
call fcn.140021488
mov rdx, rdi
mov qword [0x14006e388], rax
lea rcx, [0x14004f490]
call fcn.140011148
lea rcx, [rbp - 0x30]
call fcn.14001e5e0
lea rcx, [rsp + 0x70]
call fcn.14001e5e0
and qword [rsp + 0x20], 0
lea rax, [rbp - 0x30]
mov qword [0x14005dd28], rax
lea r9, [0x1400215f0]
lea rax, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.STARTDLG
mov qword [0x14005dd30], rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_DialogBoxParamW]
and qword [0x14005dd30], 0
lea rcx, [rsp + 0x70]
and qword [0x14005dd28], 0
call fcn.14001e6bc
lea rcx, [rbp - 0x30]
call fcn.14001e6bc
mov ecx, dword [0x14006e3c0]
test ecx, ecx
je 0x140024625
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x14005ed40], 0
je 0x140024633
call fcn.140020a34
lea rcx, [0x14006d350]
call fcn.140012cdc
cmp qword [0x14006e3b0], 0
jbe 0x140024655
mov rcx, qword [0x14006e390]
call fcn.140025824
mov rcx, qword [0x14006e380]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [0x14006e388]
test rcx, rcx
je 0x140024674
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x14004f538], 0
jne 0x140024697
cmp byte [0x140056908], 0
je 0x140024697
mov edx, 0xff
lea rcx, [0x14004f538]
call fcn.140008940
mov rcx, qword [0x14006e3c8]
mov byte [0x140056908], 1
test rcx, rcx
je 0x1400246bc
call fcn.140023fa0
mov rcx, qword [0x14006e3c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14006e3b8], 0
mov ebx, dword [0x14004f538]
je 0x1400246ee
cmp byte [0x14006e3b9], 0
mov eax, dword [0x14004c900]
je 0x1400246e8
mov ebx, dword [0x14006e3bc]
test eax, eax
jle 0x1400246ee
add ebx, eax
jmp 0x1400246ee
test eax, eax
jns 0x1400246ee
sub ebx, eax
lea rcx, [rsp + 0x60]
call fcn.140020710
lea r11, [rsp + 0x1a0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret