Function at 0x1400b85d0
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 [0x140191010]
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, [0x14013b728]
mov edx, 0x102
lea rcx, [rbp + 0x2a4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea r8, [0x14016059c]
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, [0x14013b728]
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 [0x1401993f8]
mov eax, dword [0x1401993fc]
lea r15, [0x140000000]
add ecx, eax
je 0x1400b872c
mov dword [rsp + 0x50], r14d
call fcn.1400057e0
mov qword [rsp + 0x48], rax
lock inc dword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x1400b86b6
call fcn.1400057e0
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.140004bd0
nop
mov qword [rsp + 0x48], r14
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
js 0x1400b8727
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rsp + 0x50], eax
cmp eax, 1
jns 0x1400b8712
lock inc dword [rsp + 0x50]
mov rcx, qword [0x140199220]
test rcx, rcx
jne 0x1400b890e
lea rax, [r15 + 0x160500]
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 [0x1401993f8]
mov eax, dword [0x1401993fc]
add ecx, eax
je 0x1400b8873
mov dword [rsp + 0x60], r14d
call fcn.1400057e0
mov qword [rsp + 0x58], rax
lock inc dword [rsp + 0x60]
mov dword [rsp + 0x40], 0xa
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x1400b8850
call fcn.1400057e0
mov qword [rsp + 0x58], rax
lock inc dword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0
je 0x1400b886f
mov rax, qword [rax + 0x58]
test rax, rax
je 0x1400b886f
call qword [case.0x14006aed5.0]
movzx ebx, al
jmp 0x1400b8875
xor ebx, ebx
jmp 0x1400b8875
xor bl, bl
mov eax, dword [rsp + 0x40]
test al, 8
je 0x1400b88ba
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 0x1400b88b5
nop dword [rax]
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rsp + 0x60], eax
cmp eax, 1
jns 0x1400b88a0
lock inc dword [rsp + 0x60]
mov byte [rbp + 0x110], bl
mov dword [rbp + 0x114], 4
lea rax, [0x14013b970]
mov qword [rbp + 0x118], rax
test bl, bl
je 0x1400b88f0
lea rdx, str.servConfig_null
lea rcx, [rbp + 0x90]
call fcn.140006200
nop
lea rcx, [rbp + 0x128]
call fcn.140004c30
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 0x1400b8c46
mov rax, qword [rcx]
lea r8, [0x14013b9f0]
mov edx, 0xc9
mov rax, qword [rax + 0x30]
call qword [case.0x14006aed5.0]
mov rsi, rax
mov qword [rbp + 0x280], r14
mov qword [rbp + 0x290], r14
mov qword [rbp + 0x298], 7
mov r8d, Ordinal_21
lea rdx, [0x14013b9c8]
lea rcx, [rbp + 0x280]
call fcn.140002ed0
mov rdx, rsi
lea rcx, [rbp + 0x280]
call fcn.140005de0
movzx edi, al
mov rdx, qword [rbp + 0x298]
cmp rdx, 8
jb 0x1400b89b7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x280]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b89b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b89b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140071e50
mov qword [rbp + 0x290], r14
mov qword [rbp + 0x298], 7
mov word [rbp + 0x280], r14w
test dil, dil
je 0x1400b8b74
lea rax, [r15 + 0x160500]
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 [0x1401993f8]
mov eax, dword [0x1401993fc]
add ecx, eax
je 0x1400b8add
mov dword [rsp + 0x70], r14d
call fcn.1400057e0
mov qword [rsp + 0x68], rax
lock inc dword [rsp + 0x70]
mov dword [rsp + 0x40], 0xa0
mov rax, qword [rsp + 0x68]
test rax, rax
jne 0x1400b8abe
call fcn.1400057e0
mov qword [rsp + 0x68], rax
lock inc dword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
cmp qword [rax], 0
je 0x1400b8add
mov rax, qword [rax + 0x58]
test rax, rax
je 0x1400b8add
call qword [case.0x14006aed5.0]
movzx ebx, al
jmp 0x1400b8adf
xor bl, bl
mov eax, dword [rsp + 0x40]
test al, al
jns 0x1400b8b1e
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 0x1400b8b19
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rsp + 0x70], eax
cmp eax, 1
jns 0x1400b8b04
lock inc dword [rsp + 0x70]
mov byte [rbp + 0x18], bl
mov dword [rbp + 0x1c], 4
lea rax, [0x14013b8e0]
mov qword [rbp + 0x20], rax
test bl, bl
je 0x1400b8b5c
lea rdx, str.invalid_string:
lea rcx, [rbp - 0x68]
call fcn.140006200
movzx ebx, byte [rbp + 0x18]
test bl, bl
je 0x1400b8b5c
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.140006200
nop
lea rcx, [rbp + 0x30]
call fcn.140004c30
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 0x1400b8c46
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 0x1400b8b96
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 0x1400b8c3c
lea r8, str.CIpmHandler::SaveCampaignId
mov edx, 4
lea rcx, [rbp + 0x188]
call fcn.140004ea0
mov rbx, rax
movzx eax, byte [rax + 0x80]
test al, al
je 0x1400b8c22
lea rdx, str.Error:
mov rcx, rbx
call fcn.140006200
movzx eax, byte [rbx + 0x80]
test al, al
je 0x1400b8c22
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.140004c30
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.1400091b0
mov rcx, qword [rbp + 0x6c0]
xor rcx, rsp
call fcn.140071e30
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