Function at 0x1400125f4
Capabilities:
Query or enumerate registry value
Read http header
Receive http response
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 0x14001268e
movzx ebx, ax
or ebx, r13d
test eax, eax
cmovle ebx, eax
mov eax, dword [rsp + 0x48]
add eax, 0x1e
test ebx, ebx
js 0x1400126a6
mov ecx, 0x800700ea
cmp eax, 0x208
cmovae ebx, ecx
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
test ebx, ebx
js 0x14001271d
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 0x14001271d
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 0x14001271d
movzx ebx, ax
or ebx, r13d
test eax, eax
cmovle ebx, eax
lea rsi, [rdi + 0x88]
mov r12d, 0x80004005
test ebx, ebx
jns 0x14001273e
lea rdx, str.Failed_to_get_E_Tag
mov ecx, ebx
call fcn.14000dff8
jmp 0x140012788
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 0x140012780
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 0x1400129d6
mov rdx, rsi
mov rcx, r14
call fcn.140012fe4
mov ebx, eax
test eax, eax
js 0x1400129d6
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 0x1400127df
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 0x1400129d6
mov rcx, rdi
call fcn.1400131a0
mov ebx, eax
test eax, eax
js 0x1400129d6
xor edx, edx
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x140012825
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 0x1400129d6
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 0x140012873
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 0x1400129d6
mov r13d, 0xc8
cmp dword [rsp + 0x40], r13d
jne 0x1400129b4
movdqa xmm0, xmmword [0x14002b1b0]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], r15b
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140012488
mov ebx, eax
test eax, eax
js 0x1400129a8
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 0x1400128cc
mov ebx, 1
add ebx, ecx
mov eax, 2
mul rbx
cmovo rax, r8
lea rdx, [0x140036e60]
mov rcx, rax
call fcn.140020588
mov r14, rax
test rax, rax
je 0x140012913
mov r9, rsi
lea r8, [0x140026730]
mov edx, ebx
mov rcx, rax
call fcn.140005c00
mov rdx, r14
mov rcx, rdi
call fcn.140012df0
mov ebx, eax
mov rcx, r14
call fcn.14001fbf0
test ebx, ebx
js 0x1400129a8
lea rdx, str.Saving_settings_cache_to_registry
mov ecx, ebx
call fcn.14000dff8
mov rcx, rdi
call fcn.140013bc8
mov ebx, eax
test eax, eax
js 0x1400129a8
cmp dword [rsp + 0x40], r13d
je 0x140012959
cmp dword [rsp + 0x40], 0x130
jne 0x1400129a8
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.140012a04
mov ebx, eax
test eax, eax
js 0x140012991
mov rdx, qword [rsp + 0x48]
mov rcx, rdi
call fcn.140012cc4
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.140014460
jmp 0x1400129d6
cmp dword [rsp + 0x40], 0x130
jne 0x1400129d3
lea rdx, str.ETag_not_modified
mov ecx, ebx
call fcn.14000dff8
mov ebx, 1
jmp 0x1400129d6
mov ebx, r12d
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14001f510
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret