Function at 0x41a400
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4541e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x440
mov eax, dword [0x46b3ac]
mov dword [esp + 0x438], eax
mov eax, dword [0x46c488]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x28c]
mov ecx, dword [eax + 0xc]
push ebx
mov ebx, dword [eax + 8]
cmp ebx, ecx
push esi
push edi
mov dword [esp + 0x24], ebx
je 0x41a7d3
mov esi, dword [ebx + 0x1c]
xor edx, edx
xor eax, eax
mov word [esp + 0x30], dx
mov ecx, 0x81
lea edi, [esp + 0x32]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [esp + 0x238], dx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x23a]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x30]
push edx
push str.ItemSelect
mov ecx, esi
mov dword [esp + 0x30], esi
stosw word es:[edi], ax
call fcn.0041de50
test eax, eax
je 0x41a7b3
lea eax, [esp + 0x30]
push str.true
push eax
call fcn.00431762
add esp, 8
test eax, eax
jne 0x41a7b3
lea ecx, [esp + 0x238]
push ecx
push str.ItemExeUser
mov ecx, esi
call fcn.0041de50
test eax, eax
je 0x41a7b3
mov esi, dword [esi + 4]
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
mov dword [esp + 0x20], eax
je 0x41a7b3
lea esp, [esp]
mov ebx, dword [eax]
mov edx, dword [0x46c488]
mov eax, dword [edx + 8]
mov esi, dword [eax + 0x278]
mov ecx, dword [esi - 0x10]
add eax, 0x278
mov eax, dword [ecx]
sub esi, 0x10
call dword [eax + 0x10]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea edx, [esi + 0xc]
jl 0x41a52c
cmp eax, dword [esi]
jne 0x41a52c
mov eax, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x41a560
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x41a7f4
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
mov dword [esp + 0x10], eax
lea esi, [ebx + 0x208]
test esi, esi
mov dword [esp + 0x454], 0
jne 0x41a580
xor eax, eax
jmp 0x41a589
push esi
call fcn.00431b26
add esp, 4
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.0040a7e0
lea esi, [ebx + 0x410]
test esi, esi
jne 0x41a5a2
xor eax, eax
jmp 0x41a5ab
push esi
call fcn.00431b26
add esp, 4
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.0040a7e0
mov eax, dword [ebx + 0x820]
test eax, eax
jne 0x41a769
lea eax, [esp + 0x238]
push str.true
push eax
call fcn.00431762
add esp, 8
test eax, eax
jne 0x41a769
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x41a62f
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x454], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a792
mov ecx, dword [eax]
push eax
jmp 0x41a78d
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0xf003f
push 0
push str.RunOnce
push ecx
call esi
test eax, eax
je 0x41a677
mov eax, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x1c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x459fa8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41a769
push ebx
lea ecx, [esp + 0x18]
call fcn.00403a40
push str.OneSetup
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x460], 1
call fcn.0040a920
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x458], 2
call fcn.00403870
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x454], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a6d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 4]
mov edi, 1
cmp eax, edi
jle 0x41a70c
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00403280
mov esi, dword [esp + 0x10]
cmp dword [esi - 4], edi
jle 0x41a70c
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.00403280
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push esi
call fcn.00431b26
mov edx, dword [esp + 0x1c]
add esp, 4
shl eax, 1
push eax
push esi
push 1
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x454], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a76d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x41a76d
mov esi, dword [esp + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x454], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a792
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 8]
add eax, 4
cmp eax, ecx
mov dword [esp + 0x20], eax
jne 0x41a4f0
mov ebx, dword [esp + 0x24]
mov eax, dword [0x46c488]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x28c]
mov eax, dword [edx + 0xc]
add ebx, 0x20
cmp ebx, eax
mov dword [esp + 0x24], ebx
jne 0x41a450
mov ecx, dword [esp + 0x44c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x444]
call fcn.00431288
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.00403270