Function at 0x140005a50
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
xor r12d, r12d
mov qword [0x14000d6b0], r12
lea rax, [0x14000d6c8]
mov qword [0x14000d6a0], rax
lea r13d, [r12 + 1]
mov qword [0x14000d6b8], r13
mov qword [0x14000d6d8], r12
mov qword [0x14000d6c8], r12
mov qword [0x14000d6e0], r13
lea rax, [0x140009068]
mov qword [0x14000d6f0], rax
lea rax, [0x140009058]
mov qword [0x14000d6f8], rax
lea rbx, [0x14000d6a0]
mov qword [section..data], rbx
lea rdi, [0x14000d6f0]
mov r8, qword [rdi]
lea rdi, [rdi + 8]
mov qword [rbp - 0x38], r8
mov qword [rbp - 0x30], r12
mov qword [rbx + 0x20], r8
lea rax, [rbx + 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9d, r13d
mov rdx, rbx
lea rcx, [0x1400050b0]
call qword [sym.imp.ntdll.dll_EtwRegisterTraceGuidsW]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140005ade
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rsi, rax
or r14, 0xffffffffffffffff
mov rdi, r14
inc rdi
cmp word [rax + rdi*2], r12w
jne 0x140005b38
add rdi, r13
mov r15d, 2
mov eax, r15d
mul rdi
cmovo rax, r14
mov rcx, rax
call qword [sym.imp.wbemcomn.dll_public:_static_void____ptr64___cdecl_CWin32DefaultArena::WbemMemAlloc_unsigned_long_long_unsigned___int64__]
mov rbx, rax
test rax, rax
jne 0x140005bac
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
lea rbx, section..data
mov rcx, qword [section..data]
cmp rcx, rbx
je 0x140006376
test byte [rcx + 0x1c], r13b
je 0x140006376
cmp byte [rcx + 0x19], r15b
jb 0x140006376
lea edx, [r15 + 0x13]
jmp 0x140006366
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.1400064b0
mov edi, eax
test eax, eax
jns 0x140005c19
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
mov edx, edi
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
lea rbx, section..data
mov rcx, qword [section..data]
cmp rcx, rbx
je 0x140006376
test byte [rcx + 0x1c], r13b
je 0x140006376
cmp byte [rcx + 0x19], r15b
jb 0x140006376
mov edx, SafeArrayGetElement
mov r9d, edi
lea r8, [0x1400092d0]
mov rcx, qword [rcx + 0x10]
call fcn.140001d38
jmp 0x140006376
mov rdi, rbx
movzx ecx, word [rbx]
mov edx, 0x19
lea r8d, [rdx + 7]
test cx, cx
je 0x140005c8b
lea esi, [rdx + 0x66]
cmp cx, si
ja 0x140005c43
lea eax, [rcx - 0x61]
cmp ax, dx
ja 0x140005c7d
sub cx, r8w
jmp 0x140005c7d
mov word [rbp + 0x40], cx
mov dword [rsp + 0x28], r13d
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, r13d
lea r8, [rbp + 0x40]
mov edx, 0x200
mov ecx, esi
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_LCMapStringW]
movzx ecx, word [rbp + 0x48]
test eax, eax
cmove cx, word [rbp + 0x40]
mov edx, 0x19
lea r8d, [rdx + 7]
mov word [rdi], cx
add rdi, r15
movzx ecx, word [rdi]
test cx, cx
jne 0x140005c30
mov rcx, qword [0x14000d890]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [0x1400089e0]
mov edi, eax
test eax, eax
jns 0x140005ceb
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
lea rbx, section..data
mov rcx, qword [section..data]
cmp rcx, rbx
je 0x140006376
test byte [rcx + 0x1c], r13b
je 0x140006376
cmp byte [rcx + 0x19], r15b
jb 0x140006376
mov edx, reloc.OLEAUT32.dll_SafeArrayUnaccessData
jmp 0x140006146
lea rdx, [0x140009230]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
jne 0x140006292
lea rdx, str._REGSERVER
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
jne 0x140006292
lea rdx, [0x140009260]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
jne 0x14000615e
lea rdx, str._UNREGSERVER
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
jne 0x14000615e
lea rdx, str.EMBEDDING
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
jne 0x140005d7f
cmp dword [0x14000d820], r12d
jne 0x140005d7f
lea rcx, str.Cannot_run_standalone_n
call qword [sym.imp.msvcrt.dll_printf]
jmp 0x140006376
mov rcx, qword [0x14000d890]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x1400089e0]
mov r14d, eax
test eax, eax
jns 0x140005de4
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
lea rbx, section..data
mov rcx, qword [section..data]
cmp rcx, rbx
je 0x140006376
test byte [rcx + 0x1c], r13b
je 0x140006376
cmp byte [rcx + 0x19], r15b
jb 0x140006376
mov edx, 0x1e
mov r9d, r14d
jmp 0x140006149
mov rsi, qword [0x14000d008]
lea rdi, [0x14000d008]
cmp rsi, rdi
je 0x140005e9a
mov ecx, 0x28
call qword [sym.imp.wbemcomn.dll_public:_static_void____ptr64___cdecl_CWin32DefaultArena::WbemMemAlloc_unsigned_long_long_unsigned___int64__]
mov rbx, rax
mov qword [rbp + 0x50], rax
test rax, rax
je 0x140005e52
mov rax, qword [rsi + 0x18]
lea rcx, [0x1400082d8]
mov qword [rbx], rcx
lea rcx, [0x1400082b0]
mov qword [rbx + 8], rcx
mov dword [rbx + 0x10], r12d
lea r8, [rbx + 0x18]
mov qword [r8], r12
mov qword [rbx + 0x20], rax
lock add dword [rax + 8], r13d
lea rdx, [0x140008ba0]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.wbemcomn.dll_public:_long_int___cdecl_CUnkInternal::InternalQueryInterface_struct__GUID_const____ptr64__void____ptr64____ptr64____ptr64]
jmp 0x140005e55
mov rbx, r12
test rbx, rbx
je 0x140005fc8
lea rax, [rsi + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, r13d
mov r8d, SafeArrayGetElement
mov rdx, rbx
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRegisterClassObject]
mov r15d, eax
test eax, eax
js 0x140005f7e
mov rsi, qword [rsi]
cmp rsi, rdi
jne 0x140005dfb
mov r15d, 2
lea rbx, section..data
cmp dword [0x14000d820], r12d
je 0x14000600f
mov rax, qword [0x14000d828]
mov qword [rbp - 0x28], rax
lea rax, [0x140005570]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r12
lea rcx, [rbp - 0x28]
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140006029
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
mov rcx, qword [section..data]
cmp rcx, rbx
je 0x140005f28
test byte [rcx + 0x1c], r13b
je 0x140005f28
cmp byte [rcx + 0x19], r15b
jb 0x140005f28
mov edx, SafeArrayGetLBound
mov r9d, esi
lea r8, [0x1400092d0]
mov rcx, qword [rcx + 0x10]
call fcn.140001d38
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
mov rcx, qword [section..data]
cmp rcx, rbx
je 0x140006029
test byte [rcx + 0x1c], r13b
je 0x140006029
cmp byte [rcx + 0x19], r15b
jb 0x140006029
mov edx, 0x21
mov r9d, 0x80041001
lea r8, [0x1400092d0]
mov rcx, qword [rcx + 0x10]
call fcn.140001d38
jmp 0x140006029
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
lea rbx, section..data
mov rcx, qword [section..data]
cmp rcx, rbx
je 0x140006376
test byte [rcx + 0x1c], r13b
je 0x140006376
cmp byte [rcx + 0x19], 2
jb 0x140006376
mov edx, 0x20
mov r9d, r15d
jmp 0x140006149
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
lea rbx, section..data
mov rcx, qword [section..data]
cmp rcx, rbx
je 0x140006376
test byte [rcx + 0x1c], r13b
je 0x140006376
cmp byte [rcx + 0x19], 2
jb 0x140006376
mov edx, 0x1f
jmp 0x140006366
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
mov dword [0x14000d0c4], eax
call fcn.1400072cc
test al, al
je 0x140006029
call fcn.14000543c
mov rsi, qword [0x14000d008]
jmp 0x14000608a
mov ecx, dword [rsi + 0x30]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevokeClassObject]
mov r15d, eax
test eax, eax
jns 0x140006087
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
mov rcx, qword [section..data]
cmp rcx, rbx
je 0x140006084
test byte [rcx + 0x1c], r13b
je 0x140006084
cmp byte [rcx + 0x19], 2
jb 0x140006084
mov edx, 0x22
mov r9d, r15d
lea r8, [0x1400092d0]
mov rcx, qword [rcx + 0x10]
call fcn.140001d38
mov r14d, r15d
mov rsi, qword [rsi]
cmp rsi, rdi
jne 0x140006032
test r14d, r14d
jns 0x1400060d7
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
mov rcx, qword [section..data]
cmp rcx, rbx
je 0x140006376
test byte [rcx + 0x1c], r13b
je 0x140006376
cmp byte [rcx + 0x19], 2
jb 0x140006376
mov edx, 0x23
mov r9d, r14d
jmp 0x140005c04
call fcn.1400072cc
test al, al
je 0x1400060fc
lea r9, [0x140005a40]
xor edx, edx
xor ecx, ecx
mov r8d, 0x3e8
call qword [sym.imp.USER32.dll_SetTimer]
call fcn.14000543c
call fcn.140004fa0
mov edi, eax
test eax, eax
jns 0x140006376
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
mov rcx, qword [section..data]
cmp rcx, rbx
je 0x140006376
test byte [rcx + 0x1c], r13b
je 0x140006376
cmp byte [rcx + 0x19], 2
jb 0x140006376
mov edx, 0x24
mov r9d, edi
lea r8, [0x1400092d0]
mov rcx, qword [rcx + 0x10]
call fcn.140001d38
jmp 0x140006376
mov rcx, qword [0x14000d890]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x1400089e0]
mov edi, eax
lea rbx, section..data
test eax, eax
jns 0x1400061c1
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
mov rcx, qword [section..data]
cmp rcx, rbx
je 0x1400061c1
test byte [rcx + 0x1c], r13b
je 0x1400061c1
cmp byte [rcx + 0x19], r15b
jb 0x1400061c1
mov edx, 0x1b
mov r9d, edi
lea r8, [0x1400092d0]
mov rcx, qword [rcx + 0x10]
call fcn.140001d38
mov rsi, qword [0x14000d008]
lea rdi, [0x14000d008]
cmp rsi, rdi
je 0x140006232
lea rcx, [rsi - 8]
call fcn.140004aa8
mov r14d, eax
test eax, eax
jns 0x140006226
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
mov rcx, qword [section..data]
cmp rcx, rbx
je 0x140006226
test byte [rcx + 0x1c], r13b
je 0x140006226
cmp byte [rcx + 0x19], r15b
jb 0x140006226
mov edx, 0x1c
mov r9d, r14d
lea r8, [0x1400092d0]
mov rcx, qword [rcx + 0x10]
call fcn.140001d38
mov rsi, qword [rsi]
cmp rsi, rdi
jne 0x1400061d4
or r14, 0xffffffffffffffff
cmp dword [0x14000d820], r12d
je 0x140006376
call fcn.1400058fc
test eax, eax
jne 0x140006376
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
mov rcx, qword [section..data]
cmp rcx, rbx
je 0x140006376
test byte [rcx + 0x1c], r13b
je 0x140006376
cmp byte [rcx + 0x19], r15b
jb 0x140006376
mov edx, 0x1d
mov r9d, 0x80041001
jmp 0x140006149
mov rcx, qword [0x14000d890]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x1400089e0]
mov edi, eax
test eax, eax
jns 0x1400062f3
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
lea rbx, section..data
mov rcx, qword [section..data]
cmp rcx, rbx
je 0x140006376
test byte [rcx + 0x1c], r13b
je 0x140006376
cmp byte [rcx + 0x19], r15b
jb 0x140006376
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
jmp 0x140006146
mov rbx, qword [0x14000d008]
lea rdi, [0x14000d008]
jmp 0x140006319
lea rcx, [rbx - 8]
call fcn.14000455c
mov esi, eax
test eax, eax
js 0x140006398
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140006303
cmp dword [0x14000d820], r12d
je 0x140006376
call fcn.140005780
test eax, eax
jne 0x140006376
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
lea rbx, section..data
mov rcx, qword [section..data]
cmp rcx, rbx
je 0x140006376
test byte [rcx + 0x1c], r13b
je 0x140006376
cmp byte [rcx + 0x19], r15b
jb 0x140006376
mov edx, 0x1a
lea r8, [0x1400092d0]
mov rcx, qword [rcx + 0x10]
call fcn.140001d14
call fcn.140005138
xor eax, eax
mov rbx, qword [rsp + 0xd8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
lea rbx, section..data
mov rcx, qword [section..data]
cmp rcx, rbx
je 0x140006376
test byte [rcx + 0x1c], r13b
je 0x140006376
cmp byte [rcx + 0x19], r15b
jb 0x140006376
mov edx, 0x19
mov r9d, esi
jmp 0x140006149