Function at 0x140010fa0
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 [0x140032370]
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 0x14001103a
movzx ebx, ax
or ebx, r13d
test eax, eax
cmovle ebx, eax
mov eax, dword [rsp + 0x48]
add eax, 0x1e
test ebx, ebx
js 0x140011052
mov ecx, 0x800700ea
cmp eax, 0x208
cmovae ebx, ecx
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
test ebx, ebx
js 0x1400110c9
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.14000e9b4
mov ebx, eax
test eax, eax
js 0x1400110c9
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 0x1400110c9
movzx ebx, ax
or ebx, r13d
test eax, eax
cmovle ebx, eax
lea rsi, [rdi + 0x88]
mov r12d, 0x80004005
test ebx, ebx
jns 0x1400110ea
lea rdx, str.Failed_to_get_E_Tag
mov ecx, ebx
call fcn.140008c60
jmp 0x140011134
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 0x14001112c
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.140008a40
test ebx, ebx
js 0x140011382
mov rdx, rsi
mov rcx, r14
call fcn.140011990
mov ebx, eax
test eax, eax
js 0x140011382
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 0x14001118b
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 0x140011382
mov rcx, rdi
call fcn.140011be8
mov ebx, eax
test eax, eax
js 0x140011382
xor edx, edx
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1400111d1
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 0x140011382
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 0x14001121f
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 0x140011382
mov r13d, 0xc8
cmp dword [rsp + 0x40], r13d
jne 0x140011360
movdqa xmm0, xmmword [0x140028860]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], r15b
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140010e34
mov ebx, eax
test eax, eax
js 0x140011354
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 0x140011278
mov ebx, 1
add ebx, ecx
mov eax, 2
mul rbx
cmovo rax, r8
lea rdx, [0x140032de2]
mov rcx, rax
call fcn.14001d4b4
mov r14, rax
test rax, rax
je 0x1400112bf
mov r9, rsi
lea r8, [0x140023e68]
mov edx, ebx
mov rcx, rax
call fcn.140002d90
mov rdx, r14
mov rcx, rdi
call fcn.14001179c
mov ebx, eax
mov rcx, r14
call fcn.14001cb10
test ebx, ebx
js 0x140011354
lea rdx, str.Saving_settings_cache_to_registry
mov ecx, ebx
call fcn.140008c60
mov rcx, rdi
call fcn.14001259c
mov ebx, eax
test eax, eax
js 0x140011354
cmp dword [rsp + 0x40], r13d
je 0x140011305
cmp dword [rsp + 0x40], 0x130
jne 0x140011354
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.1400113b0
mov ebx, eax
test eax, eax
js 0x14001133d
mov rdx, qword [rsp + 0x48]
mov rcx, rdi
call fcn.140011670
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.140009948
jmp 0x140011382
cmp dword [rsp + 0x40], 0x130
jne 0x14001137f
lea rdx, str.ETag_not_modified
mov ecx, ebx
call fcn.140008c60
mov ebx, 1
jmp 0x140011382
mov ebx, r12d
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14001c430
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret