Function at 0x42a278
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x550
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x540]
mov ebx, ecx
push eax
xor ecx, ecx
mov dword [ebp - 0x538], ebx
push 0x2001f
push ecx
push 0x407568
mov edi, ecx
mov dword [ebp - 0x540], ecx
push SysReAllocStringLen
mov dword [ebp - 0x544], edi
mov dword [ebp - 0x53c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x42a3bd
lea eax, [ebp - 0x53c]
push eax
push 0x2001f
push esi
push 0x406a64
push dword [ebp - 0x540]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x42a3bd
mov edi, dword [ebp - 0x538]
mov ebx, eax
mov dword [ebp - 0x534], 0x80
mov dword [ebp - 0x530], eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x534]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 0x53c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jne 0x42a3a5
lea eax, [ebp - 0x530]
mov dword [ebp - 0x534], 0x80
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x10c]
inc ebx
push eax
push dword [ebp - 0x53c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x42a3a5
push dword [ebp - 0x530]
mov ecx, edi
call fcn.00429bc2
test eax, eax
jns 0x42a392
lea eax, [ebp - 0x10c]
push eax
push 0x406a78
push 4
call fcn.0041ea5f
add esp, 0xc
push dword [ebp - 0x530]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x42a315
push dword [ebp - 0x53c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x544]
mov ebx, dword [ebp - 0x538]
cmp dword [ebp - 0x540], 0
je 0x42a3d2
push dword [ebp - 0x540]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42a3f5
cmp esi, 0x103
je 0x42a3f5
test esi, esi
jg 0x42a3e6
mov edi, esi
jmp 0x42a3ef
movzx edi, si
or edi, 0x80070000
mov dword [ebp - 0x544], edi
cmp dword [ebx + 0x1c], 3
jne 0x42a58a
push 0x406aa8
push 0x407568
push 0x401d00
lea eax, [ebp - 0x31c]
push 0x105
push eax
call fcn.0040c0b5
add esp, 0x14
test eax, eax
js 0x42a5c2
and dword [ebp - 0x530], 0
lea eax, [ebp - 0x530]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x31c]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42a5c2
mov edi, dword [ebp - 0x538]
xor ebx, ebx
and dword [ebp - 0x534], ebx
mov dword [ebp - 0x548], 0x80
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x548]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 0x530]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jne 0x42a578
lea eax, [ebp - 0x534]
mov dword [ebp - 0x548], 0x80
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x10c]
inc ebx
push eax
push dword [ebp - 0x530]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x42a578
lea eax, [ebp - 0x54c]
mov dword [ebp - 0x54c], 0x20a
push eax
lea eax, [ebp - 0x52c]
inc esi
push eax
lea eax, [ebp - 0x538]
mov dword [ebp - 0x538], esi
push eax
push 0
push 0x4073f0
push dword [ebp - 0x534]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42a567
cmp dword [ebp - 0x538], esi
jne 0x42a567
mov esi, dword [edi + 4]
jmp 0x42a53c
mov eax, dword [esi]
test eax, eax
je 0x42a539
push dword [eax + 0x24]
lea eax, [ebp - 0x52c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x42a567
mov esi, dword [esi + 4]
test esi, esi
jne 0x42a51d
push dword [ebp - 0x534]
mov ecx, edi
call fcn.00429bc2
test eax, eax
jns 0x42a567
lea eax, [ebp - 0x10c]
push eax
push 0x406ac4
push 4
call fcn.0041ea5f
add esp, 0xc
push dword [ebp - 0x534]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42a471
push dword [ebp - 0x530]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x544]
test esi, esi
je 0x42a5c2
cmp esi, 0x103
je 0x42a5c2
test esi, esi
jle 0x42a5a5
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x42a5c2
test edi, edi
jns 0x42a5ad
mov esi, edi
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 4
test edi, edi
js 0x42a5ab
xor esi, esi
jmp 0x42a5ad