Function at 0x407930
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431559
mov eax, dword fs:[0]
push eax
mov eax, 0x1088
call fcn.00430ae0
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1060], eax
lea edx, [ebp - 0x1058]
push edx
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
cmp dword [ebp + 0x28], 8
lea eax, [ebp + 0x14]
cmovae eax, dword [ebp + 0x14]
push 0x20019
push eax
push ecx
mov dword [ebp - 0x1058], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
test eax, eax
jne 0x407a45
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x1014], ax
lea eax, [ebp - 0x1012]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1054]
push eax
lea eax, [ebp - 0x1034]
push eax
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x1024]
push eax
lea eax, [ebp - 0x1018]
push eax
push 0
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x1058]
mov dword [ebp - 0x101c], 0x400
mov dword [ebp - 0x1018], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x407a7f
push dword [ebp - 0x1058]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
cmp dword [ebp + 0x28], 8
mov byte [ebp - 0x1059], al
jb 0x407a61
push dword [ebp + 0x14]
call ebx
mov al, byte [ebp - 0x1059]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [ebp - 0x1018]
test eax, eax
je 0x407bb3
xor edi, edi
test eax, eax
je 0x407bb3
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x814]
push 0x400
push eax
push edi
push dword [ebp - 0x1058]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x407ba6
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x1078]
call fcn.004026f0
mov esi, eax
push 0x436b24
lea edx, [ebp + 0x14]
lea ecx, [ebp - 0x1090]
mov byte [ebp - 4], 1
call fcn.004036e0
push esi
mov edx, eax
lea ecx, [ebp - 0x104c]
mov byte [ebp - 4], 2
call fcn.004090e0
add esp, 8
cmp dword [ebp - 0x107c], 8
jb 0x407b2a
push dword [ebp - 0x1090]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x107c], 7
mov dword [ebp - 0x1080], 0
mov word [ebp - 0x1090], ax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x1064], 8
jb 0x407b5f
push dword [ebp - 0x1078]
call ebx
add esp, 4
mov ecx, dword [ebp - 0x1060]
xor eax, eax
mov word [ebp - 0x1078], ax
lea eax, [ebp - 0x104c]
push eax
mov dword [ebp - 0x1064], 7
mov dword [ebp - 0x1068], 0
call fcn.00408d10
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1038], 8
jb 0x407ba6
push dword [ebp - 0x104c]
call ebx
add esp, 4
inc edi
cmp edi, dword [ebp - 0x1018]
jb 0x407a97
push dword [ebp - 0x1058]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x407a47