Function at 0x4227d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c568
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x458ac0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0xbc]
add edx, 4
push edx
push 0x20019
push 0
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4229d4
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x34], ecx
lea edx, [ebp - 0x18]
push edx
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004313f5
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x38], ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42296f
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x20]
call fcn.004210d0
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xbc]
add ecx, 0x10
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x68]
call fcn.00421c20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00421430
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004313ea
add esp, 4
mov edx, dword [ebp - 0xbc]
mov dword [edx + 0x18], 1
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 0x10]
sub eax, 0x10
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.00421ce0
add esp, 4
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
add edx, 0x10
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp - 0x2c]
or ecx, 1
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 8]
jmp 0x422a15
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.004313ea
add esp, 4
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 0x14]
sub ecx, 0x10
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x8c]
push edx
call fcn.00421ce0
add esp, 4
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
add eax, 0x10
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 0x2c]
or edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 8]
jmp 0x422a15
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 0x14]
sub ecx, 0x10
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0xa4]
push edx
call fcn.00421ce0
add esp, 4
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
add eax, 0x10
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 0x2c]
or edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4