Function at 0x438142
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x2a0
mov eax, 0x46d022
call fcn.0045f3fe
mov eax, dword [ebp + 8]
mov dword [ebp - 0x288], eax
mov dword [ebp - 4], 2
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [ebp + 0x24], 8
mov dword [ebp - 0x278], ebx
jae 0x438175
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x278]
push ecx
push 9
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4381cf
mov byte [ebp - 0x271], bl
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00411dad
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp + 0x28]
call fcn.00411dad
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x44]
call fcn.00411dad
mov al, byte [ebp - 0x271]
call fcn.0045f490
ret 0x58
xor eax, eax
push 0x204
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 0x27c], ebx
call fcn.004433d0
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
jmp 0x438395
cmp dword [ebp + 0x40], 8
mov eax, dword [ebp + 0x2c]
jae 0x43821d
lea eax, [ebp + 0x2c]
push dword [ebp + 0x3c]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0043e84d
add esp, 0xc
test eax, eax
jne 0x438377
lea eax, [ebp - 0x244]
push eax
call fcn.00437b61
mov byte [ebp - 4], 3
lea eax, [ebp - 0x270]
push eax
call fcn.00437b61
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x3c]
lea eax, [ebp + eax*2 - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.00413ccf
lea ebx, [ebp - 0x244]
call fcn.00437bdc
mov eax, dword [ebp - 0x288]
sub esp, 0x1c
add eax, 4
mov ecx, esp
mov dword [ebp - 0x280], esp
push eax
call fcn.004132f9
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x270]
call fcn.00437b9b
mov eax, dword [ebp - 0x254]
cmp eax, dword [ebp - 0x228]
jne 0x438355
mov eax, dword [ebp - 0x250]
cmp eax, dword [ebp - 0x224]
jne 0x438355
mov eax, ebx
lea ecx, [ebp - 0x270]
call fcn.00437d1b
test eax, eax
je 0x438355
and dword [ebp - 0x280], 0
sub esp, 0x1c
lea eax, [ebp + 0x44]
mov ecx, esp
mov dword [ebp - 0x290], esp
push eax
lea edi, [ebp - 0x280]
call fcn.004132f9
mov byte [ebp - 4], 6
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.004132cd
mov byte [ebp - 4], 7
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x28c], esp
push eax
lea eax, [ebp + 0xc]
push eax
push ecx
call fcn.00419205
add esp, 0xc
mov byte [ebp - 4], 8
mov byte [ebp - 4], 9
call fcn.00437dba
mov bl, al
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x2ac]
call fcn.00411dad
test bl, bl
jne 0x4383c0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x270]
push eax
call fcn.00430721
mov byte [ebp - 4], 2
lea eax, [ebp - 0x244]
push eax
call fcn.00430721
xor ebx, ebx
inc dword [ebp - 0x27c]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x27c]
push dword [ebp - 0x278]
mov dword [ebp - 0x284], 0x103
call esi
test eax, eax
je 0x438211
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43818f
cmp dword [ebp - 0x280], 1
sete bl
mov byte [ebp - 4], 3
lea eax, [ebp - 0x270]
push eax
call fcn.00430721
mov byte [ebp - 4], 2
lea eax, [ebp - 0x244]
push eax
call fcn.00430721
mov byte [ebp - 0x271], bl
xor ebx, ebx
jmp 0x438195