Function at 0x140001a00
Capabilities:
Accept command line arguments
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x1d0
mov rax, qword [0x1400170d0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.ole32.dll_CoInitialize]
lea r12, [0x140000000]
mov rax, qword [r12 + 0x124a0]
lea rdi, [0x140018640]
mov qword [r12 + 0x197c0], rax
mov rax, qword [r12 + 0x124a8]
mov qword [r12 + 0x197c8], rax
cmp rdi, 0xffffffffffffffff
je 0x140001a9f
cmp qword [0x140018640], 0
mov qword [0x140019888], rdi
je 0x140001a9f
nop dword [rax]
mov cl, 1
call qword [rdi + 0x40]
add rdi, 0x48
cmp qword [rdi], 0
jne 0x140001a90
mov rdi, qword [0x1400187f0]
mov rcx, qword [0x1400187f8]
cmp rdi, rcx
jae 0x140001acf
mov rax, qword [rdi]
test rax, rax
je 0x140001ac6
mov cl, 1
call qword [rax + 0x40]
mov rcx, qword [0x1400187f8]
add rdi, 8
cmp rdi, rcx
jb 0x140001ab2
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or rcx, 0xffffffffffffffff
xor r14d, r14d
mov dword [0x140019890], eax
xor eax, eax
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r14
mov word [rsp + 0x80], r14w
mov rdi, rbx
repne scasw ax, word [rdi]
mov rdx, rbx
xor bpl, bpl
not rcx
xor r13b, r13b
lea r8, [rcx - 1]
lea rcx, [rsp + 0x78]
call fcn.1400028b0
lea r8d, [r14 + 0x40]
lea rdx, [rsp + 0xc0]
lea rcx, [0x1400124b0]
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rsi, rax
test rax, rax
jne 0x140001b5b
mov ecx, 0x8007000e
call fcn.140006060
int3
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140001b7c
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov rcx, rsi
mov edx, eax
call qword [sym.imp.USER32.dll_CharUpperBuffW]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov rdx, rsi
mov qword [rsp + 0x68], 7
not rcx
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
lea r8, [rcx - 1]
lea rcx, [rsp + 0x48]
call fcn.1400028b0
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x78]
call fcn.140001840
cmp qword [rsp + 0x68], 8
movzx edi, al
jb 0x140001bdc
mov rcx, qword [rsp + 0x50]
call fcn.1400071e0
test dil, dil
je 0x140001be8
mov r13b, 1
movzx ebp, r13b
mov eax, dword [r12 + 0x1254c]
lea rcx, [rsp + 0xb0]
mov dword [rcx], eax
movzx eax, word [r12 + 0x12550]
mov word [rcx + 4], ax
test rbx, rbx
je 0x140001cef
cmp word [rbx], r14w
je 0x140001cef
lea rax, [rsp + 0xb0]
movzx edx, word [rax]
test dx, dx
je 0x140001c3d
cmp word [rbx], dx
je 0x140001c53
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
test rax, rax
jne 0x140001c22
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
test rax, rax
jne 0x140001c10
jmp 0x140001cef
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
mov rdi, rax
test rax, rax
je 0x140001cef
nop dword [rax + rax]
lea rdx, str.UnregServer
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140001f32
lea rdx, str.RegServer
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140001f32
cmp word [rdi], r14w
je 0x140001cef
lea rax, [rsp + 0xb0]
nop
movzx edx, word [rax]
test dx, dx
je 0x140001ccb
cmp word [rdi], dx
je 0x140001cde
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
test rax, rax
jne 0x140001cb0
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov rdi, rax
test rax, rax
jne 0x140001ca0
jmp 0x140001cef
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov rdi, rax
test rax, rax
jne 0x140001c70
test bpl, bpl
je 0x140001f32
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140019898], rax
test rax, rax
je 0x140001d3b
lea rax, [rsp + 0x30]
lea r9, [0x140019840]
lea r8, [0x140001760]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, r14
test r13b, r13b
je 0x140001db8
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0xa0]
mov r8d, 0x40
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rcx, [rsp + 0x140]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
jne 0x140001d80
mov ecx, 0x8007000e
call fcn.140006060
int3
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov rcx, rdi
mov edx, eax
call qword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov rbx, rax
test rax, rax
jne 0x140001daf
mov ecx, 0x8007000e
call fcn.140006060
int3
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140001dd9
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov rcx, rbx
mov edx, eax
call qword [sym.imp.USER32.dll_CharUpperBuffW]
mov r12, r14
mov qword [rsp + 0x30], r14
test r13b, r13b
je 0x140001df5
lea rcx, [rsp + 0x30]
call fcn.140002e60
mov r12, qword [rsp + 0x30]
mov ebp, 0x64
mov edi, 0x80004005
mov qword [rsp + 0x38], r14
mov eax, ebp
dec ebp
test eax, eax
je 0x140001ec4
lea r8, [rsp + 0x30]
lea rcx, [0x140012584]
mov rdx, rbx
mov qword [rsp + 0x30], r14
call qword [sym.imp.ole32.dll_CreateItemMoniker]
mov edi, eax
test eax, eax
jns 0x140001e4d
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001eba
mov rdx, qword [rcx]
call qword [rdx + 0x10]
jmp 0x140001eba
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001e62
mov qword [rsp + 0x38], r14
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rdx, [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.ole32.dll_GetRunningObjectTable]
mov edi, eax
test eax, eax
js 0x140001e9f
test r13b, r13b
je 0x140001eaa
mov rcx, qword [rsp + 0x38]
mov r9, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdx
mov r8, r12
xor edx, edx
call qword [rax + 0x18]
mov edi, eax
test eax, eax
jns 0x140001eaa
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001eba
mov rax, qword [rcx]
call qword [rax + 0x10]
test edi, edi
js 0x140001e04
jmp 0x140001ec8
test edi, edi
js 0x140001f11
lea rcx, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140001f02
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140001ee0
mov rcx, qword [rsp + 0x38]
mov edx, dword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001f29
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, qword [0x140019888]
test rdi, rdi
je 0x140001f64
cmp qword [rdi], r14
je 0x140001f64
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140001f52
mov rax, qword [rcx]
call qword [rax + 0x10]
xor ecx, ecx
mov qword [rdi + 0x20], r14
call qword [rdi + 0x40]
add rdi, 0x48
cmp qword [rdi], r14
jne 0x140001f43
mov rdi, qword [0x1400187f0]
mov rcx, qword [0x1400187f8]
cmp rdi, rcx
jae 0x140001f94
mov rax, qword [rdi]
test rax, rax
je 0x140001f8b
xor ecx, ecx
call qword [rax + 0x40]
mov rcx, qword [0x1400187f8]
add rdi, 8
cmp rdi, rcx
jb 0x140001f77
cmp dword [0x140019848], r14d
je 0x140001ff7
mov rbx, qword [0x140019850]
test rbx, rbx
je 0x140001fd1
nop dword [rax]
mov rcx, qword [rbx + 8]
call qword [rbx]
mov rdi, qword [rbx + 0x10]
mov rcx, rbx
call fcn.1400071e0
mov rbx, rdi
test rdi, rdi
jne 0x140001fb0
mov qword [0x140019850], r14
mov rcx, qword [0x140019880]
test rcx, rcx
je 0x140001fe3
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, [0x140019858]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x140019848], r14d
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp qword [rsp + 0x98], 8
jb 0x14000201e
mov rcx, qword [rsp + 0x80]
call fcn.1400071e0
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140007200
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret