Function at 0x422ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46662d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x248
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 1
push 0
push 0x49b040
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422f9f
push 0x208
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.00445960
add esp, 0xc
mov dword [ebp - 0x34], 0x208
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], 1
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push str.BuildLabEx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422f96
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x1c], eax
movups xmmword [ebp - 0x30], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422da0
sub ecx, edx
lea eax, [ebp - 0x258]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00405e90
mov dword [ebp - 4], 0
lea edi, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x20]
cmovae edi, dword [ebp - 0x30]
test eax, eax
je 0x422e03
mov ecx, eax
xor esi, esi
mov edx, edi
test ecx, ecx
je 0x422df9
cmp word [edi], 0x2e
je 0x422df7
cmp ecx, 1
je 0x422df9
add edx, 2
dec ecx
cmp word [edx], 0x2e
jne 0x422de8
mov esi, edx
test esi, esi
je 0x422e03
sub esi, edi
sar esi, 1
jmp 0x422e06
or esi, 0xffffffff
cmp dword [ebp - 0x1c], 8
lea edi, [ebp - 0x30]
mov edx, dword [ebp - 0x30]
lea ecx, [esi + 1]
cmovae edi, edx
mov dword [ebp - 0x18], edi
cmp ecx, eax
jae 0x422e4c
sub eax, ecx
lea ecx, [edi + ecx*2]
mov edi, 0
je 0x422e41
cmp word [ecx], 0x2e
je 0x422e3f
nop
cmp eax, 1
je 0x422e41
add ecx, 2
dec eax
cmp word [ecx], 0x2e
jne 0x422e30
mov edi, ecx
test edi, edi
je 0x422e4c
sub edi, dword [ebp - 0x18]
sar edi, 1
jmp 0x422e4f
or edi, 0xffffffff
cmp edi, esi
jbe 0x422f63
cmp esi, 0xffffffff
je 0x422f63
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
lea edx, [esi + 1]
mov dword [ebp - 0x40], 0
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
cmp eax, edx
jb 0x422fb4
sub edi, esi
sub eax, edx
lea ecx, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x50]
lea eax, [eax + edx*2]
push eax
call fcn.00405e90
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
push 0xa
cmovae eax, dword [ebp - 0x50]
push 0
push eax
call fcn.0044aa0b
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
mov esi, eax
cmp ecx, 8
jb 0x422f04
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422efa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422fb9
push ecx
push edx
call fcn.004418b1
add esp, 8
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp ecx, 8
jb 0x422f4e
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422f44
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422fb9
push ecx
push edx
call fcn.004418b1
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x422f96
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422f8c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422fbe
push ecx
push edx
call fcn.004418b1
add esp, 8
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004054a0
call fcn.00449a39
call fcn.00449a39
int3