Function at 0x140002140
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x140042020]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0x10
jb 0x14000217d
mov rbx, qword [rcx]
add rdi, rbx
jmp 0x140002183
add rdi, rcx
mov rbx, rcx
xor esi, esi
mov qword [rbp - 0x19], rsi
mov ecx, esi
mov qword [rbp - 9], rcx
mov r8d, 7
mov qword [rbp - 1], r8
mov word [rbp - 0x19], si
mov rdx, rdi
sub rdx, rbx
cmp rdx, 8
jb 0x1400021bc
lea rcx, [rbp - 0x19]
call fcn.1400062b0
mov ecx, esi
mov qword [rbp - 9], rcx
mov r8, qword [rbp - 1]
lea rax, [rbp - 0x19]
mov qword [rbp - 0x29], rax
cmp rbx, rdi
je 0x140002215
nop dword [rax]
movsx r9d, byte [rbx]
cmp rcx, r8
jae 0x1400021fa
lea rax, [rcx + 1]
mov qword [rbp - 9], rax
lea rax, [rbp - 0x19]
cmp r8, 8
cmovae rax, qword [rbp - 0x19]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], si
jmp 0x140002203
lea rcx, [rbp - 0x19]
call fcn.140006490
inc rbx
cmp rbx, rdi
je 0x140002215
mov r8, qword [rbp - 1]
mov rcx, qword [rbp - 9]
jmp 0x1400021d0
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x37], rsi
mov qword [rbp + 0x3f], 7
mov word [rbp + 0x27], si
mov r8d, 0x13
lea rdx, str.Softwarepalworldip
lea rcx, [rbp + 0x27]
call fcn.140003a70
nop
mov qword [rbp + 7], rsi
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], si
mov r8d, 0xd
lea rdx, str.palworldipstr
lea rcx, [rbp + 7]
call fcn.140003a70
nop
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae rdx, qword [rbp + 0x27]
mov qword [rsp + 0x40], rsi
lea rax, [rbp - 0x21]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
je 0x1400022dd
lea rdx, str.Unable_to_open_or_create_registry_key__error_code:
lea rcx, [0x140043510]
call fcn.140005160
mov rcx, rax
mov edx, ebx
call fcn.140002910
mov rcx, rax
call fcn.140005430
xor bl, bl
jmp 0x140002364
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rcx, qword [rbp - 0x19]
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rdx, qword [rbp + 7]
mov eax, dword [rbp - 9]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140002358
lea rdx, str.Unable_to_set_registry_value__error_code:
lea rcx, [0x140043510]
call fcn.140005160
mov rcx, rax
mov edx, ebx
call fcn.140002910
mov rcx, rax
call fcn.140005430
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x140002364
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x1400023a4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000239f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000246e
call fcn.140008e30
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], si
mov rdx, qword [rbp + 0x3f]
cmp rdx, 8
jb 0x1400023f4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400023ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002474
call fcn.140008e30
mov qword [rbp + 0x37], rsi
mov qword [rbp + 0x3f], 7
mov word [rbp + 0x27], si
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140002440
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000243b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002468
call fcn.140008e30
movzx eax, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140008e10
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140011a7c
nop
call fcn.140011a7c
nop
call fcn.140011a7c
int3