Function at 0x4046d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4719d5
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.004240f0
mov edi, eax
test edi, edi
je 0x4047d1
cmp dword [0x49ad2c], 2
jg 0x4047c9
sub esp, 8
mov dword [ebp - 0x100], 2
lea ecx, [ebp - 0xf8]
call fcn.00422bb0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5c], str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
mov dword [ebp - 0x58], 0x2d6
call esi
push 0x2d6
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x54], eax
call fcn.00425610
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.00407130
mov ecx, eax
call fcn.00405290
mov edx, 0x484a0c
mov ecx, eax
call fcn.00407130
mov ecx, eax
call fcn.004050f0
test bl, 1
jmp 0x40487f
push 0x20019
push ecx
lea ecx, [ebp - 0x290]
call fcn.004241d0
mov edi, eax
test edi, edi
je 0x4048f0
cmp dword [0x49ad2c], 2
jg 0x40487c
sub esp, 8
mov dword [ebp - 0x100], 2
lea ecx, [ebp - 0xf8]
call fcn.00422bb0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5c], str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
mov dword [ebp - 0x58], 0x2dd
call esi
push 0x2dd
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x54], eax
call fcn.00425610
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.00407130
mov ecx, eax
call fcn.00405290
mov edx, 0x484a0c
mov ecx, eax
call fcn.00407130
mov ecx, eax
call fcn.004050f0
test bl, 2
mov dword [ebp - 4], 0
je 0x404893
lea ecx, [ebp - 0x100]
call fcn.00425110
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28c]
test eax, eax
je 0x4048b7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28c], 0
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x4048d2
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.0044f786
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.00452050
push 0x1000001
lea eax, [ebp - 0x50]
push 0x484978
push eax
call fcn.004073e0
xor eax, eax
add esp, 0x18
mov dword [ebp - 0x294], eax
test ebx, ebx
je 0x404893
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 0x404a0e
lea eax, [ebp - 0x250]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4049e0
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 0x404a45
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 0x404aca
test esi, esi
je 0x404abb
sub edx, ecx
mov ax, word [ecx + edx]
cmp ax, word [ecx]
jne 0x404ac4
add ecx, 2
sub esi, 1
jne 0x404aa4
mov eax, dword [ebp - 0x284]
mov byte [ebp - 0x285], 0
jmp 0x404ad1
mov eax, dword [ebp - 0x284]
mov byte [ebp - 0x285], 1
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x26c]
cmp ecx, 8
jb 0x404b1b
lea ecx, [ecx*2 + 2]
mov edx, eax
cmp ecx, 0x1000
jb 0x404b11
mov eax, dword [eax - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x284], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x404c16
mov eax, dword [ebp - 0x284]
push ecx
push eax
call fcn.0044f7c7
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 0x404bba
mov byte [ebp - 4], 0xe
cmp ebx, 8
jb 0x404b7c
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x404b72
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404c16
push ecx
push edi
call fcn.0044f7c7
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 0x404970
jmp 0x404893
mov byte [ebp - 4], 0xa
cmp ebx, 8
jb 0x404bee
lea ebx, [ebx*2 + 2]
mov eax, edi
cmp ebx, 0x1000
jb 0x404be4
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404c16
push ebx
push edi
call fcn.0044f7c7
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 0x404895
call fcn.00454bbf
int3