Function at 0x41d4b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429105
mov eax, dword fs:[0]
push eax
mov eax, 0x1518
call fcn.00425b40
mov eax, dword [0x524104]
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 eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1510], 0
mov dword [ebp - 0x1518], eax
mov dword [ebp - 0x1514], ebx
mov dword [ebp - 0x1524], 0x5254d4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5254d8]
mov esi, eax
cmp ecx, esi
jne 0x41d522
mov eax, dword [0x5254d4]
inc eax
jmp 0x41d538
mov ecx, 0x5254dc
call fcn.0041fc40
mov eax, 0x5254d8
xchg dword [eax], esi
mov eax, 1
mov dword [0x5254d4], eax
mov byte [ebp - 0x1520], 1
cmp dword [ebx + 0x10], 0
mov dword [ebp - 4], 2
jne 0x41d558
xor bl, bl
jmp 0x41e075
push 0xf0
lea eax, [ebp - 0x180]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x200
lea eax, [ebp - 0x380]
mov dword [ebp - 0x1500], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov dword [ebp - 0x1504], 0
mov dword [ebp - 0x388], 0
mov dword [ebp - 0x384], 0xf
mov byte [ebp - 0x398], 0
lea eax, [ebp - 0x398]
mov byte [ebp - 4], 3
push eax
push 2
call fcn.0041e0f0
add esp, 0x20
test eax, eax
jne 0x41d768
push 1
push 0x42eee8
lea ecx, [ebp - 0x398]
call fcn.00402740
push 8
push str.Products
lea ecx, [ebp - 0x398]
call fcn.00402740
cmp dword [ebp - 0x384], 0x10
lea esi, [ebp - 0x398]
jb 0x41d60b
mov esi, dword [ebp - 0x398]
test esi, esi
jne 0x41d60b
xor eax, eax
jmp 0x41d63c
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41d610
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x41d628
xor eax, eax
jmp 0x41d63c
lea eax, [edi + edi]
call fcn.00425b70
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004019a0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x1504]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call esi
test eax, eax
jne 0x41d768
xor ebx, ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1500]
mov dword [ebp - 0x150c], 0
push eax
lea eax, [ebp - 0x380]
mov dword [ebp - 0x1500], 0x200
push eax
push ebx
push dword [ebp - 0x1504]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
jne 0x41d753
mov dword [ebp - 0x14fc], eax
lea eax, [ebp - 0x14fc]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x380]
push eax
push dword [ebp - 0x1504]
call esi
mov edi, eax
test edi, edi
jne 0x41d753
lea ecx, [ebp - 0x380]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d6e0
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x41d6fe
xor eax, eax
jmp 0x41d719
add esi, esi
mov eax, esi
call fcn.00425b70
mov eax, esp
lea ecx, [ebp - 0x380]
push 3
push esi
push ecx
push eax
call fcn.0040cf40
push eax
lea ecx, [ebp - 0x428]
call fcn.0040ad10
push dword [ebp - 0x1514]
lea eax, [ebp - 0x428]
push eax
call fcn.0041b180
add esp, 8
test al, al
je 0x41d7ac
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 3
call fcn.00401810
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
inc ebx
test edi, edi
je 0x41d662
push dword [ebp - 0x1504]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov edx, dword [ebp - 0x384]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x41e055
mov ecx, dword [ebp - 0x398]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41e04b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41e04b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ebp - 0x388]
lea ecx, [ebp - 0x3c8]
inc eax
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0x3b8], 0
mov dword [ebp - 0x3b4], 0xf
mov byte [ebp - 0x3c8], 0
mov dword [ebp - 0x1510], 1
call fcn.00415620
cmp dword [ebp - 0x384], 0x10
lea eax, [ebp - 0x398]
push dword [ebp - 0x388]
cmovae eax, dword [ebp - 0x398]
lea ecx, [ebp - 0x3c8]
push eax
call fcn.00402740
push 1
push 0x42eee8
lea ecx, [ebp - 0x3c8]
call fcn.00402740
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x3c8]
push eax
lea eax, [ebp - 0x4a0]
push eax
call fcn.0040ab90
add esp, 0xc
lea ecx, [ebp - 0x3c8]
mov byte [ebp - 4], 7
call fcn.00401810
lea eax, [ebp - 0x1500]
mov dword [ebp - 0x1500], 0xf0
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x150c]
push eax
push 0
push str.ProductId
push dword [ebp - 0x14fc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41d89f
push dword [ebp - 0x14fc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x1504]
call esi
xor bl, bl
jmp 0x41e030
lea ecx, [ebp - 0x180]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d8b0
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x41d8ce
xor eax, eax
jmp 0x41d8e9
add esi, esi
mov eax, esi
call fcn.00425b70
mov eax, esp
lea ecx, [ebp - 0x180]
push 3
push esi
push ecx
push eax
call fcn.0040cf40
push eax
lea ecx, [ebp - 0x3b0]
call fcn.0040ad10
lea ecx, [ebp - 0x14f8]
mov byte [ebp - 4], 8
call fcn.00408e10
mov ebx, dword [ebp - 0x3a0]
mov byte [ebp - 4], 9
test ebx, ebx
je 0x41da25
mov eax, ebx
shr eax, 1
mov dword [ebp - 0x151c], eax
lea esi, [eax + 1]
push esi
call fcn.00425dbf
mov edi, eax
add esp, 4
mov dword [ebp - 0x1510], edi
test edi, edi
je 0x41da25
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor esi, esi
test ebx, ebx
je 0x41d9e7
cmp dword [ebp - 0x39c], 0x10
lea eax, [ebp - 0x3b0]
lea ecx, [ebp - 0x1508]
mov dword [ebp - 0x1508], 0
cmovae eax, dword [ebp - 0x3b0]
push ecx
movzx eax, byte [eax + esi]
push eax
call fcn.0041c9c0
mov eax, esi
add esp, 8
shr eax, 1
add edi, eax
mov eax, dword [ebp - 0x1508]
mov byte [edi], al
cmp esi, ebx
jae 0x41d99b
shl al, 4
mov byte [edi], al
cmp dword [ebp - 0x39c], 0x10
lea eax, [ebp - 0x3b0]
lea ecx, [ebp - 0x1508]
mov dword [ebp - 0x1508], 0
cmovae eax, dword [ebp - 0x3b0]
push ecx
movzx eax, byte [eax + esi + 1]
push eax
call fcn.0041c9c0
mov al, byte [ebp - 0x1508]
add esi, 2
or byte [edi], al
add esp, 8
mov edi, dword [ebp - 0x1510]
cmp esi, ebx
jb 0x41d952
push 0
push 0
call fcn.004209c0
add esp, 8
lea ecx, [ebp - 0x14f8]
test eax, eax
je 0x41da2b
push 0x38
push eax
call fcn.00409100
lea ecx, [ebp - 0x14f8]
test eax, eax
jne 0x41da2b
push eax
push 0x42d958
push dword [ebp - 0x151c]
push edi
call fcn.00409260
test eax, eax
je 0x41da35
lea ecx, [ebp - 0x14f8]
call fcn.00408e70
jmp 0x41dac3
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41da40
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x3b0]
call fcn.004028a0
lea ecx, [ebp - 0x14f8]
call fcn.00408e70
cmp dword [ebp - 0x39c], 0x10
lea eax, [ebp - 0x3b0]
push 0xa
cmovae eax, dword [ebp - 0x3b0]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov ecx, dword [ebp - 0x1518]
add esp, 0xc
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1500], 0xf0
mov dword [ecx], eax
lea eax, [ebp - 0x1500]
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x150c]
push eax
push 0
push str.ProductName
push dword [ebp - 0x14fc]
call edi
test eax, eax
je 0x41dae0
push dword [ebp - 0x14fc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x1504]
call esi
xor bl, bl
jmp 0x41e025
mov dword [ebp - 0x3d0], 0
mov dword [ebp - 0x3cc], 0xf
mov byte [ebp - 0x3e0], 0
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 0xa
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41db10
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x41db2e
xor eax, eax
jmp 0x41db49
add esi, esi
mov eax, esi
call fcn.00425b70
mov eax, esp
lea ecx, [ebp - 0x180]
push 3
push esi
push ecx
push eax
call fcn.0040cf40
push eax
lea ecx, [ebp - 0x3e0]
call fcn.00417120
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x3e0]
push eax
call fcn.0041b180
add esp, 8
test al, al
jne 0x41dcab
mov ebx, dword [ebp - 0x1514]
lea eax, [ebp - 0x3e0]
push eax
mov ecx, ebx
call fcn.0040bd40
mov ecx, dword [ebp - 0x1518]
mov eax, 0x42f4d0
mov edx, dword [ecx]
mov ecx, 1
nop dword [eax]
cmp ecx, edx
je 0x41dbb6
mov ecx, dword [eax + 0x2b1c]
add eax, 0x2b1c
cmp ecx, 0x2c
jne 0x41dba0
jmp 0x41dbd1
add eax, 0x44
push eax
lea eax, [ebp - 0x3e0]
push eax
call fcn.0041b1c0
add esp, 8
test al, al
jne 0x41dcab
lea eax, [ebp - 0x1500]
mov dword [ebp - 0x1500], 0xf0
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x150c]
push eax
push 0
push str.ProductType
push dword [ebp - 0x14fc]
call edi
test eax, eax
jne 0x41dcab
lea ecx, [ebp - 0x180]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41dc10
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x41dc2e
xor eax, eax
jmp 0x41dc49
add esi, esi
mov eax, esi
call fcn.00425b70
mov eax, esp
lea ecx, [ebp - 0x180]
push 3
push esi
push ecx
push eax
call fcn.0040cf40
push eax
lea ecx, [ebx + 0x18]
call fcn.00417120
cmp dword [ebx + 0x2c], 0x10
lea eax, [ebx + 0x18]
jb 0x41dc5e
mov eax, dword [ebx + 0x18]
push 3
push 0x4a6068
push dword [ebx + 0x28]
push eax
call fcn.004015d0
add esp, 0x10
test al, al
je 0x41e002
lea eax, [ebp - 0x1500]
mov dword [ebp - 0x1500], 0xf0
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x150c]
push eax
push 0
push 0x4a606c
push dword [ebp - 0x14fc]
call edi
test eax, eax
je 0x41dcc8
push dword [ebp - 0x14fc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x1504]
call esi
xor bl, bl
jmp 0x41e01a
lea ecx, [ebp - 0x180]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41dcd1
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x41dcef
xor eax, eax
jmp 0x41dd0a
add esi, esi
mov eax, esi
call fcn.00425b70
mov eax, esp
lea ecx, [ebp - 0x180]
push 3
push esi
push ecx
push eax
call fcn.0040cf40
push eax
lea ecx, [ebp - 0x410]
call fcn.0040ad10
push 0
push 0x4a6080
lea ecx, [ebp - 0x410]
mov byte [ebp - 4], 0xb
call fcn.0041f8f0
mov esi, eax
cmp esi, 0xffffffff
je 0x41dece
push esi
push 0
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x410]
call fcn.00420000
push eax
lea ecx, [ebx + 0x30]
call fcn.0040bd00
lea ecx, [ebp - 0x440]
call fcn.00401810
push dword [ebp - 0x400]
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x410]
call fcn.00420000
push eax
lea ecx, [ebx + 0x48]
call fcn.0040bd00
lea ecx, [ebp - 0x458]
call fcn.00401810
cmp dword [ebx + 0x44], 0x10
lea eax, [ebx + 0x30]
jb 0x41dd9c
mov eax, dword [ebx + 0x30]
push eax
push str._04s
lea eax, [ebp - 0x90]
push 0x7f
push eax
call fcn.0041b6f0
lea edx, [ebp - 0x90]
add esp, 0x10
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x41ddc0
sub edx, ecx
lea eax, [ebp - 0x90]
push edx
push eax
lea ecx, [ebx + 0x30]
call fcn.004028a0
cmp dword [ebx + 0x5c], 0x10
lea eax, [ebx + 0x48]
jb 0x41dde5
mov eax, dword [ebx + 0x48]
push eax
push str._04s
lea eax, [ebp - 0x90]
push 0x7f
push eax
call fcn.0041b6f0
lea edx, [ebp - 0x90]
add esp, 0x10
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x41de05
sub edx, ecx
lea eax, [ebp - 0x90]
push edx
push eax
lea ecx, [ebx + 0x48]
call fcn.004028a0
lea eax, [ebp - 0x1500]
mov dword [ebp - 0x1500], 0xf0
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x150c]
push eax
push 0
push str.RecVidPidA
push dword [ebp - 0x14fc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41dfd9
lea ecx, [ebp - 0x180]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41de61
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x41de7f
xor eax, eax
jmp 0x41de9a
add esi, esi
mov eax, esi
call fcn.00425b70
mov eax, esp
lea ecx, [ebp - 0x180]
push 3
push esi
push ecx
push eax
call fcn.0040cf40
push eax
lea ecx, [ebp - 0x3f8]
call fcn.0040ad10
push 0
push 0x4a6080
lea ecx, [ebp - 0x3f8]
mov byte [ebp - 4], 0xc
call fcn.0041f8f0
mov esi, eax
lea ecx, [ebp - 0x3f8]
cmp esi, 0xffffffff
jne 0x41dee0
call fcn.00401810
lea ecx, [ebp - 0x410]
call fcn.00401810
xor bl, bl
jmp 0x41e01a
push esi
push 0
lea eax, [ebp - 0x470]
push eax
call fcn.00420000
push eax
lea ecx, [ebx + 0x60]
call fcn.0040bd00
lea ecx, [ebp - 0x470]
call fcn.00401810
push dword [ebp - 0x3e8]
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x3f8]
call fcn.00420000
push eax
lea ecx, [ebx + 0x78]
call fcn.0040bd00
lea ecx, [ebp - 0x488]
call fcn.00401810
cmp dword [ebx + 0x74], 0x10
lea eax, [ebx + 0x60]
jb 0x41df3f
mov eax, dword [ebx + 0x60]
push eax
push str._04s
lea eax, [ebp - 0x90]
push 0x7f
push eax
call fcn.0041b6f0
lea edx, [ebp - 0x90]
add esp, 0x10
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x41df60
sub edx, ecx
lea eax, [ebp - 0x90]
push edx
push eax
lea ecx, [ebx + 0x60]
call fcn.004028a0
cmp dword [ebx + 0x8c], 0x10
lea eax, [ebx + 0x78]
jb 0x41df88
mov eax, dword [ebx + 0x78]
push eax
push str._04s
lea eax, [ebp - 0x90]
push 0x7f
push eax
call fcn.0041b6f0
lea edx, [ebp - 0x90]
add esp, 0x10
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x41dfa8
sub edx, ecx
lea eax, [ebp - 0x90]
push edx
push eax
lea ecx, [ebx + 0x78]
call fcn.004028a0
lea ecx, [ebp - 0x3f8]
call fcn.00401810
lea ecx, [ebp - 0x410]
call fcn.00401810
jmp 0x41e002
push 0
lea ecx, [ebx + 0x60]
push 0x42b870
call fcn.004028a0
push 0
lea ecx, [ebx + 0x78]
push 0x42b870
call fcn.004028a0
lea ecx, [ebp - 0x410]
call fcn.00401810
push dword [ebp - 0x14fc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x1504]
call esi
mov bl, 1
lea ecx, [ebp - 0x3e0]
call fcn.00401810
lea ecx, [ebp - 0x3b0]
call fcn.00401810
lea ecx, [ebp - 0x4a0]
call fcn.00401810
lea ecx, [ebp - 0x428]
call fcn.00401810
jmp 0x41d76a
push edx
push ecx
call fcn.00425b14
add esp, 8
mov eax, dword [0x5254d4]
mov dword [ebp - 0x388], 0
mov dword [ebp - 0x384], 0xf
mov byte [ebp - 0x398], 0
sub eax, 1
mov dword [ebp - 4], 0xd
mov dword [0x5254d4], eax
jne 0x41e0be
xor eax, eax
mov ecx, 0x5254d8
xchg dword [ecx], eax
mov eax, 0x80000000
mov ecx, 0x5254dc
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x41e0be
cmp eax, 0x80000000
jle 0x41e0be
lock bts dword [ecx], 0x1e
jb 0x41e0be
call fcn.0041fbb0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, bl
lea esp, [ebp - 0x1534]
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.00425b22
mov esp, ebp
pop ebp
ret