Function at 0x140003d10
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400220a0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
test rax, rax
je 0x1400040e5
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001070
nop
mov rcx, qword [rsp + 0x30]
cmp dword [rcx - 0x10], 0
jl 0x140004033
lea rdx, str._Embedding
call fcn.140006b14
mov rcx, qword [rsp + 0x30]
test rax, rax
je 0x140004033
sub rax, rcx
sar rax, 1
test eax, eax
js 0x140004033
lea r13, [0x140001240]
mov qword [rsp + 0x20], r13
lea r9, [0x140001060]
mov edx, 8
lea r8d, [rdx - 5]
lea rcx, [rbp - 0x21]
call fcn.140006610
nop
mov qword [rsp + 0x20], r13
lea r9, [0x140001060]
mov edx, 8
lea r8d, [rdx - 5]
lea rcx, [rbp - 9]
call fcn.140006610
nop
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1400239f0], rax
xor esi, esi
mov r14d, esi
mov edi, esi
lea r15d, [rsi + 3]
lea r12, [0x140000000]
mov ecx, 0x18
call fcn.140006758
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140003e4e
mov rdx, qword [rdi + r12 + 0x22000]
lea rcx, [rbp - 0x79]
call fcn.140001070
mov rdx, rax
mov rcx, rbx
call fcn.140001120
mov rbx, rax
jmp 0x140003e51
mov rbx, rsi
cmp qword [rbp + rdi - 0x21], rbx
je 0x140003e7b
test rbx, rbx
je 0x140003e66
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [rbp + rdi - 0x21]
mov qword [rbp + rdi - 0x21], rbx
test rcx, rcx
je 0x140003e7b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, qword [rdi + r12 + 0x22000]
lea rcx, [rbp - 0x71]
call fcn.140001070
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.140003a60
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x41], xmm0
lea rax, [rbp + 0xf]
add rax, r14
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8d, [r9 - 1]
mov rdx, qword [rbp + rdi - 0x21]
lea rcx, [rbp - 0x41]
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ecx, 0x18
call fcn.140006758
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140003efc
mov rdx, qword [rdi + r12 + 0x22018]
lea rcx, [rbp - 0x69]
call fcn.140001070
mov rdx, rax
mov rcx, rbx
call fcn.140001120
mov rbx, rax
jmp 0x140003eff
mov rbx, rsi
cmp qword [rbp + rdi - 9], rbx
je 0x140003f29
test rbx, rbx
je 0x140003f14
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [rbp + rdi - 9]
mov qword [rbp + rdi - 9], rbx
test rcx, rcx
je 0x140003f29
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, qword [rdi + r12 + 0x22018]
lea rcx, [rsp + 0x40]
call fcn.140001070
mov rdx, rax
lea rcx, [rbp - 0x61]
call fcn.140003a60
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x31], xmm0
lea rax, [rbp + 0x1f]
add rax, r14
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8d, [r9 - 1]
mov rdx, qword [rbp + rdi - 9]
lea rcx, [rbp - 0x31]
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
add r14, 4
add rdi, 8
dec r15
jne 0x140003e16
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edx, 0x7530
mov rcx, qword [0x1400239f0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400239f0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rsi
mov rdi, rsi
nop
mov ecx, dword [rbp + rbx + 0xf]
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rcx, qword [rbp + rdi - 0x21]
test rcx, rcx
je 0x140003fcf
mov qword [rbp + rdi - 0x21], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ecx, dword [rbp + rbx + 0x1f]
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rcx, qword [rbp + rdi - 9]
test rcx, rcx
je 0x140003fee
mov qword [rbp + rdi - 9], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
add rbx, 4
add rdi, 8
cmp rbx, 0xc
jl 0x140003fb0
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov r9, r13
mov edx, 8
lea r8d, [rdx - 5]
lea rcx, [rbp - 9]
call fcn.140006678
nop
mov r9, r13
mov edx, 8
lea r8d, [rdx - 5]
lea rcx, [rbp - 0x21]
call fcn.140006678
jmp 0x1400040bf
movsxd rbx, dword [rcx - 0x10]
test ebx, ebx
jns 0x140004046
mov ecx, 0x80070057
call fcn.140001900
int3
mov edx, 1
sub edx, dword [rcx - 8]
mov eax, dword [rcx - 0xc]
sub eax, ebx
or eax, edx
jge 0x140004068
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1400044b0
mov rcx, qword [rsp + 0x30]
lea eax, [rbx + 1]
movsxd rdx, eax
call fcn.140006fb8
mov rax, qword [rsp + 0x30]
cmp ebx, dword [rax - 0xc]
jg 0x1400040da
mov dword [rax - 0x10], ebx
xor esi, esi
mov rax, qword [rsp + 0x30]
mov word [rax + rbx*2], si
mov rcx, qword [rsp + 0x30]
cmp dword [rcx - 0x10], esi
jl 0x1400040b9
lea rdx, str._unregserver
call fcn.140006b14
test rax, rax
je 0x1400040b9
sub rax, qword [rsp + 0x30]
sar rax, 1
test eax, eax
js 0x1400040b9
call fcn.140005100
jmp 0x1400040bf
call fcn.140004fd0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400040e5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400040e5
mov ecx, 0x80070057
call fcn.140001900
nop
mov eax, 1
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140007bc0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret