Function at 0x4070f7
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x2d4
mov eax, 0x5bbb62
call fcn.00580bea
mov edi, ecx
mov dword [ebp - 0x2a0], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x278], reloc.OLEAUT32.dll_SysReAllocString
xor ebx, ebx
mov byte [ebp - 0x26d], bl
mov dword [ebp - 0x274], ebx
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x407158
mov dword [ebp - 0x274], eax
jmp 0x40715e
mov eax, dword [ebp - 0x274]
cmp eax, 1
jne 0x407169
mov dword [ebp - 0x274], eax
cmp dword [edi + 0x18], 8
jb 0x407174
mov ecx, dword [edi + 4]
jmp 0x407177
lea ecx, [edi + 4]
lea edx, [ebp - 0x29c]
push edx
dec eax
neg eax
sbb eax, eax
mov edx, 0x100
and eax, edx
add eax, edx
or eax, 0x20019
push eax
push ebx
push ecx
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407454
push dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x29c]
lea esi, [ebp - 0x2a4]
call fcn.0040e3a7
mov dword [ebp - 4], ebx
mov dword [ebp - 0x280], 0xff
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x284], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x280], 0xff
mov eax, dword [ebp - 0x284]
inc dword [ebp - 0x284]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x280]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
push dword [ebp - 0x29c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x288], eax
cmp eax, ebx
jne 0x407405
lea eax, [ebp - 0x294]
push eax
call fcn.00405111
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x274]
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
mov dword [ebp - 0x294], eax
mov eax, dword [ebp - 0x278]
call fcn.0040e3fa
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.004085d2
push 0x68a36c
lea eax, [ebp - 0x290]
push eax
call fcn.004085f0
cmp dword [edi + 0x18], 8
jb 0x40727a
mov eax, dword [edi + 4]
jmp 0x40727d
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.004085f0
push 0x68a370
lea eax, [ebp - 0x290]
push eax
call fcn.004085f0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.004085f0
push 0x68a374
lea esi, [ebp - 0x2c0]
call fcn.00408187
mov byte [ebp - 4], 3
push dword [ebp - 0x280]
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x2dc]
call fcn.00408163
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c0]
push ecx
mov edx, eax
lea ecx, [ebp - 0x234]
call fcn.0040696d
pop ecx
mov byte [ebp - 4], 6
push ebx
push 1
call fcn.00409bbf
mov byte [ebp - 4], 7
push ebx
push 1
lea esi, [ebp - 0x2c0]
call fcn.00409bbf
cmp dword [ebp - 0x220], ebx
je 0x40738f
push dword [ebp - 0x298]
lea esi, [ebp - 0x26c]
call fcn.004081a6
mov byte [ebp - 4], 8
push 0x68a394
mov eax, esi
push eax
call fcn.004081d4
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x234]
mov ecx, esi
call fcn.004097a9
push ebx
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x27c]
mov ecx, esi
call fcn.00406435
add esp, 0xc
test al, al
jne 0x407383
push ebx
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x27c]
lea ecx, [ebp - 0x234]
call fcn.00406435
add esp, 0xc
mov byte [ebp - 4], 7
lea esi, [ebp - 0x26c]
jmp 0x4073db
push edi
lea esi, [ebp - 0x250]
call fcn.004081a6
mov byte [ebp - 4], 9
push 0x68a398
mov eax, esi
push eax
call fcn.004081d4
lea eax, [ebp - 0x218]
push eax
mov eax, esi
push eax
call fcn.004081d4
push dword [ebp - 0x298]
push dword [ebp - 0x27c]
push dword [ebp - 0x278]
mov ecx, esi
call fcn.00406c83
add esp, 0xc
mov byte [ebp - 4], 7
push ebx
push 1
call fcn.00409bbf
mov byte [ebp - 4], 2
push ebx
push 1
lea esi, [ebp - 0x234]
call fcn.00409bbf
mov byte [ebp - 4], 1
lea eax, [ebp - 0x294]
push eax
call fcn.00405144
mov dword [ebp - 4], ebx
jmp 0x40741c
cmp dword [ebp - 0x288], ebx
je 0x4071d8
cmp dword [ebp - 0x288], 0x103
jne 0x40743b
mov byte [ebp - 0x26d], 1
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x2a4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x274]
mov ecx, eax
dec eax
mov dword [ebp - 0x274], eax
test ecx, ecx
jne 0x407169
mov al, byte [ebp - 0x26d]
call fcn.00580c46
ret