Function at 0x140017740
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.140007dec
mov edx, 0x800
lea rcx, [0x140060230]
call fcn.14001359c
lea rcx, [rsp + 0x60]
call fcn.140013db8
mov esi, 0x7402
lea rcx, [0x140058e00]
mov r8d, esi
xor edx, edx
call fcn.1400196c0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
test rax, rax
je 0x14001786c
mov rcx, rax
call fcn.140015988
cmp byte [0x140062239], 0
je 0x140017864
mov ebx, 0xf001f
lea r8, [0x14002f340]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rdi, rax
test rax, rax
je 0x140017859
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 0x140017850
mov r8d, esi
lea rcx, [0x140058e00]
mov rdx, rax
call fcn.14001a370
lea rcx, [0x140058e02]
mov byte [rbx], 1
call fcn.140017324
lea rsi, [0x14005fe02]
mov r9b, 1
mov rcx, rsi
xor r8d, r8d
mov edx, 0x400
call fcn.1400069dc
mov rdx, rsi
lea rcx, [0x140064240]
call fcn.140006b28
mov edx, 0x400
mov rcx, rsi
call fcn.140006be0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001786c
mov rcx, rbx
call fcn.140017324
lea rdi, [0x14006f930]
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.14000300c
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 [0x140060220], rax
mov edx, 0x64
mov qword [0x140060218], rax
mov rbx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [0x14006f928], rax
call fcn.1400148e8
mov rdx, rdi
mov qword [0x140070930], rax
lea rcx, [0x140064270]
call fcn.140004a18
lea rcx, [rbp - 0x30]
call fcn.140011cf0
lea rcx, [rsp + 0x70]
call fcn.140011cf0
and qword [rsp + 0x20], 0
lea rax, [rbp - 0x30]
mov qword [0x140060208], rax
lea r9, [0x140014a50]
lea rax, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.STARTDLG
mov qword [0x140060210], rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_DialogBoxParamW]
and qword [0x140060210], 0
lea rcx, [rsp + 0x70]
and qword [0x140060208], 0
call fcn.140011dcc
lea rcx, [rbp - 0x30]
call fcn.140011dcc
mov ecx, dword [0x140070968]
test ecx, ecx
je 0x1400179cd
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x140061230], 0
je 0x1400179db
call fcn.140013f90
lea rcx, [0x14006f900]
call fcn.140006914
cmp qword [0x140070958], 0
jbe 0x1400179fd
mov rcx, qword [0x140070938]
call fcn.1400189a8
mov rcx, qword [0x14006f928]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [0x140070930]
test rcx, rcx
je 0x140017a1c
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x140064260], 0
jne 0x140017a3f
cmp byte [0x140058de8], 0
je 0x140017a3f
mov edx, 0xff
lea rcx, [0x140064260]
call fcn.140001d18
mov rcx, qword [0x140070970]
mov byte [0x140058de8], 1
test rcx, rcx
je 0x140017a64
call fcn.140017390
mov rcx, qword [0x140070970]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140070960], 0
mov ebx, dword [0x140064260]
je 0x140017a96
cmp byte [0x140070961], 0
mov eax, dword [0x14003d7b0]
je 0x140017a90
mov ebx, dword [0x140070964]
test eax, eax
jle 0x140017a96
add ebx, eax
jmp 0x140017a96
test eax, eax
jns 0x140017a96
sub ebx, eax
lea rcx, [rsp + 0x60]
call fcn.140013e30
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