Function at 0x4070c2
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x2d4
mov eax, 0x5c271e
call fcn.005870fa
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 0x407123
mov dword [ebp - 0x274], eax
jmp 0x407129
mov eax, dword [ebp - 0x274]
cmp eax, 1
jne 0x407134
mov dword [ebp - 0x274], eax
cmp dword [edi + 0x18], 8
jb 0x40713f
mov ecx, dword [edi + 4]
jmp 0x407142
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 0x40741f
push dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x29c]
lea esi, [ebp - 0x2a4]
call fcn.0040e469
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 0x4073d0
lea eax, [ebp - 0x294]
push eax
call fcn.0040510b
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.0040e4bc
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.004085bd
push 0x691a24
lea eax, [ebp - 0x290]
push eax
call fcn.004085db
cmp dword [edi + 0x18], 8
jb 0x407245
mov eax, dword [edi + 4]
jmp 0x407248
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.004085db
push 0x691a28
lea eax, [ebp - 0x290]
push eax
call fcn.004085db
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.004085db
push 0x691a2c
lea esi, [ebp - 0x2c0]
call fcn.00408172
mov byte [ebp - 4], 3
push dword [ebp - 0x280]
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x2dc]
call fcn.0040814e
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c0]
push ecx
mov edx, eax
lea ecx, [ebp - 0x234]
call fcn.00406938
pop ecx
mov byte [ebp - 4], 6
push ebx
push 1
call fcn.00409bf1
mov byte [ebp - 4], 7
push ebx
push 1
lea esi, [ebp - 0x2c0]
call fcn.00409bf1
cmp dword [ebp - 0x220], ebx
je 0x40735a
push dword [ebp - 0x298]
lea esi, [ebp - 0x26c]
call fcn.00408191
mov byte [ebp - 4], 8
push 0x691a4c
mov eax, esi
push eax
call fcn.004081bf
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x234]
mov ecx, esi
call fcn.004097db
push ebx
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x27c]
mov ecx, esi
call fcn.00406400
add esp, 0xc
test al, al
jne 0x40734e
push ebx
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x27c]
lea ecx, [ebp - 0x234]
call fcn.00406400
add esp, 0xc
mov byte [ebp - 4], 7
lea esi, [ebp - 0x26c]
jmp 0x4073a6
push edi
lea esi, [ebp - 0x250]
call fcn.00408191
mov byte [ebp - 4], 9
push 0x691a50
mov eax, esi
push eax
call fcn.004081bf
lea eax, [ebp - 0x218]
push eax
mov eax, esi
push eax
call fcn.004081bf
push dword [ebp - 0x298]
push dword [ebp - 0x27c]
push dword [ebp - 0x278]
mov ecx, esi
call fcn.00406c4e
add esp, 0xc
mov byte [ebp - 4], 7
push ebx
push 1
call fcn.00409bf1
mov byte [ebp - 4], 2
push ebx
push 1
lea esi, [ebp - 0x234]
call fcn.00409bf1
mov byte [ebp - 4], 1
lea eax, [ebp - 0x294]
push eax
call fcn.00412ceb
mov dword [ebp - 4], ebx
jmp 0x4073e7
cmp dword [ebp - 0x288], ebx
je 0x4071a3
cmp dword [ebp - 0x288], 0x103
jne 0x407406
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 0x407134
mov al, byte [ebp - 0x26d]
call fcn.00587156
ret