Function at 0x4290a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0xc8
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push 0x24
mov eax, 0x50681b
call fcn.004d9fb6
mov eax, dword [ebp + 0xd4]
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0xc6
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.004d92e0
add esp, 0xc
push 0x5309a4
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x2c], 0x64
mov dword [ebp - 0x28], ebx
call fcn.00404371
mov byte [ebp - 4], 1
cmp dword [ebp + 0xec], 8
mov eax, dword [ebp + 0xd8]
jae 0x429122
lea eax, [ebp + 0xd8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041ccc5
push 0x5309b8
lea eax, [ebp - 0x18]
push eax
call fcn.0041ccc5
cmp dword [ebp + 0xec], 8
mov eax, dword [ebp + 0xd8]
jae 0x42914f
lea eax, [ebp + 0xd8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041ccc5
push 0x5309bc
lea eax, [ebp - 0x18]
push eax
call fcn.0041ccc5
push 0x5309e0
lea eax, [ebp - 0x20]
push eax
call fcn.00404371
mov byte [ebp - 4], 2
cmp dword [ebp + 0xec], 8
mov eax, dword [ebp + 0xd8]
jae 0x42918e
lea eax, [ebp + 0xd8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041ccc5
push 0x5309f4
lea eax, [ebp - 0x20]
push eax
call fcn.0041ccc5
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x24], ebx
call fcn.00428eec
test al, al
je 0x4291bc
mov dword [ebp - 0x24], 0x200
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
mov edi, 0x20019
push edi
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push 0x80000001
call esi
test eax, eax
jne 0x42921e
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x530a00
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42920c
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0xd], bl
jne 0x4292be
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
or eax, edi
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
mov edi, 0x80000002
push edi
mov dword [ebp - 0x24], eax
call esi
test eax, eax
jne 0x42927a
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x530a18
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42926c
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0xd], bl
jne 0x4292be
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x24]
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x4292be
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x530a30
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp]
push eax
call fcn.00404526
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040442d
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040442d
push ebx
push 1
lea ecx, [ebp + 0xd8]
call fcn.0040482f
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.004d5ddb
add ebp, 0xcc
leave
ret