Function at 0x41b0d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x489836
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x4bc7b8]
xor eax, esp
mov dword [esp + 0x640], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bc7b8]
xor eax, esp
push eax
lea eax, [esp + 0x658]
mov dword fs:[0], eax
xor ebx, ebx
push 0x1fe
lea eax, [esp + 0x4a]
push ebx
push eax
mov word [esp + 0x50], bx
call fcn.0046adc0
add esp, 0xc
push 0x206
lea ecx, [esp + 0x452]
push ebx
push ecx
mov word [esp + 0x458], bx
call fcn.0046adc0
add esp, 0xc
push 0x206
lea edx, [esp + 0x24a]
push ebx
push edx
mov word [esp + 0x250], bx
call fcn.0046adc0
add esp, 0xc
push 0xa
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], 1
mov dword [esp + 0x1c], ebx
call fcn.00451be2
mov dword [esp + 0x660], ebx
call fcn.004277e0
lea edx, [esp + 0x28]
mov ecx, str.PRODUCT_VIDPID
call fcn.004289c0
xor ebp, ebp
cmp dword [esp + 0x34], ebx
jle 0x41b273
mov edi, edi
push ebp
lea ecx, [esp + 0x2c]
call fcn.00451b7e
cmp eax, ebx
je 0x41b4b3
mov esi, dword [eax + 8]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
call edx
cmp dword [esi + 0xc], ebx
lea ecx, [esi + 0xc]
jl 0x41b1db
cmp eax, dword [esi]
jne 0x41b1db
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x41b216
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebx
je 0x41b4b8
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00467474
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x660], 1
cmp dword [esi - 4], 1
jle 0x41b23c
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x20]
call fcn.00402280
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.0041adb0
lea eax, [esi - 0x10]
mov byte [esp + 0x660], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b266
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 1
cmp ebp, dword [esp + 0x34]
jl 0x41b1a0
push str.SYSTEMCurrentControlSetEnumUSBSTOR
lea ecx, [esp + 0x450]
push 0x104
push ecx
call fcn.00468098
add esp, 0xc
lea ecx, [esp + 0x44c]
call fcn.00432090
lea edx, [esp + 0x14]
push edx
push 0xf003f
push ebx
lea eax, [esp + 0x458]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor esi, esi
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x58]
push edx
push esi
push eax
mov dword [esp + 0x38], 0x100
call ebp
cmp eax, ebx
jne 0x41b3ef
lea eax, [esp + 0x44]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41b2f0
sub eax, edx
sar eax, 1
je 0x41b317
lea ecx, [esp + 0x44]
push str.Easy_Install
push ecx
call fcn.004677e7
add esp, 8
cmp eax, ebx
jne 0x41b34f
lea eax, [esp + 0x44]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41b320
sub eax, edx
sar eax, 1
je 0x41b3e0
lea edx, [esp + 0x44]
push str.Smart_Install
push edx
call fcn.004677e7
add esp, 8
cmp eax, ebx
je 0x41b3e0
lea eax, [esp + 0x44]
push eax
push str.SYSTEMCurrentControlSetEnumUSBSTOR
push 0x498c0c
lea ecx, [esp + 0x250]
push 0x104
push ecx
call fcn.00468098
add esp, 0x14
lea edx, [esp + 0x244]
push edx
push str.Found_key__s
call fcn.00426a70
mov edi, eax
call fcn.00426f90
add esp, 8
lea eax, [esp + 0x244]
push eax
push str.CReg::DeleteSecureKeyFromHKLM__s_
call fcn.00426a70
mov edi, eax
call fcn.00426f90
add esp, 8
lea ecx, [esp + 0x244]
call fcn.00432090
lea ecx, [esp + 0x244]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2b]
call fcn.00431e60
lea edx, [esp + 0x244]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add esi, 1
cmp esi, 0x3e8
jb 0x41b2bf
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
push str.SOFTWAREHP_
lea ecx, [esp + 0x450]
push 0x104
push ecx
call fcn.00468098
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0xf003f
push ebx
lea eax, [esp + 0x458]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x58]
push edx
push ebx
push eax
mov dword [esp + 0x38], 0x100
call ebp
test eax, eax
jne 0x41b45a
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x14]
push ecx
call esi
cmp dword [esp + 0x24], ebx
je 0x41b477
push str.SOFTWAREHP_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea ecx, [esp + 0x28]
mov dword [esp + 0x660], 0xffffffff
call fcn.00451dd5
mov ecx, dword [esp + 0x658]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x640]
xor ecx, esp
call fcn.004677d8
add esp, 0x650
ret
jmp fcn.0045220a
jmp fcn.00402300