Function at 0x140117240
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r13, rcx
mov rcx, qword [0x14024fa68]
lea rdi, [0x14024fa68]
cmp rcx, rdi
je 0x1401172a3
test byte [rcx + 0x1c], 4
je 0x1401172a3
cmp byte [rcx + 0x19], 4
jb 0x1401172a3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140202338]
mov edx, 0xa
call fcn.14008eb30
mov ecx, gethostbyaddr
call fcn.1401c51ec
xor esi, esi
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov edx, 0x1000600
mov rcx, rax
mov rbx, rax
mov qword [rax], 0xffffffffffffffff
mov dword [rax + 8], esi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rsi
mov dword [rax + 0x28], esi
call fcn.1401169a0
mov rdx, qword [r13 + 0x340]
lea r14, [r13 + 0x338]
cmp rdx, qword [r13 + 0x348]
je 0x140117305
mov qword [rdx], rbx
add qword [r14 + 8], 8
mov rax, qword [r14 + 8]
jmp 0x14011731e
lea r8, [rsp + 0x40]
mov rcx, r14
call fcn.1400c9310
mov rax, qword [r13 + 0x340]
mov rbx, qword [rsp + 0x40]
sub rax, qword [r14]
lea r8, [rsp + 0x50]
sar rax, 3
lea rdx, str.SoftwareESETESET_SecurityCurrentVersionPlugins
dec rax
mov byte [rsp + 0x20], 1
mov r9d, 0x20019
mov qword [rbx], rax
mov rcx, 0xffffffff80000002
call fcn.1401a5450
test al, al
jne 0x140117380
mov rcx, qword [0x14024fa68]
cmp rcx, rdi
je 0x14011750a
test byte [rcx + 0x1c], 4
je 0x14011750a
cmp byte [rcx + 0x19], 4
jb 0x14011750a
mov edx, reloc.WS2_32.dll_inet_addr
jmp 0x1401174fa
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x4c8], r12
mov r9d, 0x105
xor edx, edx
mov r12d, 1
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1401174c2
mov qword [rsp + 0x4d0], r15
nop word [rax + rax]
lea r8, [rsp + 0x5c]
lea rdx, str._08X
lea rcx, [rsp + 0x60]
call fcn.140035fe0
cmp eax, 1
jne 0x140117496
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x48]
mov r9d, 0xf003f
mov byte [rsp + 0x20], 0
lea rdx, [rsp + 0x60]
call fcn.1401a5450
test al, al
je 0x140117496
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x58]
lea rdx, str.Load
call fcn.1401a5610
mov edi, dword [rsp + 0x58]
movzx r15d, al
test al, al
je 0x140117440
test edi, edi
jne 0x140117440
mov rcx, qword [rsp + 0x48]
call qword [0x14024f048]
lea rdi, [0x14024fa68]
jmp 0x140117496
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rsp + 0x30], 0x208
lea rdx, str.Filename
call qword [0x14024f060]
test eax, eax
je 0x140117530
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdi, [0x14024fa68]
mov rcx, qword [rsp + 0x48]
call qword [0x14024f048]
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x60]
mov edx, r12d
mov r9d, 0x105
inc r12d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1401173c0
mov r15, qword [rsp + 0x4d0]
mov rcx, qword [rsp + 0x50]
call qword [0x14024f048]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x14024fa68]
mov r12, qword [rsp + 0x4c8]
cmp rcx, rdi
je 0x14011750a
test byte [rcx + 0x1c], 4
je 0x14011750a
cmp byte [rcx + 0x19], 4
jb 0x14011750a
mov edx, reloc.WS2_32.dll_listen
mov rcx, qword [rcx + 0x10]
lea r8, [0x140202338]
call fcn.14008eb30
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1401c5190
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x490
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
jbe 0x140117545
mov ecx, reloc.WS2_32.dll_listen
jmp 0x14011747e
cmp dword [rsp + 0x30], 0x208
jbe 0x140117559
mov ecx, 0x7a
jmp 0x14011747e
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rbp + 0x170]
mov rcx, rbx
lea rdx, str.Filename
mov qword [rsp + 0x20], rax
call qword [0x14024f060]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x140117484
lea ecx, [rbx + 0x30]
call fcn.1401c51ec
lea r8, [rbp + 0x170]
mov qword [rsp + 0x40], rax
mov rcx, rax
mov rbx, rax
mov qword [rax], 0xffffffffffffffff
mov dword [rax + 8], esi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], 0
mov dword [rax + 0x28], esi
mov edx, dword [rsp + 0x5c]
call fcn.1401169a0
xor ecx, ecx
mov esi, eax
cmp eax, 6
setne cl
test r15b, r15b
je 0x1401175ec
cmp edi, ecx
je 0x140117625
mov dword [rsp + 0x30], ecx
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
lea rdx, str.Load
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [case.0x1401ba071.80]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x14011763d
mov edx, gethostbyaddr
mov rcx, rbx
call fcn.140007ea0
xor esi, esi
jmp 0x140117484
mov rdx, qword [r13 + 0x340]
cmp rdx, qword [r13 + 0x348]
je 0x14011765b
mov qword [rdx], rbx
add qword [r14 + 8], 8
mov rax, qword [r14 + 8]
jmp 0x140117674
lea r8, [rsp + 0x40]
mov rcx, r14
call fcn.1400c9310
mov rax, qword [r13 + 0x340]
mov rbx, qword [rsp + 0x40]
sub rax, qword [r14]
sar rax, 3
dec rax
mov qword [rbx], rax
mov rcx, qword [0x14024fa68]
lea rdi, [0x14024fa68]
cmp rcx, rdi
je 0x1401176b9
test byte [rcx + 0x1c], 4
je 0x1401176b9
cmp byte [rcx + 0x19], 4
jb 0x1401176b9
mov r9d, dword [rbx + 8]
lea r8, [0x140202338]
mov rcx, qword [rcx + 0x10]
mov edx, reloc.WS2_32.dll_inet_ntoa
call fcn.14008eb50
xor esi, esi
jmp 0x14011748b