Function at 0x4051d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4184e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x7814
call fcn.004062a0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor edi, edi
mov ecx, dword [ebp + 8]
push eax
push 1
push edi
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 0x40539c
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x7824]
push edx
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
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 0x40535d
mov eax, dword [ebp - 0x1c]
cmp eax, 7
ja case.0x405269.3
jmp dword [eax*4 + 0x4053f8]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x7824]
mov dword [eax], 1
mov dword [eax + 4], ecx
jmp 0x405339
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x7824]
push edx
lea ecx, [eax + 8]
mov dword [eax], 2
call fcn.00411c1d
jmp 0x405339
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x7824]
lea ebx, [eax - 1]
test esi, esi
je 0x405339
test ebx, ebx
jbe 0x405339
mov ecx, dword [ebp + 0x14]
lea edi, [ecx + 8]
mov ecx, edi
call fcn.00411a6b
push esi
mov ecx, edi
call fcn.00411c1d
mov edx, dword [ebp + 0x14]
push edi
lea ecx, [edx + 0xc]
call fcn.00411394
mov eax, dword [edi]
or ecx, 0xffffffff
mov eax, dword [eax - 8]
sub ecx, eax
lea esi, [esi + eax + 1]
add ebx, ecx
jmp 0x4052b0
mov edx, dword [0x41f1f0]
mov dword [ebp + 0xc], 0x70c
mov dword [ebp + 0x14], edx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea ecx, [ebp + 0x14]
push str.SC_Error_3036:_The_following_key_is_an_unrecognized_data_type:__s
push ecx
call fcn.00411083
mov edx, dword [ebp + 0x14]
add esp, 0xc
lea ecx, [ebx + 4]
push edx
push 0
call fcn.00405810
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00411ae0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x405347
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 [0x41f1f0]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea edx, [ebp + 0x14]
push str.SC_Error_3037:_Unable_to_find_the_value_for_the_following_registry_key:__s
push edx
call fcn.00411083
mov eax, dword [ebp + 0x14]
add esp, 0xc
lea ecx, [ebx + 4]
push eax
push 0
call fcn.00405810
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
jmp 0x405334
mov ecx, dword [0x41f1f0]
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp + 0x14]
push str.SC_Error_3038:_Unable_to_find_the_following_registry_key:__s
push eax
call fcn.00411083
mov ecx, dword [ebp + 0x14]
add esp, 0xc
push ecx
push edi
lea ecx, [ebx + 4]
call fcn.00405810
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
jmp 0x405334