Function at 0x4134e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bb18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x7814
call fcn.00407d40
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x14]
push eax
push 1
xor edi, edi
push edi
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 0x7800
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x7824], 0
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
mov dword [ebp + 0xc], eax
jne 0x4136b1
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x7824]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push edi
mov edi, dword [ebp + 0x10]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x41364a
mov eax, dword [ebp - 0x1c]
cmp eax, 7
ja case.0x413579.3
jmp dword [eax*4 + 0x413704]
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 0x4135a0
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 0x413592
mov ebx, dword [ebp - 0x18]
dec ebx
lea edi, [ebp - 0x7824]
lea ebx, [ebx]
test edi, edi
je 0x413592
test ebx, ebx
jbe 0x413592
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.00413fb5
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
or ecx, 0xffffffff
sub ecx, eax
lea edi, [edi + eax + 1]
add ebx, ecx
jmp 0x4135e0
mov dword [ebp + 0xc], 0x70c
call fcn.0041445f
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 esi
push str.SC_Error_3036:_The_following_key_is_an_unrecognized_data_type:__s
jmp 0x413670
call fcn.0041445f
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 edi
push str.SC_Error_3037:_Unable_to_find_the_value_for_the_following_registry_key:__s
lea ecx, [ebp + 0x14]
push ecx
call fcn.00404a50
mov esi, dword [ebp + 0x14]
add esp, 0xc
push esi
push 0
lea ecx, [ebx + 4]
call fcn.004139e0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413592
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x413592
call fcn.0041445f
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 esi
lea ecx, [ebp + 0x14]
push str.SC_Error_3038:_Unable_to_find_the_following_registry_key:__s
push ecx
call fcn.00404a50
mov esi, dword [ebp + 0x14]
add esp, 0xc
push esi
push edi
jmp 0x413682