Function at 0x140018588
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 - 0xb8]
sub rsp, 0x1b0
mov rax, qword [0x14003e858]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov cl, 1
call fcn.1400084b0
mov edx, 0x800
lea rcx, [0x140061230]
call fcn.140013fac
lea rcx, [rsp + 0x50]
call fcn.1400147f0
mov esi, 0x7402
lea rcx, [0x140059e00]
mov r8d, esi
xor edx, edx
call fcn.14001a940
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
test rax, rax
je 0x1400186c5
mov rcx, rax
call fcn.14001667c
cmp byte [0x140063239], 0
je 0x1400186bd
mov ebx, 0xf001f
lea r8, [0x140030360]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rdi, rax
test rax, rax
je 0x1400186b2
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 0x1400186a9
mov r8d, esi
lea rcx, [0x140059e00]
mov rdx, rax
call fcn.14001b6a0
lea rcx, [0x140059e02]
mov byte [rbx], 1
call fcn.140018100
lea rsi, [0x140060e02]
mov r9b, 1
mov rcx, rsi
xor r8d, r8d
mov edx, 0x400
call fcn.140007098
mov rdx, rsi
lea rcx, [0x140065240]
call fcn.1400071e4
mov edx, 0x400
mov rcx, rsi
call fcn.140007268
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400186c5
mov rcx, rbx
call fcn.140018100
lea rdi, [0x140070930]
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, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rbp + 0x2c]
movzx edx, word [rbp + 0x2a]
movzx r8d, word [rbp + 0x28]
movzx eax, word [rbp + 0x2e]
movzx r10d, word [rbp + 0x26]
movzx r11d, word [rbp + 0x22]
movzx r9d, word [rbp + 0x20]
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.140003774
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 [0x140061220], rax
mov edx, 0x64
mov qword [0x140061218], rax
mov rbx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [0x140070928], rax
call fcn.140015598
mov rdx, rdi
mov qword [0x140071930], rax
lea rcx, [0x140065270]
call fcn.14000527c
lea rcx, [rbp - 0x40]
call fcn.1400126bc
lea rcx, [rsp + 0x60]
call fcn.1400126bc
and qword [rsp + 0x20], 0
lea rax, [rbp - 0x40]
mov qword [0x140061208], rax
lea r9, [0x140015700]
lea rax, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.STARTDLG
mov qword [0x140061210], rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_DialogBoxParamW]
and qword [0x140061210], 0
lea rcx, [rsp + 0x60]
and qword [0x140061208], 0
call fcn.140012798
lea rcx, [rbp - 0x40]
call fcn.140012798
mov ecx, dword [0x140071968]
test ecx, ecx
je 0x14001881e
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x140062230], 0
je 0x14001882c
call fcn.140014b7c
lea rcx, [0x140070900]
call fcn.140006fc8
cmp qword [0x140071958], 0
jbe 0x14001884e
mov rcx, qword [0x140071938]
call fcn.140019900
mov rcx, qword [0x140070928]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [0x140071930]
test rcx, rcx
je 0x14001886d
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x140065260], 0
jne 0x140018890
cmp byte [0x140059de8], 0
je 0x140018890
mov edx, 0xff
lea rcx, [0x140065260]
call fcn.140001dec
mov rcx, qword [0x140071970]
mov byte [0x140059de8], 1
test rcx, rcx
je 0x1400188b5
call fcn.140018190
mov rcx, qword [0x140071970]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140071960], 0
mov ebx, dword [0x140065260]
je 0x1400188e7
cmp byte [0x140071961], 0
mov eax, dword [0x14003e7b0]
je 0x1400188e1
mov ebx, dword [0x140071964]
test eax, eax
jle 0x1400188e7
add ebx, eax
jmp 0x1400188e7
test eax, eax
jns 0x1400188e7
sub ebx, eax
lea rcx, [rsp + 0x50]
call fcn.140014868
mov eax, ebx
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400198e0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret