Function at 0x409a50
Capabilities:
Resolve function by parsing pe exports
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44f7cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
mov eax, dword [esp + 0xd4]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x10], ecx
jl 0x40a60a
mov eax, dword [0x45c050]
mov dword [esp + 0x30], eax
mov dword [esp + 0xdc], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x84]
mov byte [esp + 0xdc], 2
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x8c], ebp
call fcn.00425920
mov esi, 0x100
lea ecx, [esp + 0x30]
push esi
mov dword [esp + 0xa0], esi
call fcn.00426320
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebp
mov dword [esp + 0x98], eax
je 0x409b32
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xe4]
lea eax, [esp + 0x84]
push eax
mov eax, dword [edx + 0xad0]
push ecx
push 0x102d
push eax
call ebx
lea ecx, [esi - 1]
cmp eax, ecx
jl 0x409b32
add esi, esi
lea ecx, [esp + 0x30]
push esi
mov dword [esp + 0xa0], esi
call fcn.00426320
cmp eax, ebp
mov dword [esp + 0x98], eax
jne 0x409aeb
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
call fcn.004036e0
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x84]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x8c], 2
call fcn.00425920
mov esi, 0x100
lea ecx, [esp + 0x20]
push esi
mov dword [esp + 0xa0], esi
call fcn.00426320
cmp eax, ebp
mov dword [esp + 0x98], eax
je 0x409bc9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xe4]
lea edx, [esp + 0x84]
push edx
mov edx, dword [ecx + 0xad0]
push eax
push 0x102d
push edx
call ebx
lea ecx, [esi - 1]
cmp eax, ecx
jl 0x409bc9
add esi, esi
lea ecx, [esp + 0x20]
push esi
mov dword [esp + 0xa0], esi
call fcn.00426320
cmp eax, ebp
mov dword [esp + 0x98], eax
jne 0x409b82
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.004036e0
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x84]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x8c], 3
call fcn.00425920
mov esi, 0x100
lea ecx, [esp + 0x28]
push esi
mov dword [esp + 0xa0], esi
call fcn.00426320
cmp eax, ebp
mov dword [esp + 0x98], eax
je 0x409c60
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xe4]
lea edx, [esp + 0x84]
push edx
mov edx, dword [ecx + 0xad0]
push eax
push 0x102d
push edx
call ebx
lea ecx, [esi - 1]
cmp eax, ecx
jl 0x409c60
add esi, esi
lea ecx, [esp + 0x28]
push esi
mov dword [esp + 0xa0], esi
call fcn.00426320
cmp eax, ebp
mov dword [esp + 0x98], eax
jne 0x409c19
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.004036e0
lea edx, [esp + 0x60]
push ebp
push edx
call fcn.00429980
add esp, 8
push str.xmlToolStartupCleaner.xml
push eax
lea eax, [esp + 0x6c]
mov byte [esp + 0xe4], 3
push eax
call fcn.004261b0
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
call fcn.00408b10
mov edi, eax
add esp, 8
mov dword [esp + 0xc0], edi
mov eax, dword [esp + 0x64]
mov edx, dword [0x45c054]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x409cd8
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x409cd8
mov edx, dword [esp + 0x64]
lea eax, [edx - 0xc]
push eax
call fcn.004447ea
add esp, 4
mov eax, dword [esp + 0x60]
mov edx, dword [0x45c054]
mov byte [esp + 0xdc], 5
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x409d0b
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x409d0b
mov edx, dword [esp + 0x60]
lea eax, [edx - 0xc]
push eax
call fcn.004447ea
add esp, 4
push ecx
mov dword [esp + 0x7c], esp
mov esi, esp
push edi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
lea ecx, [esp + 0x5c]
mov dword [esi], eax
call fcn.00435f70
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str._config_toolstartupcleaner
call edi
mov esi, eax
mov dword [esp + 0x78], esi
push str._config_toolstartupcleaner_disabledwininiitem
call edi
mov dword [esp + 0xbc], eax
mov dword [esp + 0x50], ebp
mov eax, dword [esp + 0x58]
mov byte [esp + 0xdc], 9
cmp eax, ebp
je 0x409d70
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push esi
push eax
call dword [ecx + 0x94]
lea eax, [esp + 0x56]
lea ecx, [esp + 0x57]
push eax
push ebp
push ecx
lea ecx, [esp + 0xd0]
call fcn.0042beb0
push str.path
call edi
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x68]
push edx
mov byte [esp + 0xe0], 0xb
mov word [esp + 0x6c], bp
call fcn.0040a6a0
mov word [esp + 0xac], bp
lea eax, [esp + 0xac]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x8c]
mov byte [esp + 0xe4], 0xd
call fcn.0042bee0
lea edx, [esp + 0x40]
push eax
push edx
lea ecx, [esp + 0xcc]
mov byte [esp + 0xe4], 0xe
call fcn.0042bd70
mov ebx, dword [eax]
lea ecx, [esp + 0x84]
mov byte [esp + 0xdc], 0xd
call fcn.00429330
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0xe0], 0xc
call esi
lea edx, [esp + 0x68]
lea ecx, [ebx + 0x18]
push edx
call fcn.0040a730
lea eax, [esp + 0x68]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push str.valuename
call edi
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x68]
push edx
mov byte [esp + 0xe0], 0xf
mov word [esp + 0x6c], bp
call fcn.0040a6a0
mov word [esp + 0xac], bp
lea eax, [esp + 0xac]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x8c]
mov byte [esp + 0xe4], 0x11
call fcn.0042bee0
lea edx, [esp + 0x40]
push eax
push edx
lea ecx, [esp + 0xcc]
mov byte [esp + 0xe4], 0x12
call fcn.0042bd70
mov ebx, dword [eax]
lea ecx, [esp + 0x84]
mov byte [esp + 0xdc], 0x11
call fcn.00429330
lea eax, [esp + 0xac]
mov byte [esp + 0xdc], 0x10
push eax
call esi
lea edx, [esp + 0x68]
lea ecx, [ebx + 0x18]
push edx
call fcn.0040a730
lea eax, [esp + 0x68]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push str.valuedata
call edi
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x68]
push edx
mov byte [esp + 0xe0], 0x13
mov word [esp + 0x6c], bp
call fcn.0040a6a0
mov word [esp + 0xac], bp
lea eax, [esp + 0xac]
lea ecx, [esp + 0x14]
push eax
mov bl, 0x15
push ecx
lea ecx, [esp + 0x8c]
mov byte [esp + 0xe4], bl
call fcn.0042bee0
lea edx, [esp + 0x40]
push eax
push edx
lea ecx, [esp + 0xcc]
mov byte [esp + 0xe4], 0x16
call fcn.0042bd70
mov edi, dword [eax]
lea ecx, [esp + 0x84]
mov byte [esp + 0xdc], bl
call fcn.00429330
lea eax, [esp + 0xac]
mov byte [esp + 0xdc], 0x14
push eax
call esi
lea edx, [esp + 0x68]
lea ecx, [edi + 0x18]
push edx
call fcn.0040a730
lea eax, [esp + 0x68]
push eax
call esi
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ecx
call edi
mov dword [esp + 0x80], ebp
lea edx, [esp + 0x80]
lea eax, [esp + 0xc4]
push edx
push eax
push ecx
mov byte [esp + 0xe8], 0x17
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x46071c
call fcn.0040a630
push ecx
mov byte [esp + 0xec], 0x18
mov ecx, esp
mov dword [esp + 0x44], esp
push str.disabledwininiitem
call fcn.0040a630
lea ecx, [esp + 0x60]
mov byte [esp + 0xec], 0x17
call fcn.00402d00
push eax
lea ecx, [esp + 0x6c]
call fcn.00436560
cmp dword [esp + 0x58], ebp
je 0x40a06b
mov eax, dword [esp + 0x5c]
cmp eax, ebp
je 0x40a06b
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x40a06b
mov ecx, dword [esp + 0x5c]
mov word [esp + 0x40], bp
push ecx
lea ecx, [esp + 0x44]
call fcn.0040a650
mov ebx, dword [esp + 0x40]
sub esp, 0x10
mov eax, dword [esp + 0x68]
mov ecx, esp
push eax
mov byte [esp + 0xf0], 0x1a
mov edx, dword [eax]
mov dword [ecx], ebx
mov ebx, dword [esp + 0x58]
mov dword [ecx + 4], ebx
mov ebx, dword [esp + 0x5c]
mov dword [ecx + 8], ebx
mov ebx, dword [esp + 0x60]
mov dword [ecx + 0xc], ebx
call dword [edx + 0x108]
lea edx, [esp + 0x40]
push edx
call esi
mov eax, dword [0x45c050]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x80]
push ecx
push edx
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
mov byte [esp + 0xf0], 0x1c
call fcn.00425750
mov ecx, dword [esp + 0x20]
lea edx, [ecx + 0xaec]
push edx
call fcn.00408b90
cmp eax, ebp
je 0x40a54d
mov eax, dword [esp + 0x2c]
push ecx
mov dword [esp + 0x44], esp
mov ecx, esp
cmp dword [eax - 0xc], ebp
jl 0x40a0dd
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x40a0ef
mov edx, dword [0x45c050]
mov dword [ecx], edx
mov eax, dword [esp + 0x30]
push eax
call fcn.00425f80
push ecx
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov byte [esp + 0xe8], 0x1d
call fcn.00425750
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0xec], 0x1c
call fcn.0042c2b0
add esp, 0x10
mov eax, dword [esp + 0x20]
mov byte [esp + 0xdc], 0x1e
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x40a2dc
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
mov ebx, eax
cmp ebx, ebp
je 0x40a2dc
mov edx, 0x460718
test edx, edx
jne 0x40a15f
mov dword [esp + 0x38], ebp
jmp 0x40a16a
push 0x460718
call esi
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0x10]
xor edi, edi
mov eax, dword [esi - 8]
add eax, esi
cmp esi, eax
mov dword [esp + 0x18], eax
jae 0x40a2dc
mov eax, dword [esp + 0x1c]
push eax
push esi
call fcn.00445b15
add esp, 8
cmp eax, ebp
je 0x40a1a9
mov ecx, dword [esp + 0x1c]
lea esi, [eax + ebx]
push ecx
push esi
inc edi
call fcn.00445b15
add esp, 8
cmp eax, ebp
jne 0x40a193
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x18]
cmp esi, eax
jb 0x40a181
cmp edi, ebp
jle 0x40a2dc
lea ecx, [esp + 0x10]
call fcn.00425a40
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x24], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x40], ebp
cmp eax, ebp
jl 0x40a1f4
cmp dword [esi - 0xc], 1
jle 0x40a230
lea edi, [esi - 0xc]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edi
call fcn.00425830
test eax, eax
je 0x40a2da
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x10]
mov edx, ecx
mov eax, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004258d0
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
add eax, esi
cmp esi, eax
mov dword [esp + 0x18], eax
jae 0x40a2d7
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call fcn.00445b15
mov edi, eax
add esp, 8
test edi, edi
je 0x40a2bc
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
sub ebp, edi
lea edx, [edi + ebx]
sub ebp, ebx
add ebp, esi
mov esi, dword [esp + 0x38]
push ebp
push edx
lea eax, [edi + esi]
push eax
mov dword [esp + 0x40], eax
call fcn.004457e0
mov ecx, esi
mov esi, 0x460718
mov eax, ecx
mov edx, dword [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x44]
mov ecx, eax
sub ecx, ebx
push esi
mov byte [esi + ebp], 0
mov ebp, dword [esp + 0x38]
add ebp, ecx
mov dword [esp + 0x38], ebp
call fcn.00445b15
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40a255
mov ebp, dword [esp + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x18]
cmp esi, eax
jb 0x40a241
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebp
xor ebp, ebp
mov eax, 0x45c6dc
test eax, eax
je 0x40a488
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
mov ebx, eax
cmp ebx, ebp
je 0x40a488
mov ecx, 0x45c6d8
test ecx, ecx
jne 0x40a30b
mov dword [esp + 0x1c], ebp
jmp 0x40a316
push 0x45c6d8
call esi
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x10]
xor edi, edi
mov eax, dword [esi - 8]
add eax, esi
cmp esi, eax
mov dword [esp + 0x24], eax
jae 0x40a488
push 0x45c6dc
push esi
call fcn.00445b15
add esp, 8
cmp eax, ebp
je 0x40a355
lea esi, [eax + ebx]
push 0x45c6dc
push esi
inc edi
call fcn.00445b15
add esp, 8
cmp eax, ebp
jne 0x40a33f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x24]
cmp esi, eax
jb 0x40a32d
cmp edi, ebp
jle 0x40a488
lea ecx, [esp + 0x10]
call fcn.00425a40
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x18], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x34], ebp
cmp eax, ebp
jl 0x40a3a0
cmp dword [esi - 0xc], 1
jle 0x40a3dc
lea edi, [esi - 0xc]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], edi
call fcn.00425830
test eax, eax
je 0x40a486
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x10]
mov edx, ecx
mov eax, dword [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004258d0
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
add eax, esi
cmp esi, eax
mov dword [esp + 0x24], eax
jae 0x40a483
push 0x45c6dc
push esi
call fcn.00445b15
mov edi, eax
add esp, 8
test edi, edi
je 0x40a468
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
sub ebp, edi
sub ebp, ebx
lea ecx, [edi + ebx]
add ebp, edx
lea eax, [edi + esi]
push ebp
push ecx
push eax
mov dword [esp + 0x4c], eax
call fcn.004457e0
mov ecx, esi
mov esi, 0x45c6d8
mov edx, ecx
push 0x45c6dc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
sub eax, ebx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x50]
push esi
mov byte [esi + ebp], 0
mov ebp, dword [esp + 0x2c]
add ebp, eax
mov dword [esp + 0x2c], ebp
call fcn.00445b15
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40a401
mov ebp, dword [esp + 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x24]
cmp esi, eax
jb 0x40a3ed
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebp
xor ebp, ebp
push 0x45c6d8
push 0x45c6d4
lea ecx, [esp + 0x18]
call fcn.004274f0
push 0x45c6d8
push 0x45c6d0
lea ecx, [esp + 0x18]
call fcn.004274f0
push 0x45c6d8
push 0x45c6cc
lea ecx, [esp + 0x18]
call fcn.004274f0
push 0x45c6d0
lea ecx, [esp + 0x14]
call fcn.00426f20
push 0x45c6d0
lea ecx, [esp + 0x14]
call fcn.00426e40
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40a536
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
lea edx, [eax + 1]
inc eax
push edx
push eax
call fcn.00403630
push eax
mov eax, dword [esp + 0x1c]
push 1
push ebp
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0xdc], 0x1c
call fcn.00429590
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x2c]
mov byte [esp + 0xdc], 0x1b
call fcn.00429590
lea ecx, [esp + 0x3c]
mov byte [esp + 0xdc], 0x17
call fcn.00429590
lea ecx, [esp + 0x80]
mov byte [esp + 0xdc], 0xa
call fcn.00428290
lea ecx, [esp + 0xc4]
mov byte [esp + 0xdc], 9
call fcn.00425000
lea ecx, [esp + 0x50]
mov byte [esp + 0xdc], 8
call fcn.00428290
mov eax, dword [esp + 0xbc]
push eax
call edi
mov ecx, dword [esp + 0x78]
push ecx
call edi
lea ecx, [esp + 0x58]
mov byte [esp + 0xdc], 5
call fcn.00435ff0
mov edx, dword [esp + 0xc0]
push edx
call edi
lea ecx, [esp + 0x28]
mov byte [esp + 0xdc], 1
call fcn.00429590
lea ecx, [esp + 0x20]
mov byte [esp + 0xdc], 0
call fcn.00429590
lea ecx, [esp + 0x30]
mov dword [esp + 0xdc], 0xffffffff
call fcn.00429590
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xd0
ret 4