Function at 0x140023890
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], rdi
mov qword [rax + 0x18], r15
push rbp
lea rbp, [rax - 0x598]
sub rsp, 0x690
mov rax, qword [0x140055038]
xor rax, rsp
mov qword [rbp + 0x580], rax
call fcn.14001a1e8
lea rcx, [0x140057520]
call fcn.140014794
lea rcx, [rsp + 0x50]
call fcn.140021e54
lea rcx, [rbp + 0x90]
call fcn.1400026bc
lea rcx, [rbp + 0xb0]
call fcn.1400026bc
lea rcx, [rbp + 0xd0]
call fcn.1400026bc
lea rcx, [rbp + 0xf0]
call fcn.1400026bc
mov r15d, 0x400
lea rcx, [rbp + 0x110]
mov r8d, r15d
xor edx, edx
call fcn.14002b220
lea rdx, [rbp + 0x90]
lea rcx, [0x140057600]
call fcn.140023cdc
lea rcx, [rbp + 0x90]
call fcn.14002385c
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
test rax, rax
je 0x140023a8e
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400020b4
lea rcx, [rsp + 0x70]
call fcn.140023df0
lea rcx, [rsp + 0x70]
call fcn.140002254
cmp byte [0x140057571], 0
je 0x140023a6d
lea r8, str.winrarsfxmappingfile.tmp
xor edx, edx
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rdi, rax
test rax, rax
je 0x140023a62
xor r9d, r9d
mov qword [rsp + 0x20], 9
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, rax
test rax, rax
je 0x140023a62
lea rcx, [rax + 1]
call fcn.1400017e4
mov rcx, rdx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rax, [rbx + 9]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0xf001f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x140023a62
lea rdx, [rax + 9]
lea rcx, [0x140057600]
call fcn.1400237e8
lea rcx, [0x140057600]
mov byte [rbx], 1
call fcn.140023d48
mov r9b, 1
lea rcx, [0x140057680]
xor r8d, r8d
mov edx, r15d
call fcn.1400185e0
lea rdx, [0x140057680]
lea rcx, [0x1400575b8]
call fcn.1400184ec
mov edx, r15d
lea rcx, [0x140057680]
call fcn.140018438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140023a8e
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400020b4
lea rcx, [rsp + 0x70]
call fcn.140023d48
lea rcx, [rsp + 0x70]
call fcn.140002254
lea rcx, [rsp + 0x70]
call fcn.14001469c
mov rdx, rax
lea rcx, [0x140057a80]
call fcn.1400037f4
lea rcx, [rsp + 0x70]
call fcn.140002254
lea rcx, [0x140057a80]
call fcn.14000128c
mov rdx, rax
lea rcx, str.sfxname
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x6c]
movzx edx, word [rsp + 0x6a]
movzx r8d, word [rsp + 0x68]
movzx eax, word [rsp + 0x6e]
movzx r10d, word [rsp + 0x66]
movzx r11d, word [rsp + 0x62]
movzx r9d, word [rsp + 0x60]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
lea rcx, [rbp + 0x510]
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.140011d38
lea rdx, [rbp + 0x510]
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 [0x140057308], rax
mov edx, 0x64
mov qword [0x140057300], rax
mov rbx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [0x14005d370], rax
call fcn.140015890
lea rcx, [rbp + 0x10]
call fcn.14002006c
lea rcx, [rbp - 0x70]
call fcn.14002006c
and qword [rsp + 0x20], 0
lea rax, [rbp + 0x10]
mov qword [0x140057320], rax
lea r9, [0x140023ff0]
lea rax, [rbp - 0x70]
xor r8d, r8d
lea rdx, str.STARTDLG
mov qword [0x140057328], rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_DialogBoxParamW]
and qword [0x140057328], 0
lea rcx, [rbp - 0x70]
and qword [0x140057320], 0
call fcn.1400200e4
lea rcx, [rbp + 0x10]
call fcn.1400200e4
mov ecx, dword [0x14005d380]
test ecx, ecx
je 0x140023bf3
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x140057540], 0
je 0x140023c01
call fcn.1400268d8
lea rcx, [0x1400575d8]
call fcn.140018408
mov rcx, qword [0x14005d370]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [0x14005d378]
test rcx, rcx
je 0x140023c2c
call qword [sym.imp.GDI32.dll_DeleteObject]
call fcn.14000ff90
test eax, eax
jne 0x140023c4e
cmp byte [0x140057314], al
je 0x140023c4e
mov edx, 0xff
lea rcx, [0x1400573e0]
call fcn.14000b990
mov rcx, qword [0x14005d388]
mov byte [0x140057314], 1
test rcx, rcx
je 0x140023c73
call fcn.14002686c
mov rcx, qword [0x14005d388]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.14000ff90
cmp byte [0x140057512], 0
mov ebx, eax
je 0x140023ca6
cmp byte [0x140057513], 0
mov eax, dword [0x140055ed0]
je 0x140023ca0
mov ebx, dword [0x14005751c]
test eax, eax
jle 0x140023ca6
add ebx, eax
jmp 0x140023ca6
test eax, eax
jns 0x140023ca6
sub ebx, eax
lea rcx, [rsp + 0x50]
call fcn.140021ec4
mov eax, ebx
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140028990
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r15, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret