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

Disassembly:
push 0xffffffffffffffff
push 0x411ec6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x848
push ebx
push ebp
mov edx, dword [esp + 0x860]
push esi
mov dword [esp + 0x20], ecx
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x458]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x86c]
lea eax, [esp + 0x20]
push eax
push ecx
push edx
mov dword [esp + 0x38], 0x41ad60
mov dword [esp + 0x3c], 0x41ad38
mov dword [esp + 0x40], 0x41ad10
mov dword [esp + 0x44], 0x41ace8
mov dword [esp + 0x48], 0x41acc0
mov dword [esp + 0x4c], 0x41ab54
mov dword [esp + 0x50], 0x41ac98
mov dword [esp + 0x54], 0x41ac70
mov dword [esp + 0x58], 0x41ac48
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
cmp esi, ebx
jne 0x40b9d2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x58]
push 0x100
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
je 0x40b9ce
cmp eax, ebx
jne 0x40b9df
mov eax, dword [esp + 0x86c]
lea ecx, [esp + 0x158]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x158]
push 0x419630
push edx
call esi
lea eax, [esp + 0x58]
lea ecx, [esp + 0x158]
push eax
push ecx
call esi
mov eax, dword [esp + 0x868]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x158]
push edx
push eax
call fcn.0040b690
test eax, eax
jne 0x40b9c5
mov ebp, 1
lea esi, [esp + 0x2c]
mov edi, 9
mov ecx, dword [esi]
lea edx, [esp + 0x58]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40b7e0
xor ebp, ebp
add esi, 4
dec edi
jne 0x40b7cc
cmp ebp, 1
jne 0x40b9c5
lea eax, [esp + 0x258]
push 0x41ab3c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x58]
lea edx, [esp + 0x258]
push ecx
push edx
call esi
lea eax, [esp + 0x258]
push 0x41ab20
push eax
call esi
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x458]
push 0x400
push ecx
push 0x41c354
lea edx, [esp + 0x264]
push 0x41c354
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.0040c360
lea eax, [esp + 0x58]
lea ecx, [esp + 0x458]
push eax
push ecx
mov ecx, esi
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 + 0x60]
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x874], ebx
mov dword [esp + 0x30], ebx
call edi
cmp eax, ebx
jne 0x40b999
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x860], 1
push ecx
push 0x2001f
push ebx
push 0x41c354
push esi
mov dword [esp + 0x3c], ebx
call edi
cmp eax, ebx
jne 0x40b8df
lea ecx, [esp + 0x10]
call fcn.0040ef90
mov ecx, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0x10], ecx
je 0x40b8f4
lea ecx, [esp + 0x10]
mov byte [esp + 0x860], bl
call fcn.0040ef90
jmp 0x40b98c
lea edx, [esp + 0x50]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edx
push ebx
push ebx
lea eax, [esp + 0x24]
push ebx
lea edx, [esp + 0x368]
push eax
push edx
mov ebp, 0x100
push ebx
push ecx
mov dword [esp + 0x38], ebp
call edi
test eax, eax
jne 0x40b95a
lea eax, [esp + 0x358]
lea ecx, [esp + 0x10]
push eax
call fcn.0040f000
cmp eax, ebx
jne 0x40b8df
lea ecx, [esp + 0x50]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea eax, [esp + 0x368]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x38], ebp
call edi
test eax, eax
je 0x40b920
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40b96d
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 0x40b98c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
cmp esi, ebx
je 0x40b999
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov eax, dword [esp + 0x868]
lea edx, [esp + 0x158]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp esi, ebx
mov dword [esp + 0x860], 0xffffffff
je 0x40b9c5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0x14]
jmp 0x40b736
xor eax, eax
jmp 0x40b9df
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x858]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x854
ret 8