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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2b0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400363c0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r14, rdx
mov rdi, rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x58], 4
mov ebx, r15d
mov dword [rsp + 0x48], r15d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9d, [r15 + 2]
lea r8, str.ETag
mov rdx, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov r13d, 0x80070000
test eax, eax
je 0x140012682
movzx ebx, ax
or ebx, r13d
test eax, eax
cmovle ebx, eax
mov eax, dword [rsp + 0x48]
add eax, 0x1e
test ebx, ebx
js 0x14001269a
mov ecx, 0x800700ea
cmp eax, 0x208
cmovae ebx, ecx
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
test ebx, ebx
js 0x140012711
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.1400101bc
mov ebx, eax
test eax, eax
js 0x140012711
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, 2
lea r8, str.ETag
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x140012711
movzx ebx, ax
or ebx, r13d
test eax, eax
cmovle ebx, eax
lea rsi, [rdi + 0x88]
mov r12d, 0x80004005
test ebx, ebx
jns 0x140012732
lea rdx, str.Failed_to_get_E_Tag
mov ecx, ebx
call fcn.14000dff8
jmp 0x14001277c
mov r9d, 0x20000000
or r8d, 0xffffffff
lea rdx, [rbp - 0x70]
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x140012774
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, r13d
test eax, eax
cmovle ecx, eax
mov ebx, r12d
test ecx, ecx
cmovs ebx, ecx
lea rdx, str.Failed_to_add_E_Tag_header_to_request
mov ecx, ebx
call fcn.14000dde0
test ebx, ebx
js 0x1400129ca
mov rdx, rsi
mov rcx, r14
call fcn.140012fd8
mov ebx, eax
test eax, eax
js 0x1400129ca
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
or r8d, 0xffffffff
xor edx, edx
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x1400127d3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, r13d
test eax, eax
cmovle ecx, eax
mov ebx, r12d
test ecx, ecx
cmovs ebx, ecx
test ebx, ebx
js 0x1400129ca
mov rcx, rdi
call fcn.140013194
mov ebx, eax
test eax, eax
js 0x1400129ca
xor edx, edx
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x140012819
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, r13d
test eax, eax
cmovle ecx, eax
mov ebx, r12d
test ecx, ecx
cmovs ebx, ecx
test ebx, ebx
js 0x1400129ca
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140012867
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, r13d
test eax, eax
cmovle ecx, eax
mov ebx, r12d
test ecx, ecx
cmovs ebx, ecx
test ebx, ebx
js 0x1400129ca
mov r13d, 0xc8
cmp dword [rsp + 0x40], r13d
jne 0x1400129a8
movdqa xmm0, xmmword [0x14002b100]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], r15b
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.14001247c
mov ebx, eax
test eax, eax
js 0x14001299c
lea rsi, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rsi, qword [rsp + 0x70]
or r8, 0xffffffffffffffff
mov rcx, r8
inc rcx
cmp byte [rsi + rcx], r15b
jne 0x1400128c0
mov ebx, 1
add ebx, ecx
mov eax, 2
mul rbx
cmovo rax, r8
lea rdx, [0x140036e60]
mov rcx, rax
call fcn.1400203c8
mov r14, rax
test rax, rax
je 0x140012907
mov r9, rsi
lea r8, [0x140026738]
mov edx, ebx
mov rcx, rax
call fcn.140005c00
mov rdx, r14
mov rcx, rdi
call fcn.140012de4
mov ebx, eax
mov rcx, r14
call fcn.14001fe5c
test ebx, ebx
js 0x14001299c
lea rdx, str.Saving_settings_cache_to_registry
mov ecx, ebx
call fcn.14000dff8
mov rcx, rdi
call fcn.140013bbc
mov ebx, eax
test eax, eax
js 0x14001299c
cmp dword [rsp + 0x40], r13d
je 0x14001294d
cmp dword [rsp + 0x40], 0x130
jne 0x14001299c
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
lea r8, [rdi + 0x90]
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.1400129f8
mov ebx, eax
test eax, eax
js 0x140012985
mov rdx, qword [rsp + 0x48]
mov rcx, rdi
call fcn.140012cb8
mov ebx, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop
lea rcx, [rsp + 0x70]
call fcn.140014454
jmp 0x1400129ca
cmp dword [rsp + 0x40], 0x130
jne 0x1400129c7
lea rdx, str.ETag_not_modified
mov ecx, ebx
call fcn.14000dff8
mov ebx, 1
jmp 0x1400129ca
mov ebx, r12d
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14001f340
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret