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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0xc]
push ebx
mov dword [ebp - 0xc], ebx
call fcn.0041e451
push eax
push ebx
mov esi, 0xf003f
push esi
push ebx
push ebx
push ebx
push 0x402660
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41df09
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.0041e451
push ebx
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push dword [edi + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41defa
call fcn.0040c7b5
mov byte [ebp - 1], al
test al, al
je 0x41ddb1
push dword [edi + 8]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push dword [edi + 4]
push 0x4026b4
push eax
call fcn.0041e47d
add esp, 0x10
test eax, eax
jns 0x41dda3
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x10], ebx
je 0x41dda9
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
jmp 0x41dda9
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor ecx, ecx
lea edx, [ebp - 0x14]
inc ecx
jmp 0x41ddc5
push 0xffffffffffffffff
mov edx, 0x401f94
lea ecx, [ebp - 0x1c]
call fcn.0040fae3
push 2
mov edx, eax
pop ecx
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov dword [edx], ebx
test cl, 2
je 0x41dde8
and ecx, 0xfffffffd
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x1c], ebx
je 0x41dde8
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x10]
test cl, 1
je 0x41ddfb
cmp dword [ebp - 0x14], ebx
je 0x41ddfb
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov esi, dword [ebp - 8]
test esi, esi
je 0x41defa
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x41de09
sub esi, ecx
xor edx, edx
sar esi, 1
lea ecx, [ebp - 0x1c]
add esi, 3
push esi
call fcn.0040fae3
push dword [ebp - 8]
push dword [0x424ebc]
push 0x4026a8
push esi
mov esi, dword [ebp - 0x1c]
push esi
call fcn.004064f7
add esp, 0x14
test eax, eax
js 0x41dee0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41de4e
mov eax, dword [0x425970]
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 + 1]
test eax, eax
jne 0x41de72
mov eax, dword [0x424304]
push ecx
push esi
push 1
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x41dee0
cmp byte [ebp - 1], bl
je 0x41dede
mov ecx, edi
call fcn.0041e2a1
test al, al
je 0x41dee0
mov eax, dword [0x424e30]
lea edx, [ebp - 8]
push ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [0x424e3c]
push 1
mov dword [ebp - 0x14], eax
mov dword [0x424e3c], 2
call fcn.0040fed6
test al, al
jne 0x41dece
push ebx
push ebx
push dword [edi + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
jmp 0x41dee0
mov eax, dword [ebp - 0x1c]
mov dword [0x424e30], eax
mov eax, dword [ebp - 0x14]
mov dword [0x424e3c], eax
mov bl, 1
test esi, esi
je 0x41deeb
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
cmp dword [ebp - 8], 0
je 0x41defa
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
cmp dword [ebp - 0x18], 0
je 0x41df09
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x41df18
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret