Function at 0x40ce00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x637958
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x6eed24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0
jne 0x40ce45
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], VariantInit
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebx]
mov dword [ebp - 4], 0
test eax, eax
jne 0x40ce73
mov eax, 0x649aa0
push 5
push eax
lea ecx, [ebp - 0x24]
call fcn.00403940
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40ce8a
mov eax, 0x649aa0
mov ecx, str.HKEY_
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ceb6
test dx, dx
je 0x40ceb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ceb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40ce90
xor eax, eax
jmp 0x40cebb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40d047
cmp dword [ebx + 4], eax
ja 0x40cecd
or edi, 0xffffffff
jmp 0x40cee8
push 0x5c
push dword [ebx]
call fcn.004b47e1
mov edi, eax
add esp, 8
test edi, edi
jne 0x40cee4
or edi, 0xffffffff
jmp 0x40cee8
sub edi, dword [ebx]
sar edi, 1
mov eax, dword [ebx]
test eax, eax
jne 0x40cef3
mov eax, 0x649aa0
push edi
push eax
lea ecx, [ebp - 0x24]
call fcn.00403940
mov eax, dword [ebp - 0x24]
mov ecx, 0x649aa0
test eax, eax
je 0x40cf0b
mov ecx, eax
mov edx, str.HKEY_CLASSES_ROOT
mov si, word [ecx]
cmp si, word [edx]
jne 0x40cf36
test si, si
je 0x40cf32
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x40cf36
add ecx, 4
add edx, 4
test si, si
jne 0x40cf10
xor ecx, ecx
jmp 0x40cf3b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x40cf4b
mov dword [ebp + 8], SysReAllocString
jmp 0x40d032
mov ecx, 0x649aa0
test eax, eax
je 0x40cf56
mov ecx, eax
mov edx, str.HKEY_LOCAL_MACHINE
jmp 0x40cf60
mov si, word [ecx]
cmp si, word [edx]
jne 0x40cf86
test si, si
je 0x40cf82
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x40cf86
add ecx, 4
add edx, 4
test si, si
jne 0x40cf60
xor ecx, ecx
jmp 0x40cf8b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x40cf9b
mov dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
jmp 0x40d032
test eax, eax
jne 0x40cfa4
mov eax, 0x649aa0
mov ecx, str.HKEY_USERS
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40cfd6
test dx, dx
je 0x40cfd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40cfd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40cfb0
xor eax, eax
jmp 0x40cfdb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40cfe8
mov dword [ebp + 8], VariantCopy
jmp 0x40d032
push str.HKEY_CURRENT_CONFIG
lea ecx, [ebp - 0x24]
call fcn.0040d2b0
test al, al
je 0x40d002
mov dword [ebp + 8], VariantCopy
jmp 0x40d032
push str.HKEY_CURRENT_USER
lea ecx, [ebp - 0x24]
call fcn.0040d2b0
test al, al
je 0x40d01c
mov dword [ebp + 8], VariantInit
jmp 0x40d032
push str._Warning__Workspace::GetValueFromWinRegistry_____invalid_HKEY__prefix_in_sPath__HKEY_CURRENT_USER_is_used_as_default_n
push 1
push 0x74
push str.e:workprgpdf5_builds_rc.328_trackerupdatekeyvalueregistry.cpp
call fcn.00431810
add esp, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x40d03d
mov eax, 0x649aa0
lea eax, [eax + edi*2]
push 0xffffffffffffffff
add eax, 2
jmp 0x40d055
mov eax, dword [ebx]
test eax, eax
jne 0x40d052
mov eax, 0x649aa0
push dword [ebx + 4]
push eax
lea ecx, [ebp - 0x24]
call fcn.00403940
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov byte [ebp - 4], 2
test ebx, ebx
je 0x40d0f1
lea esi, [ebx - 1]
lea esi, [edi + esi*2]
cmp esi, edi
jb 0x40d0b1
mov eax, 0x5c
cmp ax, word [esi]
je 0x40d0b1
sub esi, 2
cmp esi, edi
jae 0x40d0a5
sub esi, edi
sar esi, 1
test esi, esi
jle 0x40d0f1
lea eax, [ebx - 1]
cmp esi, eax
jge 0x40d0f1
mov ecx, 0x649aa0
test edi, edi
je 0x40d0cb
mov ecx, edi
lea eax, [esi + 1]
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00403940
sub ebx, esi
mov eax, 0x649aa0
dec ebx
test edi, edi
je 0x40d0e6
mov eax, edi
lea eax, [eax + esi*2]
add eax, 2
lea ecx, [ebp - 0x48]
jmp 0x40d0ff
mov eax, 0x649aa0
test edi, edi
je 0x40d0fc
mov eax, edi
lea ecx, [ebp - 0x3c]
push ebx
push eax
call fcn.00403940
mov esi, dword [ebp - 0x3c]
mov ecx, 0x649aa0
test esi, esi
je 0x40d114
mov ecx, esi
movzx eax, byte [ebp + 0x10]
lea edx, [ebp - 0x10]
push edx
shl eax, 8
or eax, 0x20019
mov dword [ebp - 0x10], 0
push eax
push 0
push ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x44], 0
jne 0x40d151
mov ebx, 0x649c60
jmp 0x40d15f
mov ecx, dword [ebp - 0x48]
mov ebx, 0x649aa0
test ecx, ecx
je 0x40d15f
mov ebx, ecx
test eax, eax
jne 0x40d16a
xor bl, bl
jmp 0x40d259
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], 1
push ecx
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], 0
push ecx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40d197
xor bl, bl
jmp 0x40d248
mov ecx, dword [ebp + 8]
cmp ecx, 2
jbe 0x40d246
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
shr ecx, 1
xor eax, eax
mov byte [ebp - 4], 4
lea esi, [ecx - 1]
test esi, esi
je 0x40d1e9
lea eax, [ecx + 0x1f]
and eax, 0xffffffe0
mov dword [ebp - 0x18], eax
add eax, eax
push eax
push edx
call fcn.00446560
mov edx, eax
add esp, 8
xor eax, eax
test edx, edx
je 0x40d1f6
mov word [edx], ax
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], eax
mov eax, edx
mov dword [ebp - 0x2c], esi
test eax, eax
je 0x40d1fe
xor ecx, ecx
mov word [edx + esi*2], cx
test eax, eax
je 0x40d1fe
mov esi, eax
jmp 0x40d205
mov eax, 0x649aa0
xor esi, esi
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40d22a
lea ecx, [ebp - 0x30]
call fcn.00403130
xor bl, bl
jmp 0x40d248
test esi, esi
jne 0x40d233
mov esi, 0x649aa0
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push esi
call fcn.00403940
lea ecx, [ebp - 0x30]
call fcn.00403130
mov bl, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40d256
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 5
test eax, eax
je 0x40d274
push eax
call fcn.00446420
add esp, 4
mov byte [ebp - 4], 6
test esi, esi
je 0x40d285
push esi
call fcn.00446420
add esp, 4
mov dword [ebp - 4], 7
test edi, edi
je 0x40d299
push edi
call fcn.00446420
add esp, 4
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