Function at 0x4ba130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5756c8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x4ba2d7
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
mov dword [ebp - 0x34], ebx
test ebx, ebx
jne 0x4ba2ce
cmp dword [ebp - 0x14], eax
je 0x4ba2ce
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov edi, 2
inc eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005243ff
mov esi, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mul edi
mov byte [ebp - 4], 1
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005243ff
add esp, 8
mov edi, eax
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x14], ebx
jbe 0x4ba2bc
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4ba2b2
call fcn.0045adc0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4ba33b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 2
dec eax
jne 0x4ba2eb
mov ecx, dword [ebp + 0x10]
push edi
push esi
call fcn.0045c2e0
mov ecx, eax
call fcn.0045a5f0
mov edx, dword [ebp - 0x38]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4ba2b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x4ba220
push edi
call fcn.0052586e
push esi
call fcn.0052586e
mov ebx, dword [ebp - 0x34]
add esp, 8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x38]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4ba315
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call fcn.0052586e
push esi
call fcn.0052586e
add esp, 8
mov eax, 0xb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0045a8f0
int3