Function at 0x412670
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ea9b
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x43a204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 0x2c]
lea ecx, [ebp - 0x111]
sub edx, dword [edi + 0x28]
mov eax, 0x66666667
imul edx
push ecx
sar edx, 3
lea ecx, [ebp - 0x130]
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.00402850
mov ecx, dword [edi + 0x2c]
lea eax, [ebp - 0x111]
sub ecx, dword [edi + 0x28]
push eax
mov eax, 0x66666667
mov dword [ebp - 4], 0
imul ecx
lea ecx, [ebp - 0x124]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.004028b0
mov eax, dword [edi + 0x28]
xor esi, esi
mov ecx, dword [edi + 0x2c]
mov ebx, dword [ebp - 0x130]
sub ecx, eax
mov dword [ebp - 0x118], eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x124]
je 0x41277d
xor ebx, ebx
nop dword [eax]
mov eax, dword [edi + 0x28]
lea ebx, [ebx + 0x14]
mov ecx, dword [ebp - 0x130]
mov al, byte [ebx + eax - 0x14]
mov byte [ecx + esi], al
mov eax, dword [edi + 0x28]
mov eax, dword [ebx + eax - 0x10]
mov dword [edx + esi*4], eax
inc esi
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
sub ecx, eax
mov dword [ebp - 0x118], eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x124]
cmp esi, eax
jb 0x412730
mov ebx, dword [ebp - 0x130]
mov ecx, dword [edi + 0x2c]
mov eax, 0x66666667
sub ecx, dword [ebp - 0x118]
push dword [edi + 0x34]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
lea eax, [ebp - 0x110]
push str.visible_ux_d
push eax
call fcn.004100f0
mov eax, dword [ebp - 0x12c]
add esp, 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, ebx
push eax
push ebx
push 3
push 0
lea eax, [ebp - 0x110]
push eax
push dword [edi + 0xc4]
call esi
mov ecx, dword [edi + 0x2c]
mov eax, 0x66666667
sub ecx, dword [edi + 0x28]
push dword [edi + 0x34]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
lea eax, [ebp - 0x110]
push str.offset_ux_d
push eax
call fcn.004100f0
mov ecx, dword [ebp - 0x124]
add esp, 0x10
mov eax, dword [ebp - 0x120]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
push 3
push 0
lea eax, [ebp - 0x110]
push eax
push dword [edi + 0xc4]
call esi
mov edx, dword [ebp - 0x124]
test edx, edx
je 0x412860
mov ecx, dword [ebp - 0x11c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x412856
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4128ac
push ecx
push edx
call fcn.004135cf
add esp, 8
test ebx, ebx
je 0x412890
mov ecx, dword [ebp - 0x128]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x412886
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4128b1
push ecx
push ebx
call fcn.004135cf
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413a6c
mov esp, ebp
pop ebp
ret
call fcn.00417569
call fcn.00417569
int3