Function at 0x4229d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
lea ecx, [ebp - 0x24]
mov edx, 0x538610
push 0x12
call fcn.004231c0
add esp, 4
cmp dword [ebp - 0x24], 0x80000000
jne 0x422a0b
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0
jmp 0x422a1b
mov eax, dword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
movsd qword [ebp - 0x34], xmm0
lea ebx, [ebp - 0x24]
mov edx, 0x538610
mov ecx, ebx
push 0x12
call fcn.004231c0
add esp, 4
mov edi, dword [ebp - 0x24]
cmp edi, 0x80000000
je 0x422a42
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
jmp 0x422a49
xor eax, eax
mov esi, 1
push eax
push esi
push ebx
call fcn.004e7e70
add esp, 0xc
cmp byte [ebp - 0x24], 0
sete al
cmp dword [ebp - 0x20], 0x55f0
setae bl
and bl, al
test edi, 0x7fffffff
jne 0x422a80
mov edi, 0xb
test bl, bl
lea esi, [ebp - 0x24]
je 0x422a9c
jmp 0x422bf4
push 1
push edi
push esi
call fcn.0040d1e0
add esp, 0xc
mov edi, 0xb
test bl, bl
lea esi, [ebp - 0x24]
jne 0x422bf4
lea eax, [0x5385ef]
mov dword [ebp - 0x20], 0x5385c3
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], 0
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00419040
add esp, 8
lea eax, [0x53863b]
mov dword [ebp - 0x20], 0x538622
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], 0
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.00419040
add esp, 8
mov edi, dword [ebp - 0x54]
call fcn.0043bec0
mov dword [ebp - 0x24], eax
push esi
push 0x20019
push 0
push edi
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x422b47
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x422b29
add eax, eax
push 2
push eax
push dword [ebp - 0x40]
call fcn.0040d1e0
add esp, 0xc
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x422bf2
add eax, eax
push 2
push eax
push edi
call fcn.0040d1e0
add esp, 0xc
jmp 0x422bf2
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x28]
push eax
push ecx
push esi
push 0
mov dword [ebp - 0x48], edx
push edx
mov esi, ebx
push ebx
call sub.advapi32.dll_RegQueryValueExW
mov ebx, eax
test eax, eax
mov dword [ebp - 0x4c], edi
je 0x422bb4
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
push eax
call fcn.004480f0
add esp, 4
test edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x24], 1
je 0x422bb2
lea eax, [ebp - 0x1c]
push eax
call fcn.00447ed0
add esp, 4
jmp 0x422bb7
mov edi, dword [ebp - 0x28]
push esi
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x422bd4
add eax, eax
push 2
push eax
push dword [ebp - 0x48]
call fcn.0040d1e0
add esp, 0xc
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x422beb
add eax, eax
push 2
push eax
push dword [ebp - 0x4c]
call fcn.0040d1e0
add esp, 0xc
test ebx, ebx
lea esi, [ebp - 0x24]
je 0x422bf4
xor edi, edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x24], 0x538640
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], fcn.004ec920
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x38], 0x421080
mov dword [ebp - 0x18], 2
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004d1b40
add esp, 8
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x422c55
push 1
push eax
push dword [ebp - 0x30]
call fcn.0040d1e0
add esp, 0xc
mov eax, esi
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret