Function at 0x4226e0
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x488968
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bdbb0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
call fcn.00449852
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x422723
push 0x80004005
call fcn.004108b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push str._r_nCFileDecode::QueryRegValue_Begin_r_n
push ecx
mov dword [esp + 0x2c], ebx
call fcn.004135e0
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 8
push edx
call esi
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push ebp
push ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00411f40
mov edx, dword [eax]
push edx
push edi
lea eax, [esp + 0x1c]
push str._r_nCFileDecode::QueryRegValue_dwRet:_d_lpszSubKey:_s_r_n
push eax
mov byte [esp + 0x34], 1
call fcn.004135e0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4227c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x14]
push ebp
call esi
cmp edi, ebx
je 0x4227f6
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4227ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4228bd
lea ecx, [esp + 0x14]
push str._r_nCFileDecode::QueryRegValue_between_r_n
push ecx
call fcn.004135e0
mov edx, dword [esp + 0x1c]
add esp, 8
push edx
call esi
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x40]
push edx
push ebx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebp
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00411f40
mov ecx, dword [eax]
push ecx
push edi
lea edx, [esp + 0x1c]
push str._r_nCFileDecode::QueryRegValue_dwRet:_d_lpszVlaue:_s_r_n
push edx
mov byte [esp + 0x34], 2
call fcn.004135e0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42287a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x14]
push ebp
call esi
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
cmp edi, ebx
sete dl
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
mov esi, edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4228bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x18