Function at 0x4cce40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a978a
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x7adbc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 0x2001f
push str.SOFTWAREAtom_SecurityRemoteInstaller
push reloc.WSOCK32.dll_accept
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004910b0
mov esi, dword [ebp - 0x28]
mov edi, eax
test edi, edi
je 0x4ccfc5
call fcn.00516890
mov esi, eax
mov ecx, esi
call fcn.00516630
cmp byte [0x7b894e], 0
jne 0x4ccf0c
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4ccf05
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b894e
sub esp, 0xc
push 0x84
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUILicenseDlg.cpp
push 0x48
call fcn.00516700
jmp 0x4ccf07
xor eax, eax
mov dword [0x7bafec], eax
mov ecx, esi
call fcn.00516640
mov ecx, dword [0x7bafec]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bafec]
mov eax, dword [eax]
mov ebx, dword [eax + 0x48]
mov edx, edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004955a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
push dword [eax]
call fcn.00498630
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
add edx, 0xfffffff0
mov dword [ebp - 0x10], 1
or esi, 0xffffffff
mov byte [ebp - 4], 4
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4ccf78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
push dword [eax]
push edi
push str.Cant_open_registry_section:__u__s
push dword [0x7bafec]
call ebx
mov edx, dword [ebp - 0x1c]
add esp, 0x10
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4ccfab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, dword [0x7bafec]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bafec]
jmp 0x4cd105
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 8
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push 0
push str.License
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4ccff6
cmp dword [ebp - 0x18], 0xb
je 0x4cd117
lea edi, [eax + 0xd]
call fcn.00516890
mov esi, eax
mov ecx, esi
call fcn.00516630
cmp byte [0x7b8954], 0
jne 0x4cd051
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x4cd04a
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b8954
sub esp, 0xc
push 0x8d
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUILicenseDlg.cpp
push 0x50
call fcn.00516700
jmp 0x4cd04c
xor eax, eax
mov dword [0x7bafe0], eax
mov ecx, esi
call fcn.00516640
mov ecx, dword [0x7bafe0]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bafe0]
mov eax, dword [eax]
mov ebx, dword [eax + 0x48]
mov edx, edi
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
call fcn.004955a0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x14]
push dword [eax]
call fcn.00498630
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
add edx, 0xfffffff0
mov dword [ebp - 0x10], 2
or esi, 0xffffffff
mov byte [ebp - 4], 9
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4cd0bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 7
push dword [eax]
push edi
push str.License_query_failed:__u__s
push dword [0x7bafe0]
call ebx
mov edx, dword [ebp - 0x14]
add esp, 0x10
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4cd0f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, dword [0x7bafe0]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bafe0]
lea ecx, [ecx + 0xd0]
call fcn.00516640
mov esi, dword [ebp - 0x28]
xor bl, bl
jmp 0x4cd119
mov bl, 1
test esi, esi
je 0x4cd124
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret