Function at 0x140044480
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x250
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rsi, rcx
xor r13d, r13d
mov r12d, r13d
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x78], r13d
mov qword [rbp - 0x80], r13
mov byte [rcx + 0x14c], r13b
mov rax, qword [rcx]
lea rdx, [rbp + 0x50]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
test rax, rax
lea rdx, [rax + 8]
jne 0x1400444f4
mov edx, r13d
lea rcx, [rsi + 0x10]
or rdi, 0xffffffffffffffff
cmp rcx, rdx
je 0x14004450d
mov r9, rdi
xor r8d, r8d
call fcn.140004680
nop
lea rcx, [rbp + 0x50]
call fcn.1400048d0
cmp qword [rsi + 0x20], 0
je 0x140044df1
lea r14, [0x140102478]
mov qword [rbp + 0xa0], r14
lea rbx, [0x1401025f8]
mov qword [rbp + 0xe0], rbx
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, str.SoftwareInstallShieldSuiteInstallers
lea rcx, [rbp + 0xa0]
call fcn.140003cb0
nop
lea rax, [rbp - 0x50]
mov qword [rsp + 0x58], rax
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x10], rbx
lea rdx, [rsi + 8]
xor r8d, r8d
lea rcx, [rbp - 0x50]
call fcn.140006eb0
nop
mov r8d, 0x5c
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0xa0]
call fcn.1400094d0
mov rax, qword [rsi]
lea rdx, [rbp + 0x50]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
test rax, rax
lea rdx, [rax + 8]
jne 0x1400445ab
mov rdx, r13
lea rcx, [rsi + 0x100]
cmp rcx, rdx
je 0x1400445c3
mov r9, rdi
xor r8d, r8d
call fcn.140004680
nop
lea rcx, [rbp + 0x50]
call fcn.1400048d0
lea rcx, [rsi + 0x60]
lea rax, [rbp + 0xa8]
cmp rcx, rax
je 0x1400445ee
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp + 0xa8]
call fcn.140004680
lea r15, [rsi + 0x60]
mov qword [rsp + 0x60], r13
cmp qword [r15 + 0x18], 8
jb 0x140044603
mov rdx, qword [r15]
jmp 0x140044606
mov rdx, r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140044643
mov dword [rsp + 0x78], r13d
mov r12, qword [rsp + 0x60]
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x78], r13d
jmp 0x1400448c9
cmp eax, 2
jne 0x1400448c9
cmp byte [0x140173b48], 0
jne 0x140044662
cmp byte [0x14017bbb1], 0
je 0x14004471c
lea rbx, [0x140102478]
mov qword [rbp - 0x50], rbx
lea r14, [0x1401025f8]
mov qword [rbp - 0x10], r14
xor r9d, r9d
lea rdx, str.StateManager.cpp
lea rcx, [rbp - 0x50]
call fcn.140006ab0
nop
mov qword [rbp], rbx
mov qword [rbp + 0x40], r14
xor r9d, r9d
lea rdx, str.State_manager:_no_existing_state_information_found__creating_new_state
lea rcx, [rbp]
call fcn.140006ab0
nop
cmp byte [0x140173b48], 0
je 0x1400446d1
cmp byte [0x14017bbb1], 0
jne 0x1400446c3
call fcn.140099320
test al, al
je 0x1400446ca
mov byte [0x14017bbb1], 1
mov byte [0x140173b48], 0
cmp byte [0x14017bbb1], 0
je 0x140044702
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
lea rcx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rcx, qword [rbp + 8]
mov r8d, 0x26
call fcn.140099810
nop
lea rcx, [rbp]
call fcn.140004280
nop
lea rcx, [rbp - 0x50]
call fcn.140004280
lea r14, [0x140102478]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x60], rax
mov rax, qword [rsi]
lea rdx, [rbp + 0x50]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rbx, rax
mov qword [rbp - 0x50], r14
lea rax, [0x1401025f8]
mov qword [rbp - 0x10], rax
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, [0x1400fc414]
lea rcx, [rbp - 0x50]
call fcn.140003cb0
nop
mov r9, rbx
lea r8, [rbp - 0x50]
mov dl, 1
lea rcx, [rbp]
call fcn.1400a5bdc
nop
test rax, rax
lea rdx, [rax + 8]
jne 0x140044785
mov rdx, r13
lea rcx, [rsi + 0xb0]
cmp rcx, rdx
je 0x14004479d
mov r9, rdi
xor r8d, r8d
call fcn.140004680
nop
lea rcx, [rbp]
call fcn.1400048d0
lea rax, [rbp - 0x50]
mov qword [rsp + 0x58], rax
lea rax, [rbp]
mov qword [rsp + 0x60], rax
mov qword [rbp - 0x50], r14
lea rbx, [0x1401025f8]
mov qword [rbp - 0x10], rbx
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, [0x1401093c0]
lea rcx, [rbp - 0x50]
call fcn.140003cb0
nop
mov qword [rbp], r14
mov qword [rbp + 0x40], rbx
lea rdx, [rsi + 0xa8]
xor r8d, r8d
lea rcx, [rbp]
call fcn.140006eb0
nop
lea rcx, [rsi + 0x170]
mov rax, qword [rcx]
lea r8, [rbp - 0x50]
lea rdx, [rbp]
call qword [rax]
mov qword [rsp + 0x58], r13
cmp qword [r15 + 0x18], 8
jb 0x14004481f
mov r15, qword [r15]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140044873
mov dword [rsp + 0x78], r13d
mov r12, qword [rsp + 0x58]
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x78], r13d
add rsi, 0xb0
cmp qword [rsi + 0x18], 8
jb 0x140044884
mov rsi, qword [rsi]
test rsi, rsi
je 0x140044de2
nop dword [rax]
lea rdi, [rdi + 1]
cmp word [rsi + rdi*2], 0
jne 0x140044890
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
lea rdx, str.InfoPath
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x140044de2
lea rbx, [0x140102478]
lea r14, [0x1401025f8]
cmp byte [0x140173b48], 0
jne 0x1400448ed
cmp byte [0x14017bbb1], 0
je 0x140044992
mov qword [rbp], rbx
mov qword [rbp + 0x40], r14
xor r9d, r9d
lea rdx, str.StateManager.cpp
lea rcx, [rbp]
call fcn.140006ab0
nop
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x10], r14
xor r9d, r9d
lea rdx, str.State_manager:_registry_indicates_existing_state_info
lea rcx, [rbp - 0x50]
call fcn.140006ab0
nop
cmp byte [0x140173b48], 0
je 0x14004494e
cmp byte [0x14017bbb1], 0
jne 0x140044940
call fcn.140099320
test al, al
je 0x140044947
mov byte [0x14017bbb1], 1
mov byte [0x140173b48], 0
cmp byte [0x14017bbb1], 0
je 0x14004497f
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rdx, qword [rbp + 8]
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
mov r8d, 0x35
call fcn.140099810
nop
lea rcx, [rbp - 0x50]
call fcn.140004280
nop
lea rcx, [rbp]
call fcn.140004280
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r13
lea rax, [rbp - 0x50]
mov qword [rsp + 0x58], rax
lea rax, [rbp]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x68], rax
lea r15, [0x140102478]
mov qword [rbp - 0x50], r15
lea rax, [0x1401025f8]
mov qword [rbp - 0x10], rax
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, [0x1400fc414]
lea rcx, [rbp - 0x50]
call fcn.140003cb0
nop
mov qword [rbp], r15
lea rax, [0x1401025f8]
mov qword [rbp + 0x40], rax
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, str.InfoPath
lea rcx, [rbp]
call fcn.140003cb0
nop
mov qword [rbp + 0x50], r15
lea rax, [0x1401025f8]
mov qword [rbp + 0x90], rax
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, [0x1400fc414]
lea rcx, [rbp + 0x50]
call fcn.140003cb0
nop
mov dword [rsp + 0x28], 0x20019
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
lea r8, [rbp + 0x50]
mov rdx, r12
lea rcx, [rbp + 0xf0]
call fcn.1400a7fa0
nop
test rax, rax
lea rdx, [rax + 8]
jne 0x140044a70
mov rdx, r13
lea rcx, [rsi + 0xb0]
cmp rcx, rdx
je 0x140044a88
mov r9, rdi
xor r8d, r8d
call fcn.140004680
nop
lea rcx, [rbp + 0xf0]
call fcn.1400048d0
lea rax, [rbp + 0x50]
mov qword [rsp + 0x68], rax
mov qword [rbp + 0x50], r15
lea rax, [0x1401025f8]
mov qword [rbp + 0x90], rax
lea rdi, [rsi + 0xa8]
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp + 0x50]
call fcn.140006eb0
nop
mov edx, 4
lea rcx, [rbp + 0x50]
call fcn.1400a2ea4
test al, al
jne 0x140044bf9
cmp byte [0x140173b48], al
jne 0x140044af0
cmp byte [0x14017bbb1], al
je 0x140044b95
mov qword [rbp], rbx
mov qword [rbp + 0x40], r14
xor r9d, r9d
lea rdx, str.StateManager.cpp
lea rcx, [rbp]
call fcn.140006ab0
nop
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x10], r14
xor r9d, r9d
lea rdx, str.State_manager:_state_info_not_found
lea rcx, [rbp - 0x50]
call fcn.140006ab0
nop
cmp byte [0x140173b48], 0
je 0x140044b51
cmp byte [0x14017bbb1], 0
jne 0x140044b43
call fcn.140099320
test al, al
je 0x140044b4a
mov byte [0x14017bbb1], 1
mov byte [0x140173b48], 0
cmp byte [0x14017bbb1], 0
je 0x140044b82
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rdx, qword [rbp + 8]
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
mov r8d, 0x43
call fcn.140099810
nop
lea rcx, [rbp - 0x50]
call fcn.140004280
nop
lea rcx, [rbp]
call fcn.140004280
lea rax, [rbp + 0x50]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x58], rax
mov qword [rbp + 0x50], r15
lea rbx, [0x1401025f8]
mov qword [rbp + 0x90], rbx
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, [0x1401093c0]
lea rcx, [rbp + 0x50]
call fcn.140003cb0
nop
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x10], rbx
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.140006eb0
nop
lea rcx, [rsi + 0x170]
mov rax, qword [rcx]
jmp 0x140044d93
lea rax, [rbp + 0x50]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x58], rax
mov qword [rbp + 0x50], r15
lea rax, [0x1401025f8]
mov qword [rbp + 0x90], rax
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, [0x1401093c0]
lea rcx, [rbp + 0x50]
call fcn.140003cb0
nop
mov qword [rbp - 0x50], r15
lea rax, [0x1401025f8]
mov qword [rbp - 0x10], rax
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.140006eb0
nop
lea r15, [rsi + 0x170]
mov rax, qword [r15]
xor r9d, r9d
lea r8, [rbp + 0x50]
lea rdx, [rbp - 0x50]
mov rcx, r15
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test al, al
jne 0x140044d9f
cmp byte [0x140173b48], al
jne 0x140044c8c
cmp byte [0x14017bbb1], al
je 0x140044d31
mov qword [rbp], rbx
mov qword [rbp + 0x40], r14
xor r9d, r9d
lea rdx, str.StateManager.cpp
lea rcx, [rbp]
call fcn.140006ab0
nop
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x10], r14
xor r9d, r9d
lea rdx, str.State_manager:_invalid_or_corrupted_state_info
lea rcx, [rbp - 0x50]
call fcn.140006ab0
nop
cmp byte [0x140173b48], 0
je 0x140044ced
cmp byte [0x14017bbb1], 0
jne 0x140044cdf
call fcn.140099320
test al, al
je 0x140044ce6
mov byte [0x14017bbb1], 1
mov byte [0x140173b48], 0
cmp byte [0x14017bbb1], 0
je 0x140044d1e
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rdx, qword [rbp + 8]
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
mov r8d, 0x4f
call fcn.140099810
nop
lea rcx, [rbp - 0x50]
call fcn.140004280
nop
lea rcx, [rbp]
call fcn.140004280
lea rax, [rbp + 0x50]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x58], rax
lea rbx, [0x140102478]
mov qword [rbp + 0x50], rbx
lea rsi, [0x1401025f8]
mov qword [rbp + 0x90], rsi
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, [0x1401093c0]
lea rcx, [rbp + 0x50]
call fcn.140003cb0
nop
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x10], rsi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.140006eb0
nop
mov rax, qword [r15]
mov rcx, r15
lea r8, [rbp + 0x50]
lea rdx, [rbp - 0x50]
call qword [rax]
jmp 0x140044dd8
xor r9d, r9d
mov r8b, 1
lea rdx, [rbp + 0xf0]
mov rcx, rdi
call fcn.14003b930
nop
lea rcx, [rsi + 0xf8]
mov rdx, rax
call fcn.1400043b0
nop
lea rcx, [rbp + 0xf0]
call fcn.1400048d0
mov byte [rsi + 0x14c], 1
lea rcx, [rbp - 0x78]
call fcn.140008af0
nop
lea rcx, [rbp + 0xa0]
call fcn.1400048d0
mov edi, r13d
test r12, r12
je 0x140044e04
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r13
mov eax, edi
mov dword [rsp + 0x78], r13d
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400b31f0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret