Function at 0x40eee0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
sub rsp, 0x1c8
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 - 8], r12
mov qword [r11 - 0x10], r13
mov rax, qword [0x0046b048]
mov qword [rsp + 0x1a0], rax
mov rsi, rdx
mov rbp, rcx
mov r8d, 0x104
lea rdx, [r11 - 0x138]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
lea r13, [0x00453650]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x48], r12d
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [0x00453658]
nop
lea rax, [0x00453688]
mov qword [rsp + 0x30], rax
mov ebx, r12d
cmp byte [rsp + 0x90], bl
je 0x40ef8e
lea rax, [rsp + 0x90]
inc ebx
inc rax
cmp byte [rax], 0
jne 0x40ef84
movsxd rdi, dword [rsp + 0x40]
lea edx, [rdi + rbx]
lea rcx, [rsp + 0x30]
call qword [0x00453690]
cmp edi, edi
jge 0x40efc3
mov r8, qword [rsp + 0x38]
lea rdx, [rdi + r8]
movsxd rcx, ebx
add rcx, rdi
add rcx, r8
mov eax, edi
sub eax, edi
movsxd r8, eax
call fcn.0042a950
movsxd r8, ebx
mov rcx, rdi
add rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x90]
call fcn.0042a950
nop
lea rax, [0x00453718]
mov qword [rsp + 0x30], rax
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [0x00453720]
mov r11d, dword [rsp + 0x40]
dec r11d
movsxd r8, r11d
mov r9, qword [rsp + 0x38]
js 0x40f036
nop
nop
movzx edx, byte [r8 + r9]
mov al, 0x2f
lea rcx, [0x004540d4]
nop
cmp al, dl
je 0x40f03c
inc rcx
movzx eax, byte [rcx]
test al, al
jne 0x40f020
dec r11d
dec r8
jns 0x40f010
mov r11d, 0xffffffff
lea eax, [r11 + 1]
movsxd rdi, eax
add rdi, r9
lea r8, [0x00454558]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.0040e510
nop
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], r12
mov edx, dword [rsp + 0x60]
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 8]
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x78]
lea rdx, str._ld__ld
mov rcx, qword [rsp + 0x58]
call fcn.0042a690
cmp qword [rsp + 0x78], rbp
jl 0x40f0fc
mov rbx, qword [rsp + 0x70]
test rbx, rbx
jle 0x40f0fc
mov qword [rsp + 0x50], r13
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], r12d
mov dword [rsp + 0x68], r12d
test rcx, rcx
je 0x40f0c5
call fcn.0042a7a0
lea rcx, [0x00453630]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x30], r13
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x48], r12d
test rcx, rcx
je 0x40f0f4
call fcn.0042a7a0
mov rax, rbx
jmp 0x40f1b8
mov r9, rsi
mov r8, rbp
lea rdx, str._ld__ld
lea rcx, [rsp + 0x90]
call fcn.0042ba10
call fcn.0040c060
mov rbx, rax
test rax, rax
je 0x40f163
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov qword [rsp + 0x50], r13
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], r12d
mov dword [rsp + 0x68], r12d
test rcx, rcx
je 0x40f186
call fcn.0042a7a0
lea rcx, [0x00453630]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x30], r13
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x48], r12d
test rcx, rcx
je 0x40f1b5
call fcn.0042a7a0
mov rax, rsi
mov rcx, qword [rsp + 0x1a0]
call fcn.00452890
mov rbx, qword [rsp + 0x1d0]
mov rbp, qword [rsp + 0x1d8]
mov rsi, qword [rsp + 0x1e0]
mov rdi, qword [rsp + 0x1e8]
mov r12, qword [rsp + 0x1c0]
mov r13, qword [rsp + 0x1b8]
add rsp, 0x1c8
ret