Function at 0x180058410
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov r11, rsp
push r14
sub rsp, 0x960
mov qword [r11 - 0x898], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov rax, qword [0x1800f30e0]
xor rax, rsp
mov qword [rsp + 0x950], rax
xor bl, bl
mov byte [rsp + 0x30], bl
xor esi, esi
mov qword [r11 - 0x890], rsi
lea r8, [r11 - 0x890]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallSkyGuardEndpoint
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x180058485
lea rcx, str.update_cloudapp_port:_open_subpath_failed
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x180058a5d
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x150]
call fcn.180078610
mov dword [rsp + 0xe4], esi
mov dword [rsp + 0xe0], 0x400
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xe4]
xor r8d, r8d
lea rdx, str.InstallDir
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1800584fc
lea rcx, str.update_cloudapp_port:_get_InstallDir_value_failed
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x180058a5d
mov qword [rsp + 0x100], 7
mov qword [rsp + 0xf8], rsi
mov word [rsp + 0xe8], si
cmp word [rsp + 0x150], si
jne 0x180058527
mov r8, rsi
jmp 0x18005853d
lea rax, [rsp + 0x150]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x180058533
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0xe8]
call fcn.180024920
nop
mov r8d, 0x30
lea rdx, str.EndpointAgentetcEndpointClientAgentConfig.xml
lea rcx, [rsp + 0xe8]
call fcn.1800241a0
nop
mov qword [rsp + 0x148], 7
mov qword [rsp + 0x140], rsi
mov word [rsp + 0x130], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x130]
call fcn.1800247e0
nop
xor eax, eax
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x120], 7
mov qword [rsp + 0x118], rsi
mov word [rsp + 0x108], si
lea ecx, [rax + 0x20]
call fcn.180059380
mov rbx, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x180058679
mov ecx, reloc.WS2_32.dll_WSASetLastError
call fcn.180059380
test rax, rax
jne 0x18005860e
call fcn.1800837e4
int3
mov qword [rbx + 8], rax
lea rax, [rbx + 0x11]
lea rdx, [rax - 9]
mov edi, 8
test rax, rax
cmove rdx, rdi
mov rax, qword [rdx]
and qword [rax + 0x48], 0xfffffffffffffffe
mov rax, qword [rdx]
and qword [rax + 0x48], 1
mov rcx, qword [rdx]
lea rax, [rcx + 0x48]
test rcx, rcx
cmove rax, rsi
mov qword [rcx + 0x50], rax
mov rcx, qword [rdx]
lea rax, [rcx + 0x48]
test rcx, rcx
cmove rax, rsi
mov qword [rcx + 0x58], rax
mov rax, qword [rdx]
lea rcx, [rax + 0x60]
test rax, rax
cmove rcx, rsi
mov qword [rax + 0x68], rcx
mov rax, qword [rdx]
mov qword [rax + 0x60], rcx
mov qword [rbx + 0x18], rsi
jmp 0x180058681
mov rbx, rsi
mov edi, 8
mov qword [rsp + 0x128], rbx
mov cl, 1
call fcn.18005b16c
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x130]
call fcn.180057a60
nop
lea r9, [rsp + 0x90]
xor r8d, r8d
lea rdx, [rsp + 0x108]
mov rcx, rax
call fcn.180038630
nop
mov rax, qword [rsp + 0x50]
cmp rax, 0x10
jb 0x18005871f
inc rax
mov rcx, qword [rsp + 0x38]
cmp rax, 0x1000
jb 0x18005871a
test cl, 0x1f
je 0x1800586ed
call fcn.1800837e4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1800586fc
call fcn.1800837e4
int3
sub rcx, rax
cmp rcx, 8
jae 0x18005870b
call fcn.1800837e4
int3
cmp rcx, 0x27
jbe 0x180058717
call fcn.1800837e4
int3
mov rcx, rax
call fcn.1800591c4
mov qword [rsp + 0x50], SafeArrayGetLBound
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x38], 0
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x180058759
mov rax, qword [rcx]
call qword [rax + select]
test rax, rax
je 0x180058759
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
mov r8d, reloc.OLEAUT32.dll_SafeArrayUnaccessData
lea rdx, str.root.cloudAppWebService
lea rcx, [rsp + 0x60]
call fcn.180024920
mov r14d, 0x2e
mov word [rsp + 0x80], r14w
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rax, qword [rsp + 0x60]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x38], si
lea ecx, [r14 - 0xe]
call fcn.180059380
mov rbx, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x180058851
lea ecx, [r14 + 0x42]
call fcn.180059380
test rax, rax
jne 0x1800587eb
call fcn.1800837e4
int3
mov qword [rbx + 8], rax
lea rax, [rbx + 0x11]
lea rdx, [rax - 9]
test rax, rax
cmove rdx, rdi
mov rax, qword [rdx]
and qword [rax + 0x48], 0xfffffffffffffffe
mov rax, qword [rdx]
and qword [rax + 0x48], 1
mov rcx, qword [rdx]
lea rax, [rcx + 0x48]
test rcx, rcx
cmove rax, rsi
mov qword [rcx + 0x50], rax
mov rcx, qword [rdx]
lea rax, [rcx + 0x48]
test rcx, rcx
cmove rax, rsi
mov qword [rcx + 0x58], rax
mov rax, qword [rdx]
lea rcx, [rax + 0x60]
test rax, rax
cmove rcx, rsi
mov qword [rax + 0x68], rcx
mov rax, qword [rdx]
mov qword [rax + 0x60], rcx
mov qword [rbx + 0x18], rsi
jmp 0x180058854
mov rbx, rsi
mov qword [rsp + 0x58], rbx
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x108]
call fcn.18004f240
mov rdi, rax
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x18005889c
lea rcx, [rbx + 0x11]
call fcn.18004aeb0
mov rcx, qword [rbx + 8]
call fcn.1800591c4
mov edx, 0x20
mov rcx, rbx
call fcn.180059820
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x1800588b9
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180025d70
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x38], si
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x1800588e9
inc r8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.180025d70
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
mov qword [rsp + 0xb8], 7
mov qword [rsp + 0xb0], rsi
mov word [rsp + 0xa0], si
mov r8d, 4
lea rdx, str.Port
lea rcx, [rsp + 0xa0]
call fcn.180024920
mov word [rsp + 0xc0], r14w
lea rax, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 8
cmovae rax, qword [rsp + 0xa0]
mov qword [rsp + 0xc8], rax
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call fcn.18004f010
mov rcx, rax
call fcn.180032cc0
mov ebx, eax
mov r8, qword [rsp + 0xb8]
cmp r8, 8
jb 0x18005899d
inc r8
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0xa0]
call fcn.180025d70
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.180057ef0
mov rdx, rax
lea rbx, [0x1800ffbb0]
mov rcx, rbx
call fcn.1800195f0
lea rcx, [rsp + 0x38]
call fcn.180002870
lea rcx, str.update_cloudapp_port:_parse_cloudAppWebService.Port_is
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp qword [0x1800ffbc8], 0x10
cmovae rbx, qword [0x1800ffbb0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
lea rcx, [rsp + 0x108]
call fcn.18003d570
nop
mov r8, qword [rsp + 0x148]
cmp r8, 8
jb 0x180058a21
inc r8
mov rdx, qword [rsp + 0x130]
lea rcx, [rsp + 0x130]
call fcn.180025d70
nop
mov bl, 1
mov r8, qword [rsp + 0x100]
cmp r8, 8
jb 0x180058a5d
inc r8
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0xe8]
call fcn.180025d70
jmp 0x180058a5d
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x180058a70
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x950]
xor rcx, rsp
call fcn.180059260
lea r11, [rsp + 0x960]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret