Function at 0x40b200
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x411e99
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb38
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor ebx, ebx
push 0x41abfc
lea ecx, [esp + 0x28]
mov dword [esp + 0xb54], ebx
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x13d]
mov byte [esp + 0x13c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0xb50], 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x13c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, ebp
call fcn.0040b690
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x1bd]
mov byte [esp + 0x1bc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x41abcc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1bc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], reloc.OLEAUT32.dll_SysReAllocString
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1bc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b640
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x100
lea edi, [esp + 0x748]
push 0x41aba4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x440]
mov dword [esp + 0x30], ebx
push eax
mov dword [esp + 0x20], 0x104
call esi
lea ecx, [esp + 0x644]
push 0x41ab7c
push ecx
call esi
lea edx, [esp + 0x540]
push 0x41ab54
push edx
call esi
mov edx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push ebx
lea ecx, [esp + 0x48]
push eax
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x40b635
jmp 0x40b381
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp eax, ebx
jne 0x40b5ff
lea eax, [esp + 0x23c]
push 0x41ab3c
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x23c]
push ecx
push edx
call esi
lea eax, [esp + 0x23c]
push 0x41ab20
push eax
call esi
lea ecx, [esp + 0x748]
push 0x400
push ecx
push 0x41c354
lea edx, [esp + 0x248]
push 0x41c354
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, ebp
call fcn.0040c360
lea esi, [esp + 0x38]
lea eax, [esp + 0x43c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b416
cmp cl, bl
je 0x40b412
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b416
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40b3f2
xor eax, eax
jmp 0x40b41b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40b5ff
lea esi, [esp + 0x38]
lea eax, [esp + 0x644]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b452
cmp cl, bl
je 0x40b44e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b452
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40b42e
xor eax, eax
jmp 0x40b457
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40b5ff
lea esi, [esp + 0x38]
lea eax, [esp + 0x540]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b48e
cmp cl, bl
je 0x40b48a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b48e
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40b46a
xor eax, eax
jmp 0x40b493
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40b5ff
lea eax, [esp + 0x38]
lea ecx, [esp + 0x748]
push eax
push ecx
mov ecx, ebp
call fcn.0040ba00
xor esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x1c]
push edx
push 0xf003f
lea eax, [esp + 0x40]
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x30], ebx
call edi
cmp eax, ebx
jne 0x40b5dc
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x28]
mov byte [esp + 0xb50], 3
push ecx
push 0x2001f
push ebx
push 0x41c354
push esi
mov dword [esp + 0x3c], ebx
call edi
cmp eax, ebx
jne 0x40b51e
lea ecx, [esp + 0x10]
call fcn.0040ef90
mov ecx, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0x10], ecx
je 0x40b534
lea ecx, [esp + 0x10]
mov byte [esp + 0xb50], 2
call fcn.0040ef90
jmp 0x40b5cf
lea edx, [esp + 0x30]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edx
push ebx
push ebx
lea eax, [esp + 0x2c]
push ebx
lea edx, [esp + 0x34c]
push eax
push edx
push ebx
push ecx
mov dword [esp + 0x40], 0x100
call edi
test eax, eax
jne 0x40b59d
lea eax, [esp + 0x33c]
lea ecx, [esp + 0x10]
push eax
call fcn.0040f000
cmp eax, ebx
jne 0x40b51e
lea ecx, [esp + 0x30]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea eax, [esp + 0x34c]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x40], 0x100
call edi
test eax, eax
je 0x40b55f
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40b5b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
push 0x41c354
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40b5cf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
cmp esi, ebx
je 0x40b5dc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp esi, ebx
mov byte [esp + 0xb50], 1
je 0x40b5ff
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x24]
push ebx
lea edx, [esp + 0x48]
inc eax
push ecx
push edx
mov dword [esp + 0x44], eax
push eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], 0x104
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x40b37b
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x24]
mov byte [esp + 0xb50], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xb58]
mov dword [esp + 0xb50], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xb48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb44
ret 4