Function at 0x4050b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4724f5
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x498068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x28c], ebx
push 0x20019
push str.SYSTEMCurrentControlSetServicesQPCore
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x290]
mov dword [ebp - 4], ebx
call fcn.00424ae0
mov edi, eax
test edi, edi
je 0x4051b1
cmp dword [0x49ad28], 2
jg 0x4051a9
sub esp, 8
mov dword [ebp - 0x100], 2
lea ecx, [ebp - 0xf8]
call fcn.004235a0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5c], str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
mov dword [ebp - 0x58], 0x2d5
call esi
push 0x2d5
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x54], eax
call fcn.00426000
mov byte [ebp - 4], 1
mov ebx, 1
mov dword [ebp - 0x284], ebx
call esi
push eax
push edi
mov edx, str.reg_key_could_not_be_opened:
lea ecx, [ebp - 0xf8]
call fcn.00407b40
mov ecx, eax
call fcn.00405c70
mov edx, 0x484ab4
mov ecx, eax
call fcn.00407b40
mov ecx, eax
call fcn.00405ad0
test bl, 1
jmp 0x40525f
push 0x20019
push ecx
lea ecx, [ebp - 0x290]
call fcn.00424bc0
mov edi, eax
test edi, edi
je 0x4052d0
cmp dword [0x49ad28], 2
jg 0x40525c
sub esp, 8
mov dword [ebp - 0x100], 2
lea ecx, [ebp - 0xf8]
call fcn.004235a0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5c], str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
mov dword [ebp - 0x58], 0x2dc
call esi
push 0x2dc
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x54], eax
call fcn.00426000
mov byte [ebp - 4], 2
mov ebx, 2
mov dword [ebp - 0x284], ebx
call esi
push eax
push edi
mov edx, str.reg_subkey_could_not_be_opened:
lea ecx, [ebp - 0xf8]
call fcn.00407b40
mov ecx, eax
call fcn.00405c70
mov edx, 0x484ab4
mov ecx, eax
call fcn.00407b40
mov ecx, eax
call fcn.00405ad0
test bl, 2
mov dword [ebp - 4], 0
je 0x405273
lea ecx, [ebp - 0x100]
call fcn.00425b00
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28c]
test eax, eax
je 0x405297
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28c], 0
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x4052b2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x290], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450164
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor ebx, ebx
test eax, eax
push 0x40
cmove ebx, dword [ebp - 0x284]
lea eax, [ebp - 0x50]
push 0
push eax
mov dword [ebp - 0x298], ebx
call fcn.00452a30
push 0x1000001
lea eax, [ebp - 0x50]
push 0x484a20
push eax
call fcn.00407df0
xor eax, eax
add esp, 0x18
mov dword [ebp - 0x294], eax
test ebx, ebx
je 0x405273
nop word [eax + eax]
mov byte [ebp - 4], 3
xor esi, esi
mov dword [ebp - 0x258], 0
mov ebx, 7
mov dword [ebp - 0x258], esi
xor ecx, ecx
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x254], ebx
mov word [ebp - 0x268], cx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x284], 0x100
push ecx
push eax
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4053ee
lea eax, [ebp - 0x250]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4053c0
sub eax, edx
lea ecx, [ebp - 0x268]
sar eax, 1
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.00401a50
mov ebx, dword [ebp - 0x254]
mov esi, dword [ebp - 0x258]
xor eax, eax
mov dword [ebp - 0x270], 0
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x270], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405425
sub ecx, edx
lea eax, [ebp - 0x50]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x280]
call fcn.00401a50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x280]
cmp dword [ebp - 0x26c], 8
lea edx, [ebp - 0x268]
mov eax, dword [ebp - 0x280]
mov edi, dword [ebp - 0x268]
cmovae ecx, eax
cmp ebx, 8
mov dword [ebp - 0x284], eax
cmovae edx, edi
cmp esi, dword [ebp - 0x270]
jne 0x4054aa
test esi, esi
je 0x40549b
sub edx, ecx
mov ax, word [ecx + edx]
cmp ax, word [ecx]
jne 0x4054a4
add ecx, 2
sub esi, 1
jne 0x405484
mov eax, dword [ebp - 0x284]
mov byte [ebp - 0x285], 0
jmp 0x4054b1
mov eax, dword [ebp - 0x284]
mov byte [ebp - 0x285], 1
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x26c]
cmp ecx, 8
jb 0x4054fb
lea ecx, [ecx*2 + 2]
mov edx, eax
cmp ecx, 0x1000
jb 0x4054f1
mov eax, dword [eax - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x284], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x4055f6
mov eax, dword [ebp - 0x284]
push ecx
push eax
call fcn.004501a5
add esp, 8
xor eax, eax
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
mov byte [ebp - 4], 4
cmp byte [ebp - 0x285], al
jne 0x40559a
mov byte [ebp - 4], 0xe
cmp ebx, 8
jb 0x40555c
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x405552
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4055f6
push ecx
push edi
call fcn.004501a5
add esp, 8
xor eax, eax
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x294]
inc eax
mov dword [ebp - 0x294], eax
cmp eax, dword [ebp - 0x298]
jb 0x405350
jmp 0x405273
mov byte [ebp - 4], 0xa
cmp ebx, 8
jb 0x4055ce
lea ebx, [ebx*2 + 2]
mov eax, edi
cmp ebx, 0x1000
jb 0x4055c4
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4055f6
push ebx
push edi
call fcn.004501a5
add esp, 8
xor eax, eax
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
mov byte [ebp - 4], al
lea esi, [eax + 1]
jmp 0x405275
call fcn.0045559f
int3