Function at 0x413870
Capabilities:
Delete registry key
Get common file path
Get startup folder
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b75c0
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x57aa54]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x268], ecx
mov eax, dword [ebp - 0x268]
mov dword [eax + 0x24], 7
mov dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x234]
push ecx
mov ecx, dword [ebp - 0x268]
call fcn.00413760
mov dword [ebp - 4], 0
push 0
push 0x25
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4c02ec
lea ecx, [ebp - 0x240]
call fcn.004038f0
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x270]
push ecx
push 0x4c0304
lea edx, [ebp - 0x244]
push edx
call fcn.00416af0
add esp, 0xc
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x278], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x278]
push ecx
lea edx, [ebp - 0x248]
push edx
mov ecx, dword [ebp - 0x268]
call fcn.00413630
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x280]
push ecx
push 0x4c0310
lea ecx, [ebp - 0x24c]
call fcn.004038f0
mov dword [ebp - 0x284], eax
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x288], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x288]
push eax
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x250]
call fcn.004038f0
mov dword [ebp - 0x28c], eax
mov edx, dword [ebp - 0x28c]
mov dword [ebp - 0x290], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x290]
push eax
push 0x4c0314
lea ecx, [ebp - 0x254]
call fcn.004038f0
mov dword [ebp - 0x294], eax
mov ecx, dword [ebp - 0x294]
mov dword [ebp - 0x298], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x298]
push edx
lea eax, [ebp - 0x258]
push eax
call fcn.004032e0
add esp, 0xc
mov dword [ebp - 0x29c], eax
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x2a0], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x2a0]
push edx
lea eax, [ebp - 0x25c]
push eax
call fcn.004032e0
add esp, 0xc
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x2a8], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x2a8]
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.004032e0
add esp, 0xc
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x2b0]
push edx
lea eax, [ebp - 0x22c]
push eax
call fcn.004032e0
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x260]
call fcn.00403970
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x25c]
call fcn.00403970
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x258]
call fcn.00403970
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x254]
call fcn.00403970
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x250]
call fcn.00403970
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x24c]
call fcn.00403970
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x248]
call fcn.00403970
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x244]
call fcn.00403970
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x240]
call fcn.00403970
mov byte [ebp - 0x225], 1
mov dword [ebp - 0x238], 0
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x413f0b
push 0
lea edx, [ebp - 0x230]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x234]
call fcn.0040ca60
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x238], eax
je 0x413bc9
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
push 0x4c0318
mov edx, dword [ebp - 0x268]
add edx, 0x20
push edx
call fcn.004044a0
add esp, 0x10
mov byte [ebp - 0x261], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.00403970
mov al, byte [ebp - 0x261]
jmp 0x413fe9
mov ecx, dword [ebp - 0x268]
add ecx, 4
call fcn.004039f0
lea eax, [eax + eax + 2]
push eax
push 1
mov ecx, dword [ebp - 0x268]
add ecx, 4
call fcn.004039d0
push eax
push 1
push 0
mov ecx, dword [ebp - 0x268]
add ecx, 0x48
call fcn.0040ca60
push eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x238], eax
je 0x413c54
mov edx, dword [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x268]
mov eax, dword [edx + 0x48]
push eax
push 0x4c0378
mov ecx, dword [ebp - 0x268]
add ecx, 0x20
push ecx
call fcn.004044a0
add esp, 0x14
mov byte [ebp - 0x225], 0
lea ecx, [ebp - 0x22c]
call fcn.004039f0
lea edx, [eax + eax + 2]
push edx
push 1
lea ecx, [ebp - 0x22c]
call fcn.004039d0
push eax
push 1
push 0
mov ecx, dword [ebp - 0x268]
add ecx, 0x4c
call fcn.0040ca60
push eax
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x238], eax
je 0x413cd6
mov ecx, dword [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x22c]
push edx
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax + 0x4c]
push ecx
push 0x4c03d0
mov edx, dword [ebp - 0x268]
add edx, 0x20
push edx
call fcn.004044a0
add esp, 0x14
mov byte [ebp - 0x225], 0
lea ecx, [ebp - 0x22c]
call fcn.004039f0
lea eax, [eax + eax + 2]
push eax
push 1
lea ecx, [ebp - 0x22c]
call fcn.004039d0
push eax
push 1
push 0
mov ecx, dword [ebp - 0x268]
add ecx, 0x50
call fcn.0040ca60
push eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x238], eax
je 0x413d58
mov edx, dword [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x268]
mov edx, dword [ecx + 0x50]
push edx
push 0x4c0428
mov eax, dword [ebp - 0x268]
add eax, 0x20
push eax
call fcn.004044a0
add esp, 0x14
mov byte [ebp - 0x225], 0
mov ecx, dword [ebp - 0x268]
add ecx, 8
call fcn.004039f0
lea ecx, [eax + eax + 2]
push ecx
push 1
mov ecx, dword [ebp - 0x268]
add ecx, 8
call fcn.004039d0
push eax
push 1
push 0
mov ecx, dword [ebp - 0x268]
add ecx, 0x54
call fcn.0040ca60
push eax
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x238], eax
je 0x413de3
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x268]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax + 0x54]
push ecx
push 0x4c0480
mov edx, dword [ebp - 0x268]
add edx, 0x20
push edx
call fcn.004044a0
add esp, 0x14
mov byte [ebp - 0x225], 0
mov ecx, dword [ebp - 0x268]
add ecx, 0x14
call fcn.004039f0
lea eax, [eax + eax + 2]
push eax
push 1
mov ecx, dword [ebp - 0x268]
add ecx, 0x14
call fcn.004039d0
push eax
push 1
push 0
mov ecx, dword [ebp - 0x268]
add ecx, 0x58
call fcn.0040ca60
push eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x238], eax
je 0x413e6e
mov edx, dword [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x268]
mov eax, dword [edx + 0x58]
push eax
push 0x4c04d8
mov ecx, dword [ebp - 0x268]
add ecx, 0x20
push ecx
call fcn.004044a0
add esp, 0x14
mov byte [ebp - 0x225], 0
mov ecx, dword [ebp - 0x268]
add ecx, 0x18
call fcn.004039f0
lea edx, [eax + eax + 2]
push edx
push 1
mov ecx, dword [ebp - 0x268]
add ecx, 0x18
call fcn.004039d0
push eax
push 1
push 0
mov ecx, dword [ebp - 0x268]
add ecx, 0x5c
call fcn.0040ca60
push eax
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x238], eax
je 0x413ef9
mov ecx, dword [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x268]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x268]
mov edx, dword [ecx + 0x5c]
push edx
push str.Failed_to_save_the_registry_value:__s__s__d
mov eax, dword [ebp - 0x268]
add eax, 0x20
push eax
call fcn.004044a0
add esp, 0x14
mov byte [ebp - 0x225], 0
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x413fb6
lea ecx, [ebp - 0x234]
call fcn.0040ca60
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x238], eax
je 0x413fb6
mov edx, dword [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x234]
push eax
push str.Error_removing_the_uninstallation_key___s_:__d
mov ecx, dword [ebp - 0x268]
add ecx, 0x20
push ecx
call fcn.004044a0
add esp, 0x10
lea edx, [ebp - 0x230]
push edx
lea ecx, [ebp - 0x234]
call fcn.0040ca60
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x238], eax
je 0x413f9c
mov byte [ebp - 0x225], 0
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x413fb6
mov byte [ebp - 0x225], 1
push 0x4c05e8
mov ecx, dword [ebp - 0x268]
add ecx, 0x20
call fcn.004039b0
mov cl, byte [ebp - 0x225]
mov byte [ebp - 0x262], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.00403970
mov al, byte [ebp - 0x262]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049c63c
mov esp, ebp
pop ebp
ret 4