Function at 0x407a80
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ba4e
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x464024]
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
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x407eb9
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
lea eax, [ebx + 0x10]
mov dword [ebp - 0x23c], eax
lea ecx, [ebp - 0x280]
mov dword [ebp - 4], 0
call fcn.00407380
push str.09F7EDC5_294E_4180_AF6A_FB0E6A0E9513
mov edx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSPPClients
mov byte [ebp - 4], 1
call fcn.004051e0
add esp, 4
lea ecx, [ebp - 0x238]
push eax
call fcn.00414580
mov byte [ebp - 4], 2
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x407ec3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push 0x449958
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.004153b0
test al, al
jne 0x407b4c
push 0
push 0x449958
lea ecx, [ebp - 0x224]
call fcn.00416540
mov byte [ebp - 4], 4
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x407ecd
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x234], eax
add eax, 0x10
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 5
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x407ed7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push str.Restore_Points
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 6
call fcn.004153b0
test al, al
jne 0x407bbe
push 0xe
push str.Restore_Points
lea ecx, [ebp - 0x220]
call fcn.00416540
push 0
push 0x24
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 7
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x407ee1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x21c]
call fcn.004153b0
test al, al
jne 0x407c37
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407c15
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00416540
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 0xc], 3
lea eax, [esi - 0x10]
mov dword [ebp - 0x228], eax
jg 0x407c62
mov ecx, eax
call fcn.004164d0
lea edi, [eax + 0x10]
mov dword [ebp - 0x230], edi
jmp 0x407cc9
mov ecx, dword [eax]
test ecx, ecx
je 0x407c73
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x407c89
call fcn.004024e0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x407eeb
mov eax, dword [ecx]
push 2
push 3
call dword [eax]
test eax, eax
je 0x407ef5
cmp dword [eax + 8], 3
lea edi, [eax + 0x10]
mov dword [ebp - 0x230], edi
jl 0x407eaf
xor eax, eax
mov dword [edi - 0xc], 3
push 6
push esi
mov ecx, edi
mov word [edi + 6], ax
lea edx, [eax + 6]
call fcn.00401fd0
add esp, 8
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0xa
lea ecx, [esi - 0x10]
mov dword [ebp - 0x22c], edx
or eax, 0xffffffff
cmp edx, ecx
je 0x407d40
mov esi, dword [ebp - 0x228]
cmp dword [esi + 0xc], 0
jl 0x407d22
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x407d22
mov ecx, edx
call fcn.004164d0
mov edi, eax
lea edx, [esi + 0xc]
or eax, 0xffffffff
mov ecx, eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407d17
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
or eax, 0xffffffff
lea esi, [edi + 0x10]
mov dword [ebp - 0x21c], esi
jmp 0x407d3a
push dword [edi - 0xc]
lea ecx, [ebp - 0x21c]
push edi
call fcn.00416540
mov esi, dword [ebp - 0x21c]
or eax, 0xffffffff
mov edx, dword [ebp - 0x22c]
mov byte [ebp - 4], 9
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407d56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 4], 1
jle 0x407d70
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.004154d0
mov esi, dword [ebp - 0x21c]
mov edx, esi
call fcn.00407500
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi - 4], 1
jle 0x407d9c
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.004154d0
mov esi, dword [ebp - 0x21c]
lea edx, [ebp - 0x280]
mov ecx, esi
call fcn.00405f40
cmp dword [esi - 4], 1
jle 0x407dc3
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.004154d0
mov esi, dword [ebp - 0x21c]
sub esp, 8
mov ecx, esi
call fcn.004061d0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 7
or esi, 0xffffffff
add esp, 8
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407dee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407e0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x234]
mov eax, esi
mov byte [ebp - 4], 4
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407e2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407e4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407e6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x280]
call fcn.00407440
mov dword [ebp - 4], 0xffffffff
lock xadd dword [ebx + 0xc], esi
dec esi
test esi, esi
jg 0x407e93
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
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.0041ae8f
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
call fcn.00416530
int3