Function at 0x41daf8
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x49d084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jne 0x41db22
mov edi, 0x80004003
jmp 0x41de8d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
lea eax, [ebp - 0x814]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push 0x403030
push SysReAllocString
call esi
cmp eax, ebx
je 0x41db5d
jle 0x41db56
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x41de8c
push 0x200
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, ebx
jne 0x41db7b
xor edi, edi
jmp 0x41de80
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ebx
lea eax, [ebp - 0x808]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x814]
call esi
cmp eax, ebx
je 0x41dbc5
jle 0x41dbbe
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x41de80
lea edx, [edi + 0x14]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x41dbcd
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
cmp eax, 0x200
jbe 0x41dbf0
mov edi, 0x80070057
jmp 0x41de80
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
push edx
push 1
push ebx
push 0x4031d8
push dword [ebp - 0x808]
call esi
cmp eax, ebx
je 0x41dc17
jg 0x41dea8
jmp 0x41deb2
lea edx, [edi + 0x214]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x80c], ecx
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x41dc28
sub eax, dword [ebp - 0x80c]
sar eax, 1
lea eax, [eax + eax + 2]
cmp eax, 0x200
ja 0x41de9f
push eax
push edx
push 1
push ebx
push 0x4031c4
push dword [ebp - 0x808]
call esi
cmp eax, ebx
jne 0x41dc0c
push 4
pop ebx
push ebx
lea eax, [edi + 0x414]
push eax
push ebx
push 0
push 0x4031a8
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x41dc0c
push ebx
lea eax, [edi + 0x418]
push eax
push ebx
push 0
push 0x40318c
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x41dc0c
push ebx
lea eax, [edi + 0x10]
push eax
push ebx
push 0
push 0x403180
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x41dc0c
push ebx
lea eax, [edi + 0x41c]
push eax
push ebx
push 0
push 0x403158
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x41dc0c
push ebx
lea eax, [edi + 0x420]
push eax
push ebx
push 0
push 0x403130
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x41dc0c
push ebx
lea eax, [edi + 0x424]
push eax
push ebx
push 0
push 0x403104
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x41dc0c
push ebx
lea eax, [edi + 0x428]
push eax
push ebx
push 0
push 0x4030d8
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x41dc0c
push ebx
lea eax, [edi + 0x42c]
push eax
push ebx
push 0
push 0x4030bc
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x41dc0c
push ebx
lea eax, [edi + 0x430]
push eax
push ebx
push 0
push 0x403098
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x41dc0c
and dword [ebp - 0x810], eax
lea ebx, [edi + 0x430]
cmp dword [ebx], eax
jbe 0x41de30
add edi, 0x434
mov dword [ebp - 0x80c], edi
push dword [ebp - 0x810]
lea eax, [ebp - 0x804]
push 0x403078
push 0x400
push eax
call fcn.0041da96
mov edi, eax
add esp, 0x10
test edi, edi
jl 0x41de8c
push 0x200
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x80c]
call dword [sym.imp.ole32.dll_StringFromGUID2]
xor edi, edi
cmp eax, edi
je 0x41de74
add eax, eax
cmp eax, 0x400
ja 0x41de9f
push eax
lea eax, [ebp - 0x404]
push eax
push 1
push edi
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x41dea6
inc dword [ebp - 0x810]
mov eax, dword [ebp - 0x810]
add dword [ebp - 0x80c], 0x10
cmp eax, dword [ebx]
jb 0x41dd9b
mov eax, dword [0x4a867c]
test eax, eax
mov dword [ebp - 0x80c], eax
je 0x41de72
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x80c]
push eax
mov ecx, 0x4a867c
call fcn.0041da6c
test eax, eax
je 0x41de69
mov eax, dword [ebp - 0x810]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp - 0x80c], 0
jne 0x41de3f
xor edi, edi
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0041d1c7
leave
ret 4
mov edi, 0x80070057
jmp 0x41de74
jle 0x41deb2
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x41de74