Function at 0x415490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x7814
call fcn.00408450
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
or ecx, 1
push ecx
push ebx
push edi
push edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0x7800
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x7824], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x415661
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x7824]
push ecx
lea edx, [ebp - 0x1c]
push edx
push ebx
mov ebx, dword [ebp + 0x10]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x4155fa
mov eax, dword [ebp - 0x1c]
cmp eax, 7
ja case.0x41552d.3
jmp dword [eax*4 + 0x4156b4]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x7824]
mov dword [eax], 1
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x415554
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x7824]
push edx
lea ecx, [eax + 8]
mov dword [eax], 2
call fcn.00401dd0
jmp 0x415546
mov ebx, dword [ebp - 0x18]
dec ebx
lea edi, [ebp - 0x7824]
mov edi, edi
test edi, edi
je 0x415546
test ebx, ebx
jbe 0x415546
mov esi, dword [ebp + 0x14]
add esi, 8
mov ecx, esi
call fcn.00401b00
push edi
mov ecx, esi
call fcn.00401dd0
mov ecx, dword [ebp + 0x14]
push esi
add ecx, 0xc
call fcn.00416f1b
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
or ecx, 0xffffffff
sub ecx, eax
lea edi, [edi + eax + 1]
add ebx, ecx
jmp 0x415590
mov dword [ebp + 0xc], 0x70c
call fcn.004173c5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push str.SC_Error_3036:_The_following_key_is_an_unrecognized_data_type:__s
jmp 0x415620
call fcn.004173c5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push str.SC_Error_3037:_Unable_to_find_the_value_for_the_following_registry_key:__s
lea ecx, [ebp + 0x14]
push ecx
call fcn.00404b60
mov edi, dword [ebp + 0x14]
add esp, 0xc
push edi
push 0
lea ecx, [esi + 4]
call fcn.00415990
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415546
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x415546
call fcn.004173c5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea ecx, [ebp + 0x14]
push str.SC_Error_3038:_Unable_to_find_the_following_registry_key:__s
push ecx
call fcn.00404b60
mov edi, dword [ebp + 0x14]
add esp, 0xc
push edi
push ebx
jmp 0x415632