Function at 0x140010aa8
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 [0x140033670]
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 0x140010b42
movzx ebx, ax
or ebx, r13d
test eax, eax
cmovle ebx, eax
mov eax, dword [rsp + 0x48]
add eax, 0x1e
test ebx, ebx
js 0x140010b5a
mov ecx, 0x800700ea
cmp eax, 0x208
cmovae ebx, ecx
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
test ebx, ebx
js 0x140010bd1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.14000e508
mov ebx, eax
test eax, eax
js 0x140010bd1
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 0x140010bd1
movzx ebx, ax
or ebx, r13d
test eax, eax
cmovle ebx, eax
lea rsi, [rdi + 0x88]
mov r12d, 0x80004005
test ebx, ebx
jns 0x140010bf2
lea rdx, str.Failed_to_get_E_Tag
mov ecx, ebx
call fcn.140008434
jmp 0x140010c3c
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 0x140010c34
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.14000821c
test ebx, ebx
js 0x140010e8a
mov rdx, rsi
mov rcx, r14
call fcn.140011498
mov ebx, eax
test eax, eax
js 0x140010e8a
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 0x140010c93
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 0x140010e8a
mov rcx, rdi
call fcn.140011630
mov ebx, eax
test eax, eax
js 0x140010e8a
xor edx, edx
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x140010cd9
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 0x140010e8a
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 0x140010d27
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 0x140010e8a
mov r13d, 0xc8
cmp dword [rsp + 0x40], r13d
jne 0x140010e68
movdqa xmm0, xmmword [0x140028a60]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], r15b
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.14001093c
mov ebx, eax
test eax, eax
js 0x140010e5c
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 0x140010d80
mov ebx, 1
add ebx, ecx
mov eax, 2
mul rbx
cmovo rax, r8
lea rdx, [0x140034196]
mov rcx, rax
call fcn.14001d26c
mov r14, rax
test rax, rax
je 0x140010dc7
mov r9, rsi
lea r8, [0x140023dd8]
mov edx, ebx
mov rcx, rax
call fcn.140003410
mov rdx, r14
mov rcx, rdi
call fcn.1400112a4
mov ebx, eax
mov rcx, r14
call fcn.14001c214
test ebx, ebx
js 0x140010e5c
lea rdx, str.Saving_settings_cache_to_registry
mov ecx, ebx
call fcn.140008434
mov rcx, rdi
call fcn.140011fe4
mov ebx, eax
test eax, eax
js 0x140010e5c
cmp dword [rsp + 0x40], r13d
je 0x140010e0d
cmp dword [rsp + 0x40], 0x130
jne 0x140010e5c
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.140010eb8
mov ebx, eax
test eax, eax
js 0x140010e45
mov rdx, qword [rsp + 0x48]
mov rcx, rdi
call fcn.140011178
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.140008ef8
jmp 0x140010e8a
cmp dword [rsp + 0x40], 0x130
jne 0x140010e87
lea rdx, str.ETag_not_modified
mov ecx, ebx
call fcn.140008434
mov ebx, 1
jmp 0x140010e8a
mov ebx, r12d
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14001c1f0
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret