Function at 0x14009b914
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 - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rbp + 0x9d0], rax
mov r14, rdx
call fcn.14008f654
xor r12d, r12d
test al, al
je 0x14009b96c
mov esi, 0x80004005
jmp 0x14009bea2
mov ecx, 0x640
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [r14 + 0x10], rax
test rax, rax
je 0x14009be9d
mov eax, 0x1008
mov word [r14], ax
mov dword [r14 + 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 - 0x80]
lea edx, [rbx - 0x68]
lea rcx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_WSALookupServiceBeginW]
lea r15d, [rbx - 0x77]
test eax, eax
jne 0x14009bc40
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 [section..data]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140015690]
lea rcx, section..data
call rbx
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
movsxd rsi, dword [rsp + 0x30]
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x14009ba35
mov edx, esi
lea rcx, [rsp + 0x68]
call fcn.140011854
mov rbx, qword [rsp + 0x68]
test esi, esi
js 0x14009bc32
cmp esi, dword [rbx - 0xc]
jg 0x14009bc32
mov dword [rbx - 0x10], esi
mov word [rbx + rsi*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 - 0x80]
call qword [sym.imp.WS2_32.dll_WSALookupServiceNextW]
test eax, eax
je 0x14009baa3
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x277e
je 0x14009bb78
cmp eax, 0x271e
jne 0x14009bb31
jmp 0x14009baf9
mov r15, qword [rbx + 8]
mov rsi, rdi
mov qword [rbp - 0x68], rdi
cmp rdi, qword [rsp + 0x58]
jb 0x14009bad0
lea rdx, [rdi + 1]
lea rcx, [rsp + 0x48]
call fcn.140027f10
test al, al
je 0x14009bc27
mov rdi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
lea rcx, [rax + rsi*8]
mov qword [rbp - 0x70], rcx
test rcx, rcx
je 0x14009baeb
mov rdx, r15
call fcn.140011450
nop
mov r15d, 1
add rdi, r15
mov qword [rsp + 0x50], rdi
lea rsi, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rsi + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14009bb27
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
mov rdx, rsi
mov rcx, rdi
call rbx
mov rdi, qword [rsp + 0x50]
jmp 0x14009b9ea
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea r15, [rbx - 0x18]
mov eax, r13d
lock xadd dword [r15 + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14009bb6e
mov rdi, qword [r15]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
mov rdx, r15
mov rcx, rdi
call rbx
test esi, esi
js 0x14009bc15
jmp 0x14009bbaa
mov esi, r12d
lea r15, [rbx - 0x18]
mov eax, r13d
lock xadd dword [r15 + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14009bbaa
mov rdi, qword [r15]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
mov rdx, r15
mov rcx, rdi
call rbx
mov rbx, r12
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14009bc15
mov r15, qword [rsp + 0x48]
cmp dword [r14 + 8], 0xc8
jae 0x14009bc15
cmp rbx, rdi
jae 0x14009bc07
mov rcx, qword [r15 + rbx*8]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edx, dword [r14 + 8]
mov rcx, qword [r14 + 0x10]
mov qword [rcx + rdx*8], rax
mov ecx, dword [r14 + 8]
mov rax, qword [r14 + 0x10]
cmp qword [rax + rcx*8], r12
je 0x14009bc00
lea eax, [rcx + 1]
mov dword [r14 + 8], eax
inc rbx
cmp rbx, rdi
jb 0x14009bbbc
jmp 0x14009bc15
mov esi, 0x8007000e
jmp 0x14009bc15
mov ecx, 0x80070057
call fcn.1400119f0
nop
jmp 0x14009bc14
nop
lea rcx, [rsp + 0x48]
call fcn.140075d70
mov r15d, 1
jmp 0x14009bc4e
mov ecx, 0x8007000e
call fcn.1400119f0
int3
mov ecx, 0x80070057
call fcn.1400119f0
nop
jmp 0x14009bc3f
nop
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x14009bea2
mov qword [rsp + 0x78], r12
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, [0x140008c60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14009bce6
mov rdi, qword [rsp + 0x78]
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x78]
xor r8d, r8d
lea rdx, [0x140008d18]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, r12b
cmp dword [rsp + 0x40], r15d
cmove ebx, r15d
test rdi, rdi
je 0x14009bcde
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x14009be97
cmp dword [r14 + 8], 0xc8
jae 0x14009be97
mov qword [rsp + 0x70], r12
mov rbx, r12
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x38]
test rax, rax
jne 0x14009bd15
mov esi, 0x80070057
jmp 0x14009be7e
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x70]
call fcn.1400e4c10
mov esi, eax
mov rbx, qword [rsp + 0x38]
test eax, eax
js 0x14009be7e
mov r13, rbx
test rbx, rbx
je 0x14009be7e
mov rdi, qword [r13 + 0x18]
test rdi, rdi
je 0x14009be6b
cmp dword [r14 + 8], 0xc8
jae 0x14009be6b
test byte [rdi + 4], r15b
je 0x14009be5d
cmp qword [rdi + 0x10], r12
je 0x14009be5d
movsxd r15, dword [rdi + 0x18]
cmp r15, 0x80
ja 0x14009be57
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp + 0x30]
call sub.msvcrt.dll_memset
mov r8, r15
mov rdx, qword [rdi + 0x10]
lea rcx, [rbp + 0x30]
call sub.msvcrt.dll_memcpy
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0x30]
call fcn.1400e4f80
mov esi, eax
test eax, eax
js 0x14009bdfd
mov r15d, r12d
cmp dword [r14 + 8], r12d
jbe 0x14009bdee
mov ebx, 1
mov eax, r15d
mov rcx, qword [r14 + 0x10]
lea rdx, [rbp + 0x1c0]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14009bde9
add r15d, ebx
cmp r15d, dword [r14 + 8]
jb 0x14009bdc4
mov rbx, qword [rsp + 0x38]
cmp r15d, dword [r14 + 8]
jne 0x14009be57
lea rcx, [rbp + 0x1c0]
jmp 0x14009be30
lea rax, [rbp + 0x30]
test rax, rax
jne 0x14009be0d
mov esi, 0x80070057
jmp 0x14009be57
mov r8d, 0x81
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x30]
call fcn.1400e4d48
mov esi, eax
test eax, eax
js 0x14009be57
lea rcx, [rbp + 0xb0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edx, dword [r14 + 8]
mov rcx, qword [r14 + 0x10]
mov qword [rcx + rdx*8], rax
mov ecx, dword [r14 + 8]
mov rax, qword [r14 + 0x10]
cmp qword [rax + rcx*8], r12
je 0x14009be66
lea eax, [rcx + 1]
mov dword [r14 + 8], eax
mov r15d, 1
mov rdi, qword [rdi + 8]
jmp 0x14009bd43
mov esi, 0x8007000e
mov r13, qword [r13 + 8]
test r13, r13
mov r15d, 1
jne 0x14009bd3f
mov rcx, rbx
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14009be97
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
jns 0x14009beab
jmp 0x14009bea2
mov esi, 0x8007000e
mov rcx, r14
call qword [sym.imp.ole32.dll_PropVariantClear]
mov eax, esi
mov rcx, qword [rbp + 0x9d0]
xor rcx, rsp
call fcn.140001000
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