Function at 0x4aebd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7e2d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
xor esi, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x4aede3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov eax, dword [ebx]
mov dword [ebp - 4], 1
test eax, eax
je 0x4aedab
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push esi
lea ecx, [ebp - 0x18]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x18], 7
jne 0x4aedab
mov edx, dword [ebp - 0x10]
shr edx, 1
add edx, 1
js 0x4aedd9
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x4aec7a
push edx
lea ecx, [ebp - 0x14]
call fcn.00429eb0
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push 0
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4aedab
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov esi, edi
mov dword [ebp - 0x1c], esi
mov word [edi + eax*2], cx
cmp word [edi], cx
je 0x4aed8a
mov ebx, esi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4aecb7
sub ebx, ecx
sar ebx, 1
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x4aede3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
test esi, 0xffff0000
jne 0x4aecfa
movzx eax, si
lea ecx, [ebp + 8]
push eax
call fcn.00429d90
jmp 0x4aed19
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aed00
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 8]
call fcn.0042a060
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 3
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
cmp eax, dword [ecx + 8]
je 0x4aed4b
mov esi, dword [ebp + 8]
lea eax, [esi - 0x10]
push eax
call fcn.00429b80
mov ecx, dword [ebp - 0x20]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
add dword [eax + 4], 4
jmp 0x4aed58
lea edx, [ebp + 8]
push edx
push eax
call fcn.004293a0
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4aed74
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1c]
lea esi, [esi + ebx*2]
add esi, 2
mov dword [ebp - 0x1c], esi
cmp word [esi], 0
jne 0x4aecb2
push dword [edi - 8]
push edi
call fcn.0056b163
add esp, 8
test eax, eax
js 0x4aedd9
cmp eax, dword [edi - 8]
jg 0x4aedd9
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
lea esi, [ecx + 1]
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4aedc3
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00429b60
push 0x80004005
call fcn.00429b60
int3