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

Disassembly:
push 0xffffffffffffffff
push 0x4a8e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push edi
push ecx
mov dword [esp + 0x40], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x43204f
lea eax, [edi - 0x10]
mov byte [esp + 0x2c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x432043
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
jmp 0x432244
mov ebp, dword [esp + 0x3c]
cmp dword [ebp - 0xc], ebx
je 0x4320e2
mov eax, dword [esp + 0x10]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov esi, eax
call edi
mov edx, dword [esp + 0x34]
push edx
call edi
cmp esi, ebx
jne 0x43221f
mov edi, dword [esp + 0x38]
lea eax, [edi - 0x10]
mov byte [esp + 0x2c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4320a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4320ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
jne 0x4321e3
cmp dword [esp + 0x14], ebx
jbe 0x43219d
mov eax, dword [esp + 0x18]
lea ecx, [eax + eax + 2]
push ecx
call fcn.004955c1
mov edx, dword [esp + 0x1c]
add esp, 4
inc edx
push edx
mov esi, eax
mov eax, dword [esp + 0x14]
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, ebx
jne 0x4321f3
push ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], esp
mov edi, esp
push eax
call fcn.004015e0
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
mov byte [esp + 0x38], 2
call fcn.00404200
mov ecx, dword [esp + 0x18]
push ecx
mov byte [esp + 0x38], 1
call fcn.00431fe0
add esp, 0xc
cmp eax, ebx
push esi
je 0x43220c
call fcn.004955bc
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x3c]
add esp, 4
cmp eax, ebx
ja 0x4320e6
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x34]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebx
je 0x43208a
lea ecx, [esp + 0x38]
call fcn.004017e0
lea ecx, [esp + 0x3c]
call fcn.004017e0
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
jmp 0x432226
push esi
call fcn.004955bc
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
jmp 0x432226
call fcn.004955bc
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x2c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432241
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432263
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret