Function at 0x422110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518eb1
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5684dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jl 0x422605
push 0x526ef0
push eax
call fcn.004a561c
mov esi, eax
add esp, 8
test esi, esi
je 0x422605
mov ecx, dword [ebx]
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x422605
test esi, esi
js 0x42219f
cmp esi, dword [ecx - 0xc]
jg 0x42219f
lea eax, [ecx + esi*2]
push 0x52ab88
push eax
call fcn.004a561c
mov ecx, dword [ebx]
mov edi, eax
add esp, 8
test edi, edi
je 0x42219f
sub edi, ecx
sar edi, 1
cmp edi, 0xffffffff
jne 0x4221a2
mov edi, dword [ecx - 0xc]
xor eax, eax
test esi, esi
cmovns eax, esi
mov dword [ebp - 0x21c], eax
cmp eax, dword [ecx - 0xc]
jl 0x4221cb
lea eax, [ecx - 0x10]
push eax
call fcn.00404570
add esp, 4
add eax, 0x10
mov dword [ebp - 0x224], eax
jmp 0x4221fb
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x4221db
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x4221e7
call fcn.00416f80
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x224]
push dword [ebx]
call fcn.0040a640
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.00426c10
lea eax, [esi + 1]
mov ecx, edi
sub ecx, esi
xor esi, esi
test eax, eax
cmovns esi, eax
xor edx, edx
sub ecx, 1
mov eax, SysReAllocString
cmovns edx, ecx
sub eax, esi
mov dword [ebp - 0x21c], edx
cmp eax, edx
jl 0x422623
lea eax, [edx + esi]
mov edx, dword [ebx]
mov ecx, dword [edx - 0xc]
sub ecx, esi
cmp eax, dword [edx - 0xc]
cmovle ecx, dword [ebp - 0x21c]
xor eax, eax
cmp esi, dword [edx - 0xc]
cmovle eax, ecx
mov dword [ebp - 0x21c], eax
test esi, esi
jne 0x42227c
add eax, esi
cmp eax, dword [edx - 0xc]
jne 0x42227c
lea eax, [edx - 0x10]
push eax
call fcn.00404570
add esp, 4
add eax, 0x10
mov dword [ebp - 0x228], eax
jmp 0x4222b0
mov ecx, dword [edx - 0x10]
test ecx, ecx
je 0x42228c
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x422298
call fcn.00416f80
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, dword [ebx]
push eax
push dword [ebp - 0x21c]
lea eax, [ecx + esi*2]
push eax
lea ecx, [ebp - 0x228]
call fcn.0040a640
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.00426c10
mov ecx, dword [ebx]
xor eax, eax
mov esi, dword [ecx - 0xc]
cmp edi, esi
je 0x4222cf
mov eax, esi
sub eax, edi
dec eax
xor edi, edi
test eax, eax
cmovns edi, eax
cmp edi, esi
jl 0x4222f1
lea eax, [ecx - 0x10]
push eax
call fcn.00404570
add esp, 4
add eax, 0x10
mov dword [ebp - 0x220], eax
jmp 0x422322
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x422301
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x42230d
call fcn.00416f80
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, dword [ebx]
sub esi, edi
push eax
push edi
lea eax, [ecx + esi*2]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040a640
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.00426c10
mov esi, dword [ebp - 0x224]
mov ecx, str.HKEY_CLASSES_ROOT
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422366
test dx, dx
je 0x422362
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422366
add eax, 4
add ecx, 4
test dx, dx
jne 0x422340
xor eax, eax
jmp 0x42236b
sbb eax, eax
or eax, 1
mov edi, dword [ebp - 0x228]
test eax, eax
jne 0x42237f
mov ebx, SysReAllocString
jmp 0x422478
mov ecx, str.HKEY_CURRENT_USER
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4223ac
test dx, dx
je 0x4223a8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4223ac
add eax, 4
add ecx, 4
test dx, dx
jne 0x422386
xor eax, eax
jmp 0x4223b1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4223bf
mov ebx, SysReAllocString
jmp 0x422478
mov ecx, str.HKEY_LOCAL_MACHINE
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4223ec
test dx, dx
je 0x4223e8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4223ec
add eax, 4
add ecx, 4
test dx, dx
jne 0x4223c6
xor eax, eax
jmp 0x4223f1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4223fc
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x422478
mov ecx, str.HKEY_USERS
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422429
test dx, dx
je 0x422425
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422429
add eax, 4
add ecx, 4
test dx, dx
jne 0x422403
xor eax, eax
jmp 0x42242e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x422439
mov ebx, SysStringLen
jmp 0x422478
mov ecx, str.HKEY_CURRENT_CONFIG
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422466
test dx, dx
je 0x422462
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422466
add eax, 4
add ecx, 4
test dx, dx
jne 0x422440
xor eax, eax
jmp 0x42246b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x422598
mov ebx, SysStringLen
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
call fcn.00413650
test eax, eax
je 0x4224e6
push 0x20119
push edi
push ebx
lea ecx, [ebp - 0x238]
call fcn.00413650
test eax, eax
je 0x4224e6
mov ebx, dword [ebp - 0x238]
mov dword [ebp - 0x22c], 0
test ebx, ebx
je 0x4225a2
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4225a2
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a4120
mov ebx, dword [ebp - 0x238]
lea eax, [ebp - 0x21c]
add esp, 0xc
mov dword [ebp - 0x21c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x23c]
push eax
push 0
push dword [ebp - 0x220]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4224c8
mov eax, dword [ebp - 0x23c]
cmp eax, 1
je 0x422544
cmp eax, 2
jne 0x4224c8
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x422568
test al, 1
jne 0x4224c8
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x422571
jmp 0x4224c8
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004bfee3
xor ecx, ecx
add esp, 8
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [ebp - 0x22c], eax
jmp 0x4224d2
mov dword [ebp - 0x22c], 0
mov edx, dword [ebp - 0x220]
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4225c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4225e1
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4225fd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x22c]
jmp 0x422607
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004774d8
mov esp, ebp
pop ebp
ret
push 0x80070216
call fcn.00404410
int3