Function at 0x140001860
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
cmp byte [0x14001496c], sil
je 0x140001c19
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov r14d, 0xa
mov eax, dword [rcx + rax]
cmp dword [0x140014ab4], eax
jle 0x140001a8f
lea rcx, [0x140014ab4]
call fcn.14000b968
cmp dword [0x140014ab4], 0xffffffff
jne 0x140001a8f
xor edx, edx
mov r8d, 0x108
lea r15, [0x140014ac0]
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140010160]
mov qword [0x140014ac0], rax
lea rcx, [0x140014b68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 1
xor r9d, r9d
xor r8d, r8d
lea rbp, [0x140014ac8]
mov rdx, rbp
mov rcx, r15
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64__bool____ptr64]
nop
mov rax, qword [0x140014ac0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rcx + r15], rax
mov rax, qword [0x140014ac0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rcx + r15 - 4], edx
mov rcx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [0x140014ac8], rax
mov byte [0x140014b44], sil
mov byte [0x140014b3a], sil
mov rcx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Init_void____ptr64]
mov qword [0x140014b48], rsi
mov rax, qword [0x140014ab8]
mov qword [0x140014b3c], rax
mov qword [0x140014b30], rsi
mov r8d, 0x40
mov edx, r14d
lea rcx, str.C:ProgramData_service_debug.log
call qword [sym.imp.MSVCP140.dll_struct__iobuf____ptr64___cdecl_std::_Fiopen_wchar_t_const____ptr64__int__int_]
mov rdi, rax
test rax, rax
je 0x140001a59
mov byte [0x140014b44], 1
mov byte [0x140014b3a], sil
mov rcx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Init_void____ptr64]
mov qword [0x140014b48], rdi
mov rax, qword [0x140014ab8]
mov qword [0x140014b3c], rax
mov qword [0x140014b30], rsi
lea rdx, [rsp + 0x38]
mov rcx, rbp
call qword [sym.imp.MSVCP140.dll_public:_class_std::locale___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::getloc_void____ptr64]
nop
mov rcx, rax
call fcn.140009480
mov rdi, rax
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::codecvt_base::always_noconv_void_const___ptr64]
test al, al
je 0x140001a20
mov qword [0x140014b30], rsi
jmp 0x140001a31
mov qword [0x140014b30], rdi
mov rcx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Init_void____ptr64]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001a76
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140001a76
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
jmp 0x140001a76
mov rax, qword [0x140014ac0]
movsxd rcx, dword [rax + 4]
add rcx, r15
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
nop
lea rcx, [0x14000da80]
call fcn.14000bd14
nop
lea rcx, [0x140014ab4]
call fcn.14000b8fc
cmp qword [0x140014b48], 0
je 0x140001acc
call fcn.140008b50
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x140001aac
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14000a810
lea rdx, [0x140008d50]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x140001c19
mov r8, rbx
lea rdx, [0x14000e780]
lea rcx, [rsp + 0x58]
call fcn.140008d90
mov rcx, rax
mov rdx, qword [rax + 0x10]
mov r9, qword [rax + 0x18]
mov rax, r9
sub rax, rdx
cmp rax, 1
jb 0x140001b17
lea r8, [rdx + 1]
mov qword [rcx + 0x10], r8
mov rax, rcx
cmp r9, 7
jbe 0x140001b0b
mov rax, qword [rcx]
mov word [rax + rdx*2], r14w
mov word [rax + r8*2], si
jmp 0x140001b34
mov qword [rsp + 0x20], 1
lea r9, [0x14000e77c]
mov edx, 1
call fcn.140009f70
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
movups xmm0, xmmword [rcx]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x140001bc1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bbc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bbc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
movdqa xmm0, xmmword [0x140010180]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], si
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140001c19
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret