Function at 0x1400ba980
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x6d0]
sub rsp, 0x7d0
mov rax, qword [0x1401b8010]
xor rax, rsp
mov qword [rbp + 0x6c0], rax
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [rbp + 0x2a0], eax
lea r9, [r14 - 1]
lea r8, [0x140151a28]
mov edx, 0x102
lea rcx, [rbp + 0x2a4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea r8, [0x1401815c4]
mov edx, 0x104
lea rcx, [rbp + 0x2a4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r9, [r14 - 1]
lea r8, [0x140151a28]
mov edx, 0x104
lea rcx, [rbp + 0x4ac]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov ecx, dword [0x1401c1658]
mov eax, dword [0x1401c165c]
lea r15, [0x140000000]
add ecx, eax
je 0x1400baadc
mov dword [rsp + 0x50], r14d
call fcn.140005ad0
mov qword [rsp + 0x48], rax
lock inc dword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x1400baa66
call fcn.140005ad0
mov qword [rsp + 0x48], rax
lock inc dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x78], 0x20
mov edx, 1
lea rax, [rbp + 0x2a4]
mov qword [rsp + 0x30], rax
lea rax, str.____s
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x4ac]
mov qword [rsp + 0x20], rax
mov r9, r15
lea r8, [rsp + 0x78]
movsx edx, dx
call fcn.140004c90
nop
mov qword [rsp + 0x48], r14
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
js 0x1400baad7
call fcn.140005e40
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
jns 0x1400baac2
lock inc dword [rsp + 0x50]
mov rcx, qword [0x1401c1458]
test rcx, rcx
jne 0x1400bacbe
lea rax, [r15 + 0x181628]
mov qword [rbp + 0x90], rax
lea rcx, [rbp + 0x128]
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 + 0x40], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x90]
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 [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx + 0x90], rax
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x8c], edx
lea rcx, [rbp + 0x98]
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_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + 0x98], rax
mov qword [rbp + 0x100], r14
mov dword [rbp + 0x108], 4
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea rax, vtable.logger_stream.0
mov qword [rbp + rcx + 0x90], rax
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x8c], edx
mov ecx, dword [0x1401c1658]
mov eax, dword [0x1401c165c]
add ecx, eax
je 0x1400bac23
mov dword [rsp + 0x60], r14d
call fcn.140005ad0
mov qword [rsp + 0x58], rax
lock inc dword [rsp + 0x60]
mov dword [rsp + 0x40], 0xa
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x1400bac00
call fcn.140005ad0
mov qword [rsp + 0x58], rax
lock inc dword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0
je 0x1400bac1f
mov rax, qword [rax + 0x58]
test rax, rax
je 0x1400bac1f
call qword [case.0x140077645.0]
movzx ebx, al
jmp 0x1400bac25
xor ebx, ebx
jmp 0x1400bac25
xor bl, bl
mov eax, dword [rsp + 0x40]
test al, 8
je 0x1400bac6a
and eax, 0xfffffff7
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x58], r14
mov eax, 0xffffffff
lock xadd dword [rsp + 0x60], eax
cmp eax, 1
js 0x1400bac65
nop dword [rax]
call fcn.140005e40
mov eax, 0xffffffff
lock xadd dword [rsp + 0x60], eax
cmp eax, 1
jns 0x1400bac50
lock inc dword [rsp + 0x60]
mov byte [rbp + 0x110], bl
mov dword [rbp + 0x114], 4
lea rax, [0x140151a80]
mov qword [rbp + 0x118], rax
test bl, bl
je 0x1400baca0
lea rdx, str.servConfig_null
lea rcx, [rbp + 0x90]
call fcn.140006540
nop
lea rcx, [rbp + 0x128]
call fcn.140004f20
lea rcx, [rbp + 0x128]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
jmp 0x1400baff6
mov rax, qword [rcx]
lea r8, [0x140151ab8]
mov edx, 0xc9
mov rax, qword [rax + 0x30]
call qword [case.0x140077645.0]
mov rsi, rax
mov qword [rbp + 0x280], r14
mov qword [rbp + 0x290], r14
mov qword [rbp + 0x298], 7
mov r8d, 0x11
lea rdx, [0x140151978]
lea rcx, [rbp + 0x280]
call fcn.140002f20
mov rdx, rsi
lea rcx, [rbp + 0x280]
call fcn.140006120
movzx edi, al
mov rdx, qword [rbp + 0x298]
cmp rdx, 8
jb 0x1400bad67
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x280]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400bad62
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400bad62
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007e2a0
mov qword [rbp + 0x290], r14
mov qword [rbp + 0x298], 7
mov word [rbp + 0x280], r14w
test dil, dil
je 0x1400baf24
lea rax, [r15 + 0x181628]
mov qword [rbp - 0x68], rax
lea rcx, [rbp + 0x30]
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 + 0x40], 0x20
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x68]
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 [rbp - 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x68], rax
mov rax, qword [rbp - 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x6c], edx
lea rcx, [rbp - 0x60]
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_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x60], rax
mov qword [rbp + 8], r14
mov dword [rbp + 0x10], 4
mov rax, qword [rbp - 0x68]
movsxd rcx, dword [rax + 4]
lea rax, vtable.logger_stream.0
mov qword [rbp + rcx - 0x68], rax
mov rax, qword [rbp - 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x6c], edx
mov ecx, dword [0x1401c1658]
mov eax, dword [0x1401c165c]
add ecx, eax
je 0x1400bae8d
mov dword [rsp + 0x70], r14d
call fcn.140005ad0
mov qword [rsp + 0x68], rax
lock inc dword [rsp + 0x70]
mov dword [rsp + 0x40], 0xa0
mov rax, qword [rsp + 0x68]
test rax, rax
jne 0x1400bae6e
call fcn.140005ad0
mov qword [rsp + 0x68], rax
lock inc dword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
cmp qword [rax], 0
je 0x1400bae8d
mov rax, qword [rax + 0x58]
test rax, rax
je 0x1400bae8d
call qword [case.0x140077645.0]
movzx ebx, al
jmp 0x1400bae8f
xor bl, bl
mov eax, dword [rsp + 0x40]
test al, al
jns 0x1400baece
btr eax, 7
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x68], r14
mov eax, 0xffffffff
lock xadd dword [rsp + 0x70], eax
cmp eax, 1
js 0x1400baec9
call fcn.140005e40
mov eax, 0xffffffff
lock xadd dword [rsp + 0x70], eax
cmp eax, 1
jns 0x1400baeb4
lock inc dword [rsp + 0x70]
mov byte [rbp + 0x18], bl
mov dword [rbp + 0x1c], 4
lea rax, [0x1401519d0]
mov qword [rbp + 0x20], rax
test bl, bl
je 0x1400baf0c
lea rdx, str.invalid_string:
lea rcx, [rbp - 0x68]
call fcn.140006540
movzx ebx, byte [rbp + 0x18]
test bl, bl
je 0x1400baf0c
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.140006540
nop
lea rcx, [rbp + 0x30]
call fcn.140004f20
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
jmp 0x1400baff6
lea rdi, [rbx + 0x10]
mov qword [rbp - 0x78], rdi
mov byte [rbp - 0x70], 0
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400baf46
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov byte [rbp - 0x70], 1
mov rax, qword [rbx + 0x60]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
lea r8, str.ipm_campaign_id
mov rdx, rsi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov esi, eax
test eax, eax
je 0x1400bafec
lea r8, str.CIpmHandler::SaveCampaignId
mov edx, 4
lea rcx, [rbp + 0x188]
call fcn.140005190
mov rbx, rax
movzx eax, byte [rax + 0x80]
test al, al
je 0x1400bafd2
lea rdx, str.Error:
mov rcx, rbx
call fcn.140006540
movzx eax, byte [rbx + 0x80]
test al, al
je 0x1400bafd2
mov edx, esi
mov rcx, rbx
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___int____ptr64]
nop
lea rcx, [rbp + 0x220]
call fcn.140004f20
lea rcx, [rbp + 0x220]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
nop
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
nop
lea rcx, [rbp + 0x2a0]
call fcn.140004e30
mov rcx, qword [rbp + 0x6c0]
xor rcx, rsp
call fcn.14007e250
lea r11, [rsp + 0x7d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret