Function at 0x4223f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f911
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5714dc]
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 0x4228e5
push 0x52ef00
push eax
call fcn.004a874c
mov esi, eax
add esp, 8
test esi, esi
je 0x4228e5
mov ecx, dword [ebx]
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x4228e5
test esi, esi
js 0x42247f
cmp esi, dword [ecx - 0xc]
jg 0x42247f
lea eax, [ecx + esi*2]
push 0x532b98
push eax
call fcn.004a874c
mov ecx, dword [ebx]
mov edi, eax
add esp, 8
test edi, edi
je 0x42247f
sub edi, ecx
sar edi, 1
cmp edi, 0xffffffff
jne 0x422482
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 0x4224ab
lea eax, [ecx - 0x10]
push eax
call fcn.00404780
add esp, 4
add eax, 0x10
mov dword [ebp - 0x224], eax
jmp 0x4224db
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x4224bb
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x4224c7
call fcn.00417180
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.0040a850
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.00426ed0
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 0x422903
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 0x42255c
add eax, esi
cmp eax, dword [edx - 0xc]
jne 0x42255c
lea eax, [edx - 0x10]
push eax
call fcn.00404780
add esp, 4
add eax, 0x10
mov dword [ebp - 0x228], eax
jmp 0x422590
mov ecx, dword [edx - 0x10]
test ecx, ecx
je 0x42256c
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x422578
call fcn.00417180
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.0040a850
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.00426ed0
mov ecx, dword [ebx]
xor eax, eax
mov esi, dword [ecx - 0xc]
cmp edi, esi
je 0x4225af
mov eax, esi
sub eax, edi
dec eax
xor edi, edi
test eax, eax
cmovns edi, eax
cmp edi, esi
jl 0x4225d1
lea eax, [ecx - 0x10]
push eax
call fcn.00404780
add esp, 4
add eax, 0x10
mov dword [ebp - 0x220], eax
jmp 0x422602
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x4225e1
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x4225ed
call fcn.00417180
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.0040a850
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.00426ed0
mov esi, dword [ebp - 0x224]
mov ecx, str.HKEY_CLASSES_ROOT
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422646
test dx, dx
je 0x422642
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422646
add eax, 4
add ecx, 4
test dx, dx
jne 0x422620
xor eax, eax
jmp 0x42264b
sbb eax, eax
or eax, 1
mov edi, dword [ebp - 0x228]
test eax, eax
jne 0x42265f
mov ebx, SysReAllocString
jmp 0x422758
mov ecx, str.HKEY_CURRENT_USER
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42268c
test dx, dx
je 0x422688
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42268c
add eax, 4
add ecx, 4
test dx, dx
jne 0x422666
xor eax, eax
jmp 0x422691
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42269f
mov ebx, SysReAllocString
jmp 0x422758
mov ecx, str.HKEY_LOCAL_MACHINE
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4226cc
test dx, dx
je 0x4226c8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4226cc
add eax, 4
add ecx, 4
test dx, dx
jne 0x4226a6
xor eax, eax
jmp 0x4226d1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4226dc
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x422758
mov ecx, str.HKEY_USERS
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422709
test dx, dx
je 0x422705
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422709
add eax, 4
add ecx, 4
test dx, dx
jne 0x4226e3
xor eax, eax
jmp 0x42270e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x422719
mov ebx, VariantInit
jmp 0x422758
mov ecx, str.HKEY_CURRENT_CONFIG
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422746
test dx, dx
je 0x422742
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422746
add eax, 4
add ecx, 4
test dx, dx
jne 0x422720
xor eax, eax
jmp 0x42274b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x422878
mov ebx, VariantInit
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.00413860
test eax, eax
je 0x4227c6
push 0x20119
push edi
push ebx
lea ecx, [ebp - 0x238]
call fcn.00413860
test eax, eax
je 0x4227c6
mov ebx, dword [ebp - 0x238]
mov dword [ebp - 0x22c], 0
test ebx, ebx
je 0x422882
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x422882
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a7250
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 0x4227a8
mov eax, dword [ebp - 0x23c]
cmp eax, 1
je 0x422824
cmp eax, 2
jne 0x4227a8
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x422848
test al, 1
jne 0x4227a8
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x422851
jmp 0x4227a8
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004c3013
xor ecx, ecx
add esp, 8
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [ebp - 0x22c], eax
jmp 0x4227b2
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 0x4228a6
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 0x4228c1
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 0x4228dd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x22c]
jmp 0x4228e7
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.00477c28
mov esp, ebp
pop ebp
ret
push 0x80070216
call fcn.00404620
int3