Function at 0x4a4450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e248
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x62819c]
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
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4a4667
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], esi
test eax, eax
je 0x4a4628
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 0x4a4628
mov edx, dword [ebp - 0x10]
shr edx, 1
add edx, 1
js 0x4a465d
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x4a44f3
push edx
lea ecx, [ebp - 0x14]
call fcn.004296d0
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 0x4a4628
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 0x4a4607
jmp 0x4a4530
mov ebx, esi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4a4535
sub ebx, ecx
sar ebx, 1
call fcn.00428a90
test eax, eax
je 0x4a4667
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
test esi, 0xffff0000
jne 0x4a4578
movzx eax, si
lea ecx, [ebp + 8]
push eax
call fcn.004295b0
jmp 0x4a4599
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4580
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 8]
call fcn.00429870
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
cmp eax, dword [ecx + 8]
je 0x4a45cb
lea eax, [esi - 0x10]
push eax
call fcn.004293f0
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 0x4a45d5
lea edx, [ebp + 8]
push edx
push eax
call fcn.00428c50
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a45f1
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 0x4a4530
push dword [edi - 8]
push edi
call fcn.00555593
add esp, 8
test eax, eax
js 0x4a465d
cmp eax, dword [edi - 8]
jg 0x4a465d
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
lea esi, [ecx + 1]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4a4647
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.004293d0
push 0x80004005
call fcn.004293d0
int3