Function at 0x405080
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 0x4050af
push str.SoftwareDynamoRIO
lea eax, [esp + 0x230]
push eax
jmp 0x4050b8
push eax
lea ecx, [esp + 0x230]
push ecx
call fcn.004316e2
lea edx, [esp + 0x234]
add esp, 0xc
push edx
call fcn.004043c0
mov esi, dword [esp + 0x438]
add esp, 4
cmp esi, ebx
jne 0x4050e0
mov esi, 0x80000002
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004020a0
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 0x405300
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 0x4051d6
test esi, esi
jne 0x405300
mov eax, dword [esp + 0x43c]
test eax, eax
je 0x40517f
mov esi, dword [eax + 4]
test esi, esi
je 0x40517f
mov edi, edi
mov eax, dword [esi + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00434256
add esp, 8
test eax, eax
je 0x405293
mov esi, dword [esi]
test esi, esi
jne 0x405160
xor edi, edi
mov eax, dword [esp + 0x10]
push edi
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00405080
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x405300
test edi, edi
je 0x4051a3
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 0x405144
xor esi, esi
cmp dword [esp + 0x43c], esi
je 0x4052c9
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 0x4052c7
lea ebx, [ebx]
test esi, esi
jne 0x405300
mov edx, dword [esp + 0x43c]
mov esi, dword [edx + 0xc]
test esi, esi
je 0x405251
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00434256
add esp, 8
test eax, eax
je 0x40529a
mov esi, dword [esi]
test esi, esi
jne 0x405236
mov edx, dword [esp + 0x43c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004044d0
add esp, 8
test eax, eax
je 0x40527b
lea ecx, [esp + 0x20]
push ecx
call fcn.00404cd0
add esp, 4
test eax, eax
jne 0x40529a
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 0x405300
jmp 0x40529b
mov edi, esi
jmp 0x405181
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 0x405220
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 0x40530f
mov edx, dword [esp + 0x438]
mov eax, dword [esp + 0x434]
push edx
push eax
call fcn.004020f0
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40530f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x420
ret