Function at 0x41fdf0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x4476f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x28], 0
mov esi, dword [esp + 0x34]
mov eax, dword [esi - 0xc]
test eax, eax
mov ebx, 1
je 0x41fe67
nop
lea ecx, [eax - 1]
test ecx, ecx
jl 0x41ffba
cmp ecx, eax
jg 0x41ffba
movzx ecx, word [esi + ecx*2]
cmp cx, 0x5c
jne 0x41fe67
lea ecx, [eax - 1]
lea eax, [esp + 0x34]
push eax
mov eax, ebx
call fcn.004150e0
mov esi, dword [esp + 0x34]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x41fe30
mov edx, dword [0x458a2c]
mov eax, dword [edx + 0xc]
mov ecx, 0x458a2c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x5c
push esi
mov byte [esp + 0x30], bl
call fcn.0042ed32
add esp, 8
test eax, eax
je 0x41ffc4
sub eax, esi
sar eax, 1
mov ebp, eax
js 0x41ffc4
lea ecx, [ebp + 1]
lea esi, [esp + 0x1c]
lea edx, [esp + 0x34]
call fcn.00420710
lea edi, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.00402e30
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fee3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x34]
call fcn.00415650
lea edi, [esp + 0x34]
mov byte [esp + 0x28], 3
call fcn.00402e30
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ff24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x34]
cmp dword [esi - 4], ebx
jle 0x41ff3f
mov ecx, dword [esi - 0xc]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00401c30
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x18]
push eax
push 0x10000
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41ffd9
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ff80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ffa4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0x80070057
call fcn.00401000
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x34]
lea edi, [esp + 0x14]
mov dword [esp + 0x18], ecx
call fcn.00402e30
mov edi, dword [esp + 0x14]
cmp dword [edi - 4], ebx
jle 0x41fff4
mov edx, dword [edi - 0xc]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00401c30
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebp, eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x30]
je 0x420013
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
test ebp, ebp
sete dl
lea eax, [edi - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
mov ebp, edx
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42003d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420061
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret