Function at 0x408540
Capabilities:
Get common file path
Get startup folder
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ed2bf
mov eax, dword fs:[0]
push eax
sub esp, 0xa64
mov eax, dword [0x673f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xa1c], esi
mov dword [ebp - 0xa70], esi
xor eax, eax
mov dword [ebp - 0xa3c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0xa34], eax
mov dword [ebp - 0xa3c], 1
mov dword [ebp - 0xa24], eax
mov dword [ebp - 0xa20], 7
mov word [ebp - 0xa34], ax
push 0x208
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
call fcn.005ae810
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408600
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa34]
call fcn.00405ae0
push 0x16
push 0x642364
mov ecx, eax
call fcn.00405ae0
sub esp, 0x18
mov ecx, esp
push 3
push 0x642394
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004059d0
cmp dword [ebp - 0xa20], 8
lea edx, [ebp - 0xa34]
lea ecx, [ebp - 0xa54]
cmovae edx, dword [ebp - 0xa34]
call fcn.00407c50
add esp, 0x18
mov ecx, esi
push eax
call fcn.004058f0
mov edx, dword [ebp - 0xa40]
cmp edx, 8
jb 0x4086bf
mov ecx, dword [ebp - 0xa54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4086b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089b1
push edx
push ecx
call fcn.0058a7f7
add esp, 8
cmp dword [esi + 0x10], 0
jne 0x408959
sub esp, 0x18
mov ecx, esp
push 3
push 0x6409f0
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004059d0
cmp dword [ebp - 0xa20], 8
lea edx, [ebp - 0xa34]
lea ecx, [ebp - 0xa54]
cmovae edx, dword [ebp - 0xa34]
call fcn.00407c50
add esp, 0x18
mov ecx, esi
push eax
call fcn.004058f0
mov edx, dword [ebp - 0xa40]
cmp edx, 8
jb 0x408758
mov ecx, dword [ebp - 0xa54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40874e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089b6
push edx
push ecx
call fcn.0058a7f7
add esp, 8
cmp dword [esi + 0x10], 0
jne 0x408959
push 4
xor eax, eax
mov dword [ebp - 0xa6c], 0
push str.x_at
lea ecx, [ebp - 0xa6c]
mov dword [ebp - 0xa5c], 0
mov dword [ebp - 0xa58], 7
mov word [ebp - 0xa6c], ax
call fcn.004059d0
mov byte [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0xa54], 0
mov word [ebp - 0xa54], ax
lea eax, [ebp - 0xa38]
push eax
push 0x20219
push 0
push str.SOFTWARENico_Mak_ComputingWinZip
push 0x80000002
mov dword [ebp - 0xa38], 0
mov dword [ebp - 0xa44], 0
mov dword [ebp - 0xa40], 7
mov dword [ebp - 0xa3c], 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x408822
lea eax, [ebp - 0xa38]
push eax
push 0x20119
push 0
push str.SOFTWARENico_Mak_ComputingWinZip
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4088b2
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.005ae810
add esp, 0xc
mov dword [ebp - 0xa1c], 0x800
cmp dword [ebp - 0xa58], 8
lea ecx, [ebp - 0xa1c]
lea eax, [ebp - 0xa6c]
cmovae eax, dword [ebp - 0xa6c]
push ecx
lea ecx, [ebp - 0xa18]
push ecx
push 0
push 2
push eax
push 0
push dword [ebp - 0xa38]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4088a6
lea ecx, [ebp - 0xa18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408884
sub ecx, edx
lea eax, [ebp - 0xa18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa54]
call fcn.004059d0
push dword [ebp - 0xa38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xa58]
cmp edx, 8
jb 0x4088f2
mov ecx, dword [ebp - 0xa6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4088e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089bb
push edx
push ecx
call fcn.0058a7f7
add esp, 8
xor eax, eax
mov dword [ebp - 0xa5c], 0
mov word [ebp - 0xa6c], ax
mov ecx, esi
lea eax, [ebp - 0xa54]
mov dword [ebp - 0xa58], 7
push eax
call fcn.004058f0
mov edx, dword [ebp - 0xa40]
cmp edx, 8
jb 0x408959
mov ecx, dword [ebp - 0xa54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40894f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089c0
push edx
push ecx
call fcn.0058a7f7
add esp, 8
mov edx, dword [ebp - 0xa20]
cmp edx, 8
jb 0x408995
mov ecx, dword [ebp - 0xa34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40898b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089c5
push edx
push ecx
call fcn.0058a7f7
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058a7e9
mov esp, ebp
pop ebp
ret
call fcn.005b1b1f
call fcn.005b1b1f
call fcn.005b1b1f
call fcn.005b1b1f
call fcn.005b1b1f
int3