Function at 0x1400153b0
Capabilities:
Query or enumerate registry value
Set http header

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x3e8]
sub rsp, 0x4d0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14005e0f0]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rsi, rdx
mov rdi, rcx
movdqa xmm0, xmmword [0x14004da30]
movdqu xmmword [rbp - 0x70], xmm0
xor r14d, r14d
mov word [rbp - 0x80], r14w
lea rdx, str._OneSettings__BuildWebRequestHeaders
lea rcx, [rbp - 0x80]
call fcn.1400082d4
lea r8, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae r8, qword [rbp - 0x80]
lea rdx, str._s_:_Init
xor ecx, ecx
call fcn.140009b0c
nop
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.140014b30
test eax, eax
js 0x140015470
mov r9d, 0x20000000
or r8d, 0xffffffff
lea rdx, [rbp - 0x60]
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
nop dword [rax + rax]
test eax, eax
jne 0x140015470
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movdqa xmm0, xmmword [0x14004da30]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r14w
lea rdx, str._OneSettings__GetRefreshIntervalHeaderFromRegistry
lea rcx, [rsp + 0x60]
call fcn.1400082d4
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r8, qword [rsp + 0x60]
lea rdx, str._s_:_Init
xor ecx, ecx
call fcn.140009b0c
nop
mov ebx, r14d
mov dword [rsp + 0x40], r14d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov r9d, 2
lea r8, str.x_ms_onesetinterval
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x140015504
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, dword [rsp + 0x40]
add eax, 0x2a
test ebx, ebx
js 0x14001551c
mov ecx, 0x800700ea
cmp eax, 0x208
cmovae ebx, ecx
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
test ebx, ebx
js 0x1400155a6
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, str.x_ms_onesetinterval:
lea rcx, [rbp + 0x1b0]
call fcn.140011828
mov ebx, eax
test eax, eax
js 0x1400155a6
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov r9d, 2
lea r8, str.x_ms_onesetinterval
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x1400155a6
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r8, qword [rsp + 0x60]
lea rdx, str._s_:_Exit
xor ecx, ecx
call fcn.140009b0c
lea rcx, [rsp + 0x60]
call fcn.140008164
test ebx, ebx
js 0x140015628
mov r9d, 0x20000000
or r8d, 0xffffffff
lea rdx, [rbp + 0x1b0]
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
nop dword [rax + rax]
test eax, eax
jne 0x140015624
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
mov ebx, 0x80004005
test r8d, r8d
cmovs ebx, r8d
test ebx, ebx
js 0x140015639
lea rdx, [rdi + 0x80]
mov rcx, rsi
call fcn.1400151e8
mov ebx, eax
lea r8, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae r8, qword [rbp - 0x80]
lea rdx, str._s_:_Exit
xor ecx, ecx
call fcn.140009b0c
lea rcx, [rbp - 0x80]
call fcn.140008164
mov eax, ebx
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140041d90
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret