Function at 0x1400049e0
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 [0x1400230d0]
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, [0x140003000]
mov rax, qword [r12 + 0x1a610]
lea rdi, [0x140024a10]
mov qword [r12 + 0x22bf0], rax
mov rax, qword [r12 + 0x1a618]
mov qword [r12 + 0x22bf8], rax
cmp rdi, 0xffffffffffffffff
je 0x140004a7f
cmp qword [0x140024a10], 0
mov qword [0x140025cb8], rdi
je 0x140004a7f
nop dword [rax]
mov cl, 1
call qword [rdi + 0x40]
add rdi, 0x48
cmp qword [rdi], 0
jne 0x140004a70
mov rdi, qword [0x140024bf0]
mov rcx, qword [0x140024bf8]
cmp rdi, rcx
jae 0x140004aaf
mov rax, qword [rdi]
test rax, rax
je 0x140004aa6
mov cl, 1
call qword [rax + 0x40]
mov rcx, qword [0x140024bf8]
add rdi, 8
cmp rdi, rcx
jb 0x140004a92
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or rcx, 0xffffffffffffffff
xor r14d, r14d
mov dword [0x140025cc0], 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.140005890
lea r8d, [r14 + 0x40]
lea rdx, [rsp + 0xc0]
lea rcx, [0x14001d620]
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rcx, [rsp + 0xc0]
call qword [0x14001b338]
mov rsi, rax
test rax, rax
jne 0x140004b3b
mov ecx, 0x8007000e
call fcn.140008f80
int3
mov rcx, rax
call qword [0x14001b350]
test eax, eax
je 0x140004b5c
mov rcx, rsi
call qword [0x14001b350]
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.140005890
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x78]
call fcn.140004820
cmp qword [rsp + 0x68], 8
movzx edi, al
jb 0x140004bbc
mov rcx, qword [rsp + 0x50]
call fcn.14000da34
test dil, dil
je 0x140004bc8
mov r13b, 1
movzx ebp, r13b
mov eax, dword [r12 + 0x1a6bc]
lea rcx, [rsp + 0xb0]
mov dword [rcx], eax
movzx eax, word [r12 + 0x1a6c0]
mov word [rcx + 4], ax
test rbx, rbx
je 0x140004ccf
cmp word [rbx], r14w
je 0x140004ccf
lea rax, [rsp + 0xb0]
movzx edx, word [rax]
test dx, dx
je 0x140004c1d
cmp word [rbx], dx
je 0x140004c33
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
test rax, rax
jne 0x140004c02
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
test rax, rax
jne 0x140004bf0
jmp 0x140004ccf
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
mov rdi, rax
test rax, rax
je 0x140004ccf
nop dword [rax + rax]
lea rdx, str.UnregServer
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140004f12
lea rdx, str.RegServer
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140004f12
cmp word [rdi], r14w
je 0x140004ccf
lea rax, [rsp + 0xb0]
nop
movzx edx, word [rax]
test dx, dx
je 0x140004cab
cmp word [rdi], dx
je 0x140004cbe
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
test rax, rax
jne 0x140004c90
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov rdi, rax
test rax, rax
jne 0x140004c80
jmp 0x140004ccf
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov rdi, rax
test rax, rax
jne 0x140004c50
test bpl, bpl
je 0x140004f12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140025cc8], rax
test rax, rax
je 0x140004d1b
lea rax, [rsp + 0x30]
lea r9, [0x140025c70]
lea r8, [0x140004740]
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 0x140004d98
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0xa0]
mov r8d, 0x40
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rcx, [rsp + 0x140]
call qword [0x14001b338]
mov rdi, rax
test rax, rax
jne 0x140004d60
mov ecx, 0x8007000e
call fcn.140008f80
int3
xor ecx, ecx
call qword [0x14001b358]
mov rcx, rdi
call qword [0x14001b328]
mov rcx, rdi
mov edx, eax
call qword [0x14001b330]
mov rbx, rax
test rax, rax
jne 0x140004d8f
mov ecx, 0x8007000e
call fcn.140008f80
int3
mov rcx, rdi
call qword [0x14001b358]
mov rcx, rbx
call qword [0x14001b350]
test eax, eax
je 0x140004db9
mov rcx, rbx
call qword [0x14001b350]
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 0x140004dd5
lea rcx, [rsp + 0x30]
call fcn.140005d80
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 0x140004ea4
lea r8, [rsp + 0x30]
lea rcx, [0x14001d6f4]
mov rdx, rbx
mov qword [rsp + 0x30], r14
call qword [sym.imp.ole32.dll_CreateItemMoniker]
mov edi, eax
test eax, eax
jns 0x140004e2d
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140004e9a
mov rdx, qword [rcx]
call qword [rdx + 0x10]
jmp 0x140004e9a
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140004e42
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 0x140004e7f
test r13b, r13b
je 0x140004e8a
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 0x140004e8a
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140004e9a
mov rax, qword [rcx]
call qword [rax + 0x10]
test edi, edi
js 0x140004de4
jmp 0x140004ea8
test edi, edi
js 0x140004ef1
lea rcx, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140004ee2
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 0x140004ec0
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 0x140004f09
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rbx
call qword [0x14001b358]
mov rdi, qword [0x140025cb8]
test rdi, rdi
je 0x140004f44
cmp qword [rdi], r14
je 0x140004f44
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140004f32
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 0x140004f23
mov rdi, qword [0x140024bf0]
mov rcx, qword [0x140024bf8]
cmp rdi, rcx
jae 0x140004f74
mov rax, qword [rdi]
test rax, rax
je 0x140004f6b
xor ecx, ecx
call qword [rax + 0x40]
mov rcx, qword [0x140024bf8]
add rdi, 8
cmp rdi, rcx
jb 0x140004f57
cmp dword [0x140025c78], r14d
je 0x140004fd7
mov rbx, qword [0x140025c80]
test rbx, rbx
je 0x140004fb1
nop dword [rax]
mov rcx, qword [rbx + 8]
call qword [rbx]
mov rdi, qword [rbx + 0x10]
mov rcx, rbx
call fcn.14000da34
mov rbx, rdi
test rdi, rdi
jne 0x140004f90
mov qword [0x140025c80], r14
mov rcx, qword [0x140025cb0]
test rcx, rcx
je 0x140004fc3
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, [0x140025c88]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x140025c78], r14d
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rsi
call qword [0x14001b358]
cmp qword [rsp + 0x98], 8
jb 0x140004ffe
mov rcx, qword [rsp + 0x80]
call fcn.14000da34
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14000da50
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