Function at 0x41d980
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x55196b
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0x84c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x864]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x878]
mov edi, dword [esp + 0x874]
mov esi, dword [esp + 0x87c]
lea eax, [esp + 0x14]
push eax
xor ebp, ebp
push ebp
lea ecx, [esp + 0x20]
push ecx
push ebp
push ebx
push edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebp
call fcn.004b42b0
add esp, 0x18
cmp eax, ebp
jne 0x41da3b
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], 0x627470
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x870], ebp
call fcn.00420a50
test eax, eax
jne 0x41da42
lea ecx, [esp + 0x24]
mov dword [esp + 0x86c], 0xffffffff
call fcn.00420ae0
xor al, al
jmp 0x41dc5e
mov ebp, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
push ebp
lea ecx, [esp + 0x20]
push ecx
push 0
push ebx
push edi
call fcn.004b42b0
add esp, 0x18
test eax, eax
jne 0x41da27
test esi, esi
jne 0x41da8d
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
lea ecx, [esp + 0x24]
sete bl
mov dword [esp + 0x86c], 0xffffffff
call fcn.00420ae0
mov al, bl
jmp 0x41dc5e
lea ecx, [esp + 0x40]
call fcn.0041cb80
push 0
call fcn.005199c5
add esp, 4
mov ebx, eax
mov dword [esp + 0x3c], edx
call fcn.0051bc53
cdq
xor edx, dword [esp + 0x3c]
xor eax, ebx
push edx
push eax
lea ecx, [esp + 0x48]
call fcn.0041c0c0
push 0
mov ecx, esi
call fcn.00429a90
mov edx, dword [esi + 0x3c]
mov ebx, eax
lea eax, [ebx - 1]
cmp eax, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], edx
mov dword [esi + 0x3c], eax
jge 0x41db27
lea ecx, [ecx]
mov ecx, esi
call fcn.0041c100
test al, al
jne 0x41db27
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x44]
push eax
push ecx
push ebp
mov ecx, esi
call fcn.0042fc80
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push edx
push ebp
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
inc dword [esi + 0x3c]
cmp dword [esi + 0x3c], ebx
jl 0x41dae0
mov eax, dword [esp + 0x1c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41db30
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
mov ebx, eax
push ebx
push edx
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x40], ebx
call fcn.00519ff1
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov word [esp + ebx*2 + 0x6c], cx
dec eax
add esp, 0xc
mov ecx, esi
mov dword [esi + 0x3c], eax
call fcn.0041c100
test al, al
jne 0x41dc41
jmp 0x41db80
mov edx, dword [esp + 0x20]
cmp dword [esi + 0x3c], edx
jge 0x41dc35
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x44]
push eax
push ecx
push ebp
mov ecx, esi
call fcn.0042fc80
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edx
push ebp
push eax
push 0
lea ecx, [esp + 0x70]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
lea edx, [esp + 0x60]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [ebx + ebx]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.0042fc80
mov ecx, ebx
test ebx, ebx
je 0x41dc0b
movzx eax, word [esp + ecx*2 + 0x5e]
dec ecx
movzx eax, al
cdq
mov ebx, 0x1a
idiv ebx
add edx, 0x41
mov word [esp + ecx*2 + 0x60], dx
test ecx, ecx
jne 0x41dbea
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push edx
push ebp
push 3
push 0
lea eax, [esp + 0x70]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc dword [esi + 0x3c]
mov ecx, esi
call fcn.0041c100
test al, al
je 0x41db80
jmp 0x41dc41
lea ecx, [esp + 0x60]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x24]
mov dword [esi + 0x3c], edx
mov dword [esp + 0x86c], 0xffffffff
call fcn.00420ae0
mov al, 1
mov ecx, dword [esp + 0x864]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x84c]
xor ecx, esp
call fcn.0051916c
add esp, 0x85c
ret