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

Disassembly:
sub esp, 0x420
mov eax, dword [esp + 0x428]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
push 0x104
cmp eax, ebx
jne 0x408e9f
push str.SoftwareDynamoRIO
lea eax, [esp + 0x230]
push eax
jmp 0x408ea8
push eax
lea ecx, [esp + 0x230]
push ecx
call fcn.004331a6
lea edx, [esp + 0x234]
add esp, 0xc
push edx
call fcn.004081b0
mov esi, dword [esp + 0x438]
add esp, 4
cmp esi, ebx
jne 0x408ed0
mov esi, 0x80000002
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004053c0
or eax, 0x2001f
push eax
push ebx
push ebx
push ebx
lea ecx, [esp + 0x244]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x4090f0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebx
push edx
mov dword [esp + 0x34], 0x104
call ebp
mov esi, eax
cmp esi, 0x103
je 0x408fc6
test esi, esi
jne 0x4090f0
mov eax, dword [esp + 0x43c]
test eax, eax
je 0x408f6f
mov esi, dword [eax + 4]
test esi, esi
je 0x408f6f
mov edi, edi
mov eax, dword [esi + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00436337
add esp, 8
test eax, eax
je 0x409083
mov esi, dword [esi]
test esi, esi
jne 0x408f50
xor edi, edi
mov eax, dword [esp + 0x10]
push edi
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00408e70
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4090f0
test edi, edi
je 0x408f93
inc ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
push ebx
push ecx
mov dword [esp + 0x34], 0x104
call ebp
mov esi, eax
cmp esi, 0x103
jne 0x408f34
xor esi, esi
cmp dword [esp + 0x43c], esi
je 0x4090b9
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor edi, edi
push edi
push edi
push edi
push edi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
push edi
mov ebp, 0x104
push ecx
mov dword [esp + 0x34], ebp
call ebx
mov esi, eax
cmp esi, 0x103
je 0x4090b7
lea ebx, [ebx]
test esi, esi
jne 0x4090f0
mov edx, dword [esp + 0x43c]
mov esi, dword [edx + 0xc]
test esi, esi
je 0x409041
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00436337
add esp, 8
test eax, eax
je 0x40908a
mov esi, dword [esi]
test esi, esi
jne 0x409026
mov edx, dword [esp + 0x43c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004082c0
add esp, 8
test eax, eax
je 0x40906b
lea ecx, [esp + 0x20]
push ecx
call fcn.00408ac0
add esp, 4
test eax, eax
jne 0x40908a
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
jne 0x4090f0
jmp 0x40908b
mov edi, esi
jmp 0x408f71
inc edi
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x34], ebp
call ebx
mov esi, eax
cmp esi, 0x103
jne 0x409010
xor esi, esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x43c], 0
mov dword [esp + 0x10], 0
jne 0x4090ff
mov edx, dword [esp + 0x438]
mov eax, dword [esp + 0x434]
push edx
push eax
call fcn.00405410
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4090ff
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x420
ret