Function at 0x505620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
push ebx
push esi
push edi
mov edi, dword [0x770b48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x278]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x278]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x76e96c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 1
lea ecx, [ebp - 0x278]
push 0
push ecx
push reloc.ijl15.dll_Ordinal_2
call esi
test eax, eax
jne 0x50586a
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x278]
push eax
push 1
push 0
push ecx
push reloc.ijl15.dll_Ordinal_2
call esi
test eax, eax
jne 0x50586a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, 1
mov edx, dword [0x83be50]
mov eax, 4
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov ecx, 0x19
xor eax, eax
lea edi, [ebp - 0x78]
push edx
rep stosd dword es:[edi], eax
push esi
call fcn.00543ec0
add esp, 4
push eax
lea eax, [ebp - 0x78]
push 0x76feb4
push eax
call fcn.00711e28
add esp, 0x10
lea ecx, [ebp - 8]
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
push ecx
push edx
mov edx, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x78]
push 0
push ecx
push edx
call ebx
test eax, eax
jne 0x505745
push esi
call fcn.00543fb0
add esp, 4
test eax, eax
je 0x505745
mov eax, dword [ebp - 0xc]
push eax
jmp 0x505747
push 0
push esi
mov ecx, 0x83a9e0
call fcn.006db880
inc esi
cmp esi, 0x9ea
jl 0x5056dd
mov esi, 0x1f40
mov eax, 4
mov ecx, 0x19
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
mov ecx, dword [0x83be50]
push ecx
push esi
call fcn.00543ec0
add esp, 4
lea edx, [ebp - 0x78]
push eax
push 0x76feb4
push edx
call fcn.00711e28
add esp, 0x10
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
lea edx, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x78]
push 0
push eax
push ecx
call ebx
test eax, eax
jne 0x5057c8
push esi
call fcn.00543fb0
add esp, 4
test eax, eax
je 0x5057c8
mov edx, dword [ebp - 0xc]
push edx
jmp 0x5057ca
push 0
push esi
mov ecx, 0x83a9e0
call fcn.006db930
inc esi
cmp esi, 0x1f6d
jl 0x505760
mov esi, 0x2008
mov eax, 4
mov ecx, 0x19
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
mov eax, dword [0x83be50]
push eax
push esi
call fcn.00543ec0
add esp, 4
lea ecx, [ebp - 0x78]
push eax
push 0x76feb4
push ecx
call fcn.00711e28
add esp, 0x10
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
lea ecx, [ebp - 4]
push edx
push eax
mov eax, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x78]
push 0
push edx
push eax
call ebx
test eax, eax
jne 0x50584a
push esi
call fcn.00543fb0
add esp, 4
test eax, eax
je 0x50584a
mov ecx, dword [ebp - 0xc]
push ecx
jmp 0x50584c
push 0
push esi
mov ecx, 0x83a9e0
call fcn.006db980
inc esi
cmp esi, 0x20fb
jl 0x5057e3
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret