Function at 0x41b982
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454aaa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
mov dword [ebp - 0x10], ecx
push str.GREG::GetValue
lea ecx, [ebp - 0x60]
call fcn.004117cd
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xc
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
mov ecx, dword [ebp - 0x10]
call fcn.0041ce83
movzx eax, al
test eax, eax
je 0x41baac
lea ecx, [ebp - 0xac]
call fcn.004173d5
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
call fcn.0041ca11
mov al, byte [eax]
mov byte [ebp - 0x13], al
mov ecx, dword [ebp - 0x10]
call fcn.0041ca11
mov cl, byte [ebp + 0x10]
mov byte [eax], cl
mov eax, dword [ebp - 0x10]
add eax, 0xc
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
lea eax, [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041cb79
movzx eax, al
test eax, eax
je 0x41ba78
lea ecx, [ebp - 0xac]
call fcn.004178b4
movzx eax, al
test eax, eax
jne 0x41ba78
lea eax, [ebp - 0xac]
push eax
mov ecx, dword [ebp + 8]
call fcn.004175c0
mov ecx, dword [ebp - 0x10]
call fcn.0041ca11
mov cl, byte [ebp - 0x13]
mov byte [eax], cl
mov byte [ebp - 0x1b], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.0041751b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00411939
mov al, byte [ebp - 0x1b]
jmp 0x41bf45
mov ecx, dword [ebp - 0x10]
call fcn.0041ca11
mov cl, byte [ebp - 0x13]
mov byte [eax], cl
mov byte [ebp - 0x15], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.0041751b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00411939
mov al, byte [ebp - 0x15]
jmp 0x41bf45
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x15], 0
je 0x41bc99
push 0
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
lea eax, [ebp - 0x3c]
push eax
call fcn.0041e7c7
add esp, 0xc
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x3c]
call fcn.00406a95
movsx eax, byte [eax]
test eax, eax
jne 0x41bb06
mov byte [ebp - 0x16], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00411939
mov al, byte [ebp - 0x16]
jmp 0x41bf45
lea ecx, [ebp - 0x4c]
call fcn.0040661b
mov byte [ebp - 4], 3
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x11]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
add eax, 0xc
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x15]
call fcn.00423aa1
movzx eax, al
test eax, eax
jne 0x41bb6e
mov byte [ebp - 0x21], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00411939
mov al, byte [ebp - 0x21]
jmp 0x41bf45
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x41bb92
push str.__bKeyNotFound
push str.GREG
push 0xb7e
push str.D:projectsutil_srcgreg.cpp
call fcn.00405131
add esp, 0x10
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x41bbca
mov byte [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00411939
mov al, byte [ebp - 0x18]
jmp 0x41bf45
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x41bbee
push str.__bValNotFound
push str.GREG
push 0xb80
push str.D:projectsutil_srcgreg.cpp
call fcn.00405131
add esp, 0x10
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x41bc26
mov byte [ebp - 0x20], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00411939
mov al, byte [ebp - 0x20]
jmp 0x41bf45
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041bf55
movzx eax, al
test eax, eax
jne 0x41bc69
mov byte [ebp - 0x1a], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00411939
mov al, byte [ebp - 0x1a]
jmp 0x41bf45
mov byte [ebp - 0x1e], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00411939
mov al, byte [ebp - 0x1e]
jmp 0x41bf45
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
jne 0x41bcb9
push 0xb87
push str.D:projectsutil_srcgreg.cpp
push str.m_hkey
call fcn.00404768
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
jne 0x41bcda
mov byte [ebp - 0x1c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00411939
mov al, byte [ebp - 0x1c]
jmp 0x41bf45
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0x80000004
jne 0x41be0c
mov dword [ebp - 0x28], 0x10000
push dword [ebp - 0x28]
lea ecx, [ebp - 0x78]
call fcn.004172ba
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x70]
lea eax, [ebp - 0x64]
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00406b07
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x41bd9a
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
mov ecx, dword [ebp + 8]
call fcn.0041de72
push dword [ebp - 0x28]
push dword [ebp - 0x70]
mov ecx, dword [ebp + 8]
call fcn.0041dd14
push dword [ebp - 0x64]
mov ecx, dword [ebp + 8]
call fcn.0041de88
mov eax, dword [ebp - 0x10]
add eax, 0xc
push eax
mov ecx, dword [ebp + 8]
call fcn.0041de06
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0041dd9a
push 0
mov ecx, dword [ebp + 8]
call fcn.0041dd85
mov byte [ebp - 0x17], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.0041747a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00411939
mov al, byte [ebp - 0x17]
jmp 0x41bf45
cmp dword [ebp - 0x2c], 0xea
je 0x41bdef
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x41bdcb
cmp dword [ebp - 0x2c], 0
jge 0x41bdcb
push 0xb9d
push str.D:projectsutil_srcgreg.cpp
push str.RegQueryValueEx
push dword [ebp - 0x2c]
call fcn.00404980
add esp, 0x10
mov byte [ebp - 0x19], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.0041747a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00411939
mov al, byte [ebp - 0x19]
jmp 0x41bf45
mov eax, dword [ebp - 0x28]
shl eax, 1
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.0041747a
xor eax, eax
inc eax
jne 0x41bcf1
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00406b07
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41bf32
push dword [ebp - 0x30]
lea ecx, [ebp - 0x88]
call fcn.004172ba
mov byte [ebp - 4], 5
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x68]
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00406b07
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x40], eax
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x41be96
cmp dword [ebp - 0x40], 0
jge 0x41be96
push 0xbaa
push str.D:projectsutil_srcgreg.cpp
push str.RegQueryValueEx
push dword [ebp - 0x40]
call fcn.00404980
add esp, 0x10
cmp dword [ebp - 0x40], 0
je 0x41bec3
mov byte [ebp - 0x14], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.0041747a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00411939
mov al, byte [ebp - 0x14]
jmp 0x41bf45
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
mov ecx, dword [ebp + 8]
call fcn.0041de72
push dword [ebp - 0x30]
push dword [ebp - 0x80]
mov ecx, dword [ebp + 8]
call fcn.0041dd14
push dword [ebp - 0x68]
mov ecx, dword [ebp + 8]
call fcn.0041de88
mov eax, dword [ebp - 0x10]
add eax, 0xc
push eax
mov ecx, dword [ebp + 8]
call fcn.0041de06
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0041dd9a
push 0
mov ecx, dword [ebp + 8]
call fcn.0041dd85
mov byte [ebp - 0x1d], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.0041747a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00411939
mov al, byte [ebp - 0x1d]
jmp 0x41bf45
mov byte [ebp - 0x1f], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00411939
mov al, byte [ebp - 0x1f]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc