Function at 0x418850
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428d4b
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x524104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44c], ecx
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x458], 0
push 0
push eax
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x450], 0
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0xf
mov byte [ebp - 0x43c], 0
lea eax, [ebp - 0x43c]
mov dword [ebp - 4], 0
push eax
push 2
mov byte [ebp - 4], 1
call fcn.0041e0f0
add esp, 0x20
test eax, eax
je 0x41894b
mov edx, dword [ebp - 0x428]
cmp edx, 0x10
jb 0x418f58
mov ecx, dword [ebp - 0x43c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41893c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41893c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00425b14
add esp, 8
jmp 0x418f58
mov eax, 0x14
call fcn.00425b40
mov dword [ebp - 0x10], esp
mov eax, esp
push 3
push 9
push str.Products
push eax
call fcn.004019a0
cmp dword [ebp - 0x428], 0x10
lea esi, [ebp - 0x43c]
mov dword [ebp - 0x444], eax
jb 0x41898c
mov esi, dword [ebp - 0x43c]
test esi, esi
jne 0x41898c
xor eax, eax
jmp 0x4189c0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418991
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x4189a9
xor eax, eax
jmp 0x4189c0
lea eax, [edi + edi]
call fcn.00425b70
mov dword [ebp - 0x10], esp
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004019a0
push dword [ebp - 0x444]
push eax
lea eax, [ebp - 0x424]
push str._s_s
push eax
call fcn.00415740
add esp, 0x10
lea eax, [ebp - 0x450]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x424]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418f4d
mov eax, dword [ebp - 0x448]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x458], 0x208
push ecx
lea ecx, [ebp - 0x21c]
mov esi, 2
push ecx
push eax
push dword [ebp - 0x450]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x418a5d
push dword [ebp - 0x450]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x43c]
call fcn.00401810
mov al, 1
jmp 0x418f5a
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418a66
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
xor ecx, ecx
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425dbf
mov edi, eax
add esp, 4
test edi, edi
je 0x418b38
lea ecx, [ebp - 0x21c]
mov edx, edi
mov eax, ecx
sub edx, eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x418aa2
mov eax, dword [ebp - 0x44c]
mov edx, dword [eax]
mov esi, edx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x418aed
mov ecx, dword [ebp - 0x448]
nop dword [eax + eax]
cmp dword [eax + 0x10], ecx
jge 0x418ada
mov eax, dword [eax + 8]
jmp 0x418ade
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x418ad0
cmp esi, edx
je 0x418aed
cmp ecx, dword [esi + 0x10]
jge 0x418b35
mov ecx, dword [ebp - 0x44c]
lea eax, [ebp - 0x448]
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x451]
push eax
lea eax, [ebp - 0x444]
push eax
push 0x42f1e4
call fcn.004171f0
mov ecx, dword [ebp - 0x44c]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x45c]
push eax
call fcn.00417380
mov esi, dword [ebp - 0x45c]
mov dword [esi + 0x14], edi
push 0xc
call fcn.00425ae4
mov edi, eax
add esp, 4
test edi, edi
je 0x418c71
mov dword [edi + 4], 0
lea eax, [ebp - 0x43c]
mov dword [edi], 0
mov dword [edi + 8], 0
cmp dword [ebp - 0x428], 0x10
mov dword [ebp - 0x444], eax
jb 0x418b85
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x444], eax
test eax, eax
je 0x418bdf
mov ecx, eax
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418b90
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x440], eax
cmp eax, 0x3fffffff
jg 0x418bdf
add eax, eax
call fcn.00425b70
mov esi, esp
mov dword [ebp - 0x10], esp
test esi, esi
je 0x418bdf
push dword [ebp - 0x440]
xor eax, eax
push esi
push 0xffffffffffffffff
push dword [ebp - 0x444]
mov word [esi], ax
push eax
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x418be1
xor esi, esi
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
push esi
call fcn.00418470
mov edx, dword [ebp - 0x44c]
mov esi, dword [edx + 8]
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x418c26
mov ecx, dword [ebp - 0x448]
cmp dword [eax + 0x10], ecx
jge 0x418c12
mov eax, dword [eax + 8]
jmp 0x418c16
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x418c08
cmp esi, dword [edx + 8]
je 0x418c26
cmp ecx, dword [esi + 0x10]
jge 0x418c6e
lea eax, [ebp - 0x448]
mov dword [ebp - 0x440], eax
lea ecx, [edx + 8]
lea eax, [ebp - 0x452]
push eax
lea eax, [ebp - 0x440]
push eax
push 0x42f1e4
call fcn.004171f0
mov ecx, dword [ebp - 0x44c]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x460]
push eax
lea ecx, [ecx + 8]
call fcn.00417380
mov esi, dword [ebp - 0x460]
mov dword [esi + 0x14], edi
push 0x84
call fcn.00425ae4
mov edi, eax
add esp, 4
test edi, edi
je 0x418dd9
mov dword [edi + 0x78], 0
lea eax, [ebp - 0x43c]
mov dword [edi + 0x7c], 0
xorps xmm0, xmm0
mov dword [edi + 0x80], 0
movups xmmword [edi], xmm0
mov dword [ebp - 0x444], eax
movups xmmword [edi + 0x10], xmm0
movq qword [edi + 0x20], xmm0
movups xmmword [edi + 0x28], xmm0
movups xmmword [edi + 0x38], xmm0
movq qword [edi + 0x48], xmm0
movups xmmword [edi + 0x50], xmm0
movups xmmword [edi + 0x60], xmm0
movq qword [edi + 0x70], xmm0
cmp dword [ebp - 0x428], 0x10
jb 0x418cee
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x444], eax
test eax, eax
je 0x418d42
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418cf3
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x440], eax
cmp eax, 0x3fffffff
jg 0x418d42
add eax, eax
call fcn.00425b70
mov esi, esp
mov dword [ebp - 0x10], esp
test esi, esi
je 0x418d42
push dword [ebp - 0x440]
xor eax, eax
push esi
push 0xffffffffffffffff
push dword [ebp - 0x444]
mov word [esi], ax
push eax
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x418d44
xor esi, esi
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
push esi
call fcn.00417f00
mov edx, dword [ebp - 0x44c]
mov esi, dword [edx + 0x10]
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x418d8e
mov ecx, dword [ebp - 0x448]
nop dword [eax + eax]
cmp dword [eax + 0x10], ecx
jge 0x418d7a
mov eax, dword [eax + 8]
jmp 0x418d7e
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x418d70
cmp esi, dword [edx + 0x10]
je 0x418d8e
cmp ecx, dword [esi + 0x10]
jge 0x418dd6
lea eax, [ebp - 0x448]
mov dword [ebp - 0x440], eax
lea ecx, [edx + 0x10]
lea eax, [ebp - 0x453]
push eax
lea eax, [ebp - 0x440]
push eax
push 0x42f1e4
call fcn.004171f0
mov ecx, dword [ebp - 0x44c]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x464]
push eax
lea ecx, [ecx + 0x10]
call fcn.00417380
mov esi, dword [ebp - 0x464]
mov dword [esi + 0x14], edi
push 0x5c
call fcn.00425ae4
mov edi, eax
add esp, 4
test edi, edi
je 0x418f29
mov dword [edi + 0x50], 0
lea eax, [ebp - 0x43c]
mov dword [edi + 0x54], 0
xorps xmm0, xmm0
mov dword [edi + 0x58], 0
movups xmmword [edi], xmm0
mov dword [ebp - 0x444], eax
movups xmmword [edi + 0x10], xmm0
movq qword [edi + 0x20], xmm0
movups xmmword [edi + 0x28], xmm0
movups xmmword [edi + 0x38], xmm0
movq qword [edi + 0x48], xmm0
cmp dword [ebp - 0x428], 0x10
jb 0x418e43
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x444], eax
test eax, eax
je 0x418e97
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418e48
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x440], eax
cmp eax, 0x3fffffff
jg 0x418e97
add eax, eax
call fcn.00425b70
mov esi, esp
mov dword [ebp - 0x10], esp
test esi, esi
je 0x418e97
push dword [ebp - 0x440]
xor eax, eax
push esi
push 0xffffffffffffffff
push dword [ebp - 0x444]
mov word [esi], ax
push eax
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x418e99
xor esi, esi
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
push esi
call fcn.00418f80
mov edx, dword [ebp - 0x44c]
mov esi, dword [edx + 0x18]
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x418ede
mov ecx, dword [ebp - 0x448]
cmp dword [eax + 0x10], ecx
jge 0x418eca
mov eax, dword [eax + 8]
jmp 0x418ece
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x418ec0
cmp esi, dword [edx + 0x18]
je 0x418ede
cmp ecx, dword [esi + 0x10]
jge 0x418f26
lea eax, [ebp - 0x448]
mov dword [ebp - 0x440], eax
lea ecx, [edx + 0x18]
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x440]
push eax
push 0x42f1e4
call fcn.004171f0
mov ecx, dword [ebp - 0x44c]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x468]
push eax
lea ecx, [ecx + 0x18]
call fcn.00417380
mov esi, dword [ebp - 0x468]
mov dword [esi + 0x14], edi
mov eax, dword [ebp - 0x448]
inc eax
mov dword [ebp - 0x448], eax
jmp 0x418a09
lea ecx, [ebp - 0x43c]
call fcn.00401810
xor al, al
lea esp, [ebp - 0x478]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00425b22
mov esp, ebp
pop ebp
ret