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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x27c
mov edx, dword [esp + 0x294]
mov esi, dword [esp + 0x290]
lea ebx, [esp + 0x6c]
mov eax, dword [esp + 0x298]
cmp byte [edx], 0
je 0x4108b5
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x204
mov dword [esp], ebx
call fcn.004127a8
jmp 0x4108c9
mov dword [esp + 8], 0x204
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00412548
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
push ecx
mov dl, 1
push ecx
je 0x4109cb
lea eax, [esp + 0x24]
mov dword [esp + 0xc], 0x108
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0x10], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x410911
cmp eax, 2
jmp 0x410981
lea ebp, [esp + 0x28]
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebp
mov eax, dword [esp + 0x24]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
sub esp, 0x20
test eax, eax
je 0x410986
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.ADVAPI32.DLL_RegDeleteKeyA
push edx
push edx
test eax, eax
sete dl
jmp 0x4109cb
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0041086b
test al, al
je 0x410964
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebp
jmp 0x410945
add esp, 0x27c
mov al, dl
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4109d8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
lea eax, [esp + 0x28]
mov dword [esp + 0xc], 0x108
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd0]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
xor edx, edx
sub esp, 0x14
test eax, eax
jne 0x410acd
lea edi, [esp + 0x2c]
lea esi, [esp + 0x30]
mov dword [esp + 0x2c], 0x40
xor ebx, ebx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
sub esp, 0x20
cmp eax, 0x103
je 0x410abe
lea ebp, [esp + 0x70]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x4243a6
mov dword [esp + 4], 0x40
inc ebx
mov dword [esp], ebp
call fcn.004127a8
test eax, eax
je 0x410ab1
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00412458
mov dword [esp + 0x2c], 0x40
jmp 0x410a33
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push eax
mov dl, 1
add esp, 0xbc
mov al, dl
pop ebx
pop esi
pop edi
pop ebp
ret