Function at 0x41d578
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x440c30
call fcn.004207b3
mov eax, ecx
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov dword [ebp - 0x18], ebx
push 2
pop esi
cmp dword [eax + 0x44], ebx
jbe 0x41d5b8
push ebx
lea ecx, [eax + 0x40]
call fcn.0041da9d
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00406893
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x10]
inc ebx
jmp 0x41d5d1
push 0x44ca18
lea ecx, [ebp - 0x2c]
call fcn.00402b0d
mov dword [ebp - 4], 1
mov ebx, esi
mov esi, dword [ebp - 0x10]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x18], ebx
call fcn.00406893
mov dword [ebp - 0x30], eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x34], edi
push 2
pop eax
mov dword [ebp - 4], eax
test al, bl
je 0x41d5ff
mov ecx, dword [ebp - 0x2c]
and ebx, 0xfffffffd
lea ecx, [ecx - 0x10]
call fcn.00401745
mov byte [ebp - 4], 4
test bl, 1
je 0x41d610
lea ecx, [esi - 0x10]
call fcn.00401745
xor ebx, ebx
cmp dword [edi - 0xc], ebx
je 0x41d8c4
push ebx
mov edx, 0x44fdf8
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x28]
call fcn.0041b686
pop ecx
lea ecx, [ebp - 0x14]
push ecx
push 0x2001f
push ebx
push dword [eax]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x28]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00401745
test esi, esi
jne 0x41d8c4
push ebx
mov edx, 0x44fe6c
lea ecx, [ebp - 0x28]
call fcn.0041b686
pop ecx
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
lea eax, [ecx*2 + 2]
push eax
push edi
xor edi, edi
inc edi
push edi
push ebx
push edx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
mov dword [ebp - 0x20], ebx
call fcn.00401745
mov esi, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x18], eax
cmp dword [esi + 0x44], edi
jbe 0x41d7cd
mov ebx, dword [ebp - 0x10]
lea ecx, [esi + 0x40]
push eax
call fcn.0041da9d
lea ecx, [esi + 0x40]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
inc eax
add ebx, eax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [esi + 0x44]
jb 0x41d6b7
mov dword [ebp - 0x10], ebx
test ebx, ebx
mov ebx, dword [ebp - 0x20]
jle 0x41d7cd
mov eax, dword [ebp - 0x10]
inc eax
push 2
pop edx
lea ecx, [eax + eax]
mov dword [ebp - 0x28], ecx
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420696
mov dword [ebp - 0x24], eax
pop ecx
test eax, eax
jne 0x41d70f
xor bl, bl
jmp 0x41d7cd
push dword [ebp - 0x28]
push 0
push eax
call fcn.00421f80
and dword [ebp - 0x18], 0
add esp, 0xc
mov eax, edi
mov dword [ebp - 0x10], edi
cmp dword [esi + 0x44], edi
jbe 0x41d788
mov ebx, esi
push eax
lea ecx, [ebx + 0x40]
call fcn.0041da9d
push dword [ebp - 0x10]
lea ecx, [ebx + 0x40]
mov eax, dword [eax]
mov esi, dword [eax - 0xc]
call fcn.0041da9d
lea ecx, [esi + esi]
mov esi, dword [ebp - 0x24]
push ecx
push dword [eax]
mov eax, dword [ebp - 0x18]
lea eax, [esi + eax*2]
push eax
call fcn.00422150
add esp, 0xc
lea ecx, [ebx + 0x40]
push dword [ebp - 0x10]
call fcn.0041da9d
mov ecx, dword [ebp - 0x18]
inc ecx
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
add ecx, eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
cmp eax, dword [ebx + 0x44]
jb 0x41d72d
mov ebx, dword [ebp - 0x20]
jmp 0x41d78b
mov esi, dword [ebp - 0x24]
push 0
mov edx, 0x44fe90
lea ecx, [ebp - 0x24]
call fcn.0041b686
pop ecx
push dword [ebp - 0x28]
push esi
push 7
push 0
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x24]
neg eax
sbb al, al
inc al
lea ecx, [ecx - 0x10]
and bl, al
call fcn.00401745
push 2
pop eax
push eax
push esi
call fcn.00420768
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x41d8c4
push 0
mov edx, 0x44ff98
lea ecx, [ebp - 0x28]
call fcn.0041b686
pop ecx
lea ecx, [ebp - 0x10]
push ecx
push 0x2001f
push 0
push dword [eax]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x28]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00401745
test esi, esi
jne 0x41d851
and dword [ebp - 0x28], esi
lea ecx, [ebp - 0x24]
push esi
mov edx, 0x450034
call fcn.0041b686
pop ecx
push 4
lea ecx, [ebp - 0x28]
push ecx
push 4
push esi
push dword [eax]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00401745
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
mov edx, 0x450050
lea ecx, [ebp - 0x28]
call fcn.0041b686
pop ecx
lea ecx, [ebp - 0x10]
push ecx
push 0x2001f
push 0
push dword [eax]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x28]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00401745
test esi, esi
jne 0x41d8c4
push esi
mov edx, 0x4500dc
mov dword [ebp - 0x28], edi
lea ecx, [ebp - 0x24]
call fcn.0041b686
pop ecx
push 4
lea ecx, [ebp - 0x28]
push ecx
push 4
push esi
push dword [eax]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00401745
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x30]
call fcn.00401745
mov al, bl
call fcn.0042077c
ret