Function at 0x140081d4c
Capabilities:
Check http status code
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xa08]
sub rsp, 0xae0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140109328]
xor rax, rsp
mov qword [rbp + 0x9d0], rax
mov rsi, rdx
call fcn.1400771c4
xor r12d, r12d
test al, al
je 0x140081da4
mov edi, 0x80004005
jmp 0x1400822a8
mov ecx, 0x640
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rsi + 0x10], rax
test rax, rax
je 0x1400822a3
mov eax, 0x1008
mov word [rsi], ax
mov dword [rsi + 8], r12d
mov ebx, 0x78
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x50]
call sub.msvcrt.dll_memset
mov dword [rbp - 0x28], SafeArrayAccessData
mov dword [rbp - 0x50], ebx
lea r8, [rbp - 0x78]
lea edx, [rbx - 0x68]
lea rcx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_WSALookupServiceBeginW]
lea r15d, [rbx - 0x77]
test eax, eax
jne 0x14008204a
mov qword [rsp + 0x48], r12
mov rdi, r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], r12d
mov dword [rsp + 0x30], ebx
or r13d, 0xffffffff
mov rax, qword [0x140108fd0]
lea rcx, [0x140108fd0]
mov rax, qword [rax + 0x18]
call qword [case.0x14006e230.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
movsxd r14, dword [rsp + 0x30]
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r14d
or eax, ecx
jge 0x140081e69
mov edx, r14d
lea rcx, [rsp + 0x68]
call fcn.140004ef4
mov rbx, qword [rsp + 0x68]
test r14d, r14d
js 0x14008203f
cmp r14d, dword [rbx - 0xc]
jg 0x14008203f
mov dword [rbx - 0x10], r14d
mov word [rbx + r14*2], r12w
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rbx
call sub.msvcrt.dll_memset
mov eax, dword [rsp + 0x30]
mov dword [rbx], eax
mov dword [rbx + 0x28], SafeArrayAccessData
mov r9, rbx
lea r8, [rsp + 0x30]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.WS2_32.dll_WSALookupServiceNextW]
test eax, eax
je 0x140081eda
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x277e
je 0x140081f98
cmp eax, 0x271e
jne 0x140081f5d
jmp 0x140081f30
mov r15, qword [rbx + 8]
mov r14, rdi
mov qword [rbp - 0x68], rdi
cmp rdi, qword [rsp + 0x58]
jb 0x140081f07
lea rdx, [rdi + 1]
lea rcx, [rsp + 0x48]
call fcn.140019c04
test al, al
je 0x140082034
mov rdi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
lea rcx, [rax + r14*8]
mov qword [rbp - 0x60], rcx
test rcx, rcx
je 0x140081f22
mov rdx, r15
call fcn.140004b74
nop
mov r15d, 1
add rdi, r15
mov qword [rsp + 0x50], rdi
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140081f53
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
mov rdi, qword [rsp + 0x50]
jmp 0x140081e21
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140081f8e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
test edi, edi
js 0x140082028
jmp 0x140081fbe
mov edi, r12d
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140081fbe
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
mov rbx, r12
mov r14, qword [rsp + 0x50]
test r14, r14
je 0x140082028
mov r15, qword [rsp + 0x48]
cmp dword [rsi + 8], 0xc8
jae 0x140082022
cmp rbx, r14
jae 0x140082017
mov rcx, qword [r15 + rbx*8]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edx, dword [rsi + 8]
mov rcx, qword [rsi + 0x10]
mov qword [rcx + rdx*8], rax
mov ecx, dword [rsi + 8]
mov rax, qword [rsi + 0x10]
cmp qword [rax + rcx*8], r12
je 0x140082010
lea eax, [rcx + 1]
mov dword [rsi + 8], eax
inc rbx
cmp rbx, r14
jb 0x140081fd0
jmp 0x140082022
mov edi, 0x8007000e
jmp 0x140082022
mov ecx, 0x80070057
call fcn.14000507c
int3
mov r15d, 1
lea rcx, [rsp + 0x48]
call fcn.140063678
jmp 0x140082058
mov ecx, 0x8007000e
call fcn.14000507c
int3
mov ecx, 0x80070057
call fcn.14000507c
nop
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x1400822a8
mov qword [rsp + 0x70], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400820f0
mov r14, qword [rsp + 0x70]
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
xor r8d, r8d
lea rdx, str.DONOTAuthenticateRMEClient
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, r12b
cmp dword [rsp + 0x34], r15d
cmove ebx, r15d
test r14, r14
je 0x1400820e8
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x14008229d
cmp dword [rsi + 8], 0xc8
jae 0x14008229d
mov qword [rsp + 0x78], r12
mov rbx, r12
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x38]
test rax, rax
jne 0x14008211e
mov edi, 0x80070057
jmp 0x140082283
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.1400bd7b0
mov edi, eax
mov rbx, qword [rsp + 0x38]
test eax, eax
js 0x140082283
mov r13, rbx
test rbx, rbx
je 0x140082283
mov r14, qword [r13 + 0x18]
test r14, r14
je 0x140082270
cmp dword [rsi + 8], 0xc8
jae 0x140082270
test byte [r14 + 4], r15b
je 0x140082262
cmp qword [r14 + 0x10], r12
je 0x140082262
movsxd r15, dword [r14 + 0x18]
cmp r15, 0x80
ja 0x14008225c
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp + 0x30]
call sub.msvcrt.dll_memset
mov r8, r15
mov rdx, qword [r14 + 0x10]
lea rcx, [rbp + 0x30]
call sub.msvcrt.dll_memcpy
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0x30]
call fcn.1400bdad4
mov edi, eax
test eax, eax
js 0x140082205
mov r15d, r12d
cmp dword [rsi + 8], r12d
jbe 0x1400821f6
mov ebx, 1
mov eax, r15d
mov rcx, qword [rsi + 0x10]
lea rdx, [rbp + 0x1c0]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x1400821f1
add r15d, ebx
cmp r15d, dword [rsi + 8]
jb 0x1400821cc
mov rbx, qword [rsp + 0x38]
cmp r15d, dword [rsi + 8]
jne 0x14008225c
lea rcx, [rbp + 0x1c0]
jmp 0x140082238
lea rax, [rbp + 0x30]
test rax, rax
jne 0x140082215
mov edi, 0x80070057
jmp 0x14008225c
mov r8d, 0x81
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x30]
call fcn.1400bd8b4
mov edi, eax
test eax, eax
js 0x14008225c
lea rcx, [rbp + 0xb0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edx, dword [rsi + 8]
mov rcx, qword [rsi + 0x10]
mov qword [rcx + rdx*8], rax
mov ecx, dword [rsi + 8]
mov rax, qword [rsi + 0x10]
cmp qword [rax + rcx*8], r12
je 0x14008226b
lea eax, [rcx + 1]
mov dword [rsi + 8], eax
mov r15d, 1
mov r14, qword [r14 + 8]
jmp 0x14008214c
mov edi, 0x8007000e
mov r13, qword [r13 + 8]
test r13, r13
mov r15d, 1
jne 0x140082148
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14008229d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jns 0x1400822b1
jmp 0x1400822a8
mov edi, 0x8007000e
mov rcx, rsi
call qword [sym.imp.ole32.dll_PropVariantClear]
mov eax, edi
mov rcx, qword [rbp + 0x9d0]
xor rcx, rsp
call fcn.1400cc650
lea r11, [rsp + 0xae0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret