Function at 0x41fda0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f129
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x57a438]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x24], edi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], eax
call fcn.00426ed0
sub esp, 8
mov dword [ebp - 4], 0
mov esi, dword [eax]
lea ecx, [ebp - 0xd0]
call fcn.004093f0
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 1
push str.delet_key:
push eax
call fcn.00407550
mov ebx, 0x55fc20
test edi, edi
mov eax, ebx
cmovne eax, edi
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xd0]
push eax
call fcn.00407550
lea eax, [ebp - 0xd0]
push 0x560dd8
push eax
call fcn.00407550
mov eax, dword [ebp - 0x18]
test eax, eax
cmovne ebx, eax
lea eax, [ebp - 0xd0]
push ebx
push eax
mov dword [ebp - 0x20], ebx
call fcn.00407550
mov eax, dword [esi]
lea ecx, [ebp - 0xd0]
add esp, 0x20
push ecx
mov ecx, esi
call dword [eax + 0xc]
lea ecx, [ebp - 0xd0]
call fcn.0040a3e0
mov dword [ebp - 4], 2
or edi, 0xffffffff
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x41fe9e
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41fe9e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x41fe9e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push ecx
or eax, 0x1000b
mov dword [ebp - 4], 0xffffffff
push eax
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x14], 0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x41ff77
mov eax, dword [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2c]
call fcn.00426ed0
sub esp, 8
mov dword [ebp - 4], 3
mov esi, dword [eax]
lea ecx, [ebp - 0xd0]
call fcn.004093f0
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 4
push str.delet_key_ok:
push eax
call fcn.00407550
push dword [ebp - 0x1c]
lea eax, [ebp - 0xd0]
push eax
call fcn.00407550
lea eax, [ebp - 0xd0]
push 0x560dd8
push eax
call fcn.00407550
push dword [ebp - 0x20]
lea eax, [ebp - 0xd0]
push eax
call fcn.00407550
mov eax, dword [esi]
lea ecx, [ebp - 0xd0]
add esp, 0x20
push ecx
mov ecx, esi
call dword [eax + 0xc]
lea ecx, [ebp - 0xd0]
call fcn.0040a3e0
mov dword [ebp - 4], 5
mov esi, dword [ebp - 0x28]
jmp 0x42001d
lea ecx, [ebp - 0x34]
call fcn.00426ed0
sub esp, 8
mov dword [ebp - 4], 6
mov esi, dword [eax]
lea ecx, [ebp - 0x168]
call fcn.004093f0
lea eax, [ebp - 0x168]
mov byte [ebp - 4], 7
push str.delet_key:
push eax
call fcn.00407550
push dword [ebp - 0x1c]
lea eax, [ebp - 0x168]
push eax
call fcn.00407550
lea eax, [ebp - 0x168]
push 0x560dd8
push eax
call fcn.00407550
push dword [ebp - 0x20]
lea eax, [ebp - 0x168]
push eax
call fcn.00407550
lea eax, [ebp - 0x168]
push 0x560dd8
push eax
call fcn.00407550
add esp, 0x28
lea ecx, [ebp - 0x168]
push ebx
call fcn.00425df0
mov eax, dword [esi]
lea ecx, [ebp - 0x168]
push ecx
mov ecx, esi
call dword [eax + 0xc]
lea ecx, [ebp - 0x168]
call fcn.0040a3e0
mov dword [ebp - 4], 8
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x42003f
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x42003f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x42003f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac694
mov esp, ebp
pop ebp
ret