Function at 0x4ae260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a388d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x63434c]
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.004291f0
mov ecx, eax
test ecx, ecx
je 0x4ae473
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 0x4ae43b
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 0x4ae43b
mov edx, dword [ebp - 0x10]
shr edx, 1
add edx, 1
js 0x4ae469
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x4ae30a
push edx
lea ecx, [ebp - 0x14]
call fcn.00429e50
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 0x4ae43b
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 0x4ae41a
mov ebx, esi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4ae347
sub ebx, ecx
sar ebx, 1
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x4ae473
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 0x4ae38a
movzx eax, si
lea ecx, [ebp + 8]
push eax
call fcn.00429d30
jmp 0x4ae3a9
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ae390
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 8]
call fcn.0042a000
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 0x4ae3db
mov esi, dword [ebp + 8]
lea eax, [esi - 0x10]
push eax
call fcn.00429b20
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 0x4ae3e8
lea edx, [ebp + 8]
push edx
push eax
call fcn.00429340
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 0x4ae404
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 0x4ae342
push dword [edi - 8]
push edi
call fcn.00566c13
add esp, 8
test eax, eax
js 0x4ae469
cmp eax, dword [edi - 8]
jg 0x4ae469
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 0x4ae453
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.00429b00
push 0x80004005
call fcn.00429b00
int3