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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x914
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
push edi
je 0x40b56b
mov ebx, dword [esp + 0x92c]
or ebx, ebx
je 0x40b56b
cmp byte [ebx], 0
je 0x40b56b
push ebx
pop edi
or ecx, 0xffffffff
sub eax, eax
lea edx, [esp + 0x524]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
push edx
pop edi
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 + 0x528]
push ecx
call fcn.0041bb00
sub edi, edi
add esp, 8
cmp eax, edi
jne 0x40b3cb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x914
ret
mov ecx, dword [esp + 0x928]
mov byte [eax], 0
inc eax
lea edx, [esp + 0x10]
mov dword [esp + 0x18], eax
push edx
push 0x2001f
lea eax, [esp + 0x52c]
push edi
push eax
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or eax, eax
jne 0x40b56b
sub esi, esi
lea edx, [esp + 0x1c]
mov eax, edi
push 0x105
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
inc edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
or eax, eax
jne 0x40b43c
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.0041bfb0
push eax
pop esi
add esp, 8
neg esi
sbb esi, esi
inc esi
je 0x40b402
jmp 0x40b444
test esi, esi
je 0x40b55b
mov ecx, dword [esp + 0x928]
lea eax, [esp + 0x14]
push eax
push 0x2001f
push 0
push ebx
push ecx
pushfd
xor ebp, ebp
inc ebp
popfd
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or eax, eax
jne 0x40b543
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push 0x105
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40b538
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x124]
mov eax, ecx
push edi
pop esi
shr ecx, 2
push edx
pop edi
lea edx, [esp + 0x124]
rep movsd dword es:[edi], dword [esi]
push eax
pop ecx
sub eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42b380
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
push ebp
pop ecx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push ebp
pop ecx
lea edx, [esp + 0x124]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
push ecx
pop ebp
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push ebp
pop ecx
lea eax, [esp + 0x124]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x92c]
push ecx
call fcn.0040b350
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40b474
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x40b560
sub ebp, ebp
jmp 0x40b560
mov ebp, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push ebp
pop eax
pop esi
pop ebp
pop ebx
add esp, 0x914
ret