Function at 0x140024790
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1d0], rbx
mov rsi, rcx
xor r14d, r14d
mov dword [rbp + 0xd8], r14d
lea rax, [0x14004b878]
mov qword [rsp + 0x60], rax
lea rax, [0x14004b880]
mov qword [rsp + 0x70], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp], rax
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call fcn.140001fe0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x78]
call fcn.140002110
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x20], r14
mov dword [rbp - 0x18], r14d
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.Logger.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa0]
mov dword [rsp + rcx + 0x5c], edx
mov dword [rbp - 0x10], 0x64
lea rdx, str.UpdateRegistry__
lea rcx, [rsp + 0x70]
call fcn.140001350
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140008970
movzx edx, ax
mov rcx, rbx
call fcn.1400083b0
mov rcx, rbx
call fcn.140007dd0
lea rcx, [rbp]
call fcn.14000e980
nop
lea r13, vtable.std::ios_base.0
mov qword [rbp], r13
lea rcx, [rbp]
call fcn.14002695c
nop
mov qword [rbp + 0xe0], r14
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.AppID
mov rcx, 0xffffffff80000000
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140024dec
mov r15, qword [rbp + 0xe0]
mov r12d, r14d
mov qword [rbp + 0xe8], r14
lea rax, [rbp + 0xe8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdi, str.11AC3232_E7D7_49CD_ABFE_501700100B3A
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
lea edx, [r14 + 1]
lea rcx, [rsp + 0x60]
test eax, eax
jne 0x140024ac3
mov r12, qword [rbp + 0xe8]
call fcn.140011e00
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.Registry_is_up_to_date
call fcn.140001350
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140008970
movzx edx, ax
mov rcx, rbx
call fcn.1400083b0
mov rcx, rbx
call fcn.140007dd0
lea rcx, [rbp]
call fcn.14000e980
nop
mov qword [rbp], r13
lea rcx, [rbp]
call fcn.14002695c
nop
lea edx, [r14 + 1]
lea rcx, [rsp + 0x60]
call fcn.140011e00
mov dword [rax + 0x90], 0xa
lea rcx, [rax + 0x10]
lea rdx, str.Registering_Server
call fcn.140001350
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140008970
movzx edx, ax
mov rcx, rbx
call fcn.1400083b0
mov rcx, rbx
call fcn.140007dd0
lea rcx, [rbp]
call fcn.14000e980
nop
mov qword [rbp], r13
lea rcx, [rbp]
call fcn.14002695c
nop
mov eax, r14d
mov rsi, qword [0x140070ff0]
mov rcx, qword [0x140070ff8]
cmp rsi, rcx
jae 0x140024a88
nop dword [rax]
mov rdi, qword [rsi]
test rdi, rdi
je 0x140024a7b
mov rbx, qword [rdi + 8]
mov rcx, rbx
call qword [fcn.140028b40]
mov ecx, 1
call rbx
test eax, eax
js 0x140024aba
mov rbx, qword [rdi + 0x30]
mov rcx, rbx
call qword [fcn.140028b40]
call rbx
mov rdx, rax
mov r8d, 1
mov rcx, qword [rdi]
call fcn.14001fce0
test eax, eax
js 0x140024aba
mov rcx, qword [0x140070ff8]
add rsi, 8
cmp rsi, rcx
jb 0x140024a30
test eax, eax
js 0x140024aba
xor edx, edx
mov rcx, qword [0x140070fe8]
call fcn.140020250
test eax, eax
js 0x140024aba
mov rbx, qword [0x140070fc8]
test rbx, rbx
je 0x140024ab8
mov rcx, rbx
call qword [fcn.140028b40]
mov rcx, qword [0x140071e08]
call rbx
test eax, eax
cmovns eax, r14d
jmp 0x140024dc8
call fcn.140011e00
mov dword [rax + 0x90], 0xa
lea rcx, [rax + 0x10]
lea rdx, str.Registry_update_needed
call fcn.140001350
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140008970
movzx edx, ax
mov rcx, rbx
call fcn.1400083b0
mov rcx, rbx
call fcn.140007dd0
lea rcx, [rbp]
call fcn.14000e980
nop
mov qword [rbp], r13
lea rcx, [rbp]
call fcn.14002695c
nop
lea rax, str.APPID
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x70], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x78], xmm0
lea r9, [rbp + 0x68]
mov edx, 0x65
lea r8d, [rdx - 0x64]
mov rcx, qword [0x140070fa8]
call fcn.140015ad0
test eax, eax
js 0x140024dc8
test r15, r15
je 0x140024b6a
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov r15, r14
mov qword [rsp + 0x50], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.AppID
mov rcx, 0xffffffff80000000
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140024dc1
mov eax, r14d
test r15, r15
je 0x140024baf
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov r15, qword [rsp + 0x50]
test eax, eax
jne 0x140024dc1
mov qword [rsp + 0x58], r14
lea rax, [rbp + 0xd8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x140024dc1
mov r12, qword [rsp + 0x58]
lea rdx, str.LocalService
mov rcx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.140011e00
mov dword [rax + 0x90], 0xa
lea rcx, [rax + 0x10]
lea rdi, [rsi + 0x68]
lea rdx, str.LocalService_:
call fcn.140001350
mov rcx, rax
mov rdx, rdi
call fcn.14000ddc0
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140008970
movzx edx, ax
mov rcx, rbx
call fcn.1400083b0
mov rcx, rbx
call fcn.140007dd0
lea rcx, [rbp]
call fcn.14000e980
nop
mov qword [rbp], r13
lea rcx, [rbp]
call fcn.14002695c
nop
test rdi, rdi
je 0x140024cd4
or rax, 0xffffffffffffffff
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rdi + rax*2], 0
jne 0x140024ca0
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
lea rdx, str.LocalService
mov rcx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, r12
call fcn.140023300
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.140011e00
mov dword [rax + 0x90], 0xa
lea rcx, [rax + 0x10]
lea rdx, str.Registering_Server
call fcn.140001350
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140008970
movzx edx, ax
mov rcx, rbx
call fcn.1400083b0
mov rcx, rbx
call fcn.140007dd0
lea rcx, [rbp]
call fcn.14000e980
nop
mov qword [rbp], r13
lea rcx, [rbp]
call fcn.14002695c
nop
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rsi
call fcn.140022aa0
test eax, eax
js 0x140024dc8
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.140011e00
mov dword [rax + 0x90], 0x64
lea rcx, [rax + 0x10]
lea rdx, str.UpdateRegistry___done
call fcn.140001350
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140008970
movzx edx, ax
mov rcx, rbx
call fcn.1400083b0
mov rcx, rbx
call fcn.140007dd0
lea rcx, [rbp]
call fcn.14000e980
nop
mov qword [rbp], r13
lea rcx, [rbp]
call fcn.14002695c
nop
jmp 0x140024dcb
mov ecx, eax
call fcn.140012bb0
mov r14d, eax
test r12, r12
je 0x140024dd9
mov rcx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test r15, r15
je 0x140024de7
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, r14d
jmp 0x140024df2
mov dword [rsi + 0x27c], eax
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret