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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b89e
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x463024]
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.00402520
mov ecx, eax
test ecx, ecx
je 0x408769
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.00407c20
push str.09F7EDC5_294E_4180_AF6A_FB0E6A0E9513
mov edx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSPPClients
mov byte [ebp - 4], 1
call fcn.00405a80
add esp, 4
lea ecx, [ebp - 0x238]
push eax
call fcn.00414120
mov byte [ebp - 4], 2
call fcn.00402520
mov ecx, eax
test ecx, ecx
je 0x408773
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push 0x448948
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.00414f80
test al, al
jne 0x4083fc
push 0
push 0x448948
lea ecx, [ebp - 0x224]
call fcn.00416110
mov byte [ebp - 4], 4
call fcn.00402520
mov ecx, eax
test ecx, ecx
je 0x40877d
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.00402520
mov ecx, eax
test ecx, ecx
je 0x408787
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.00414f80
test al, al
jne 0x40846e
push 0xe
push str.Restore_Points
lea ecx, [ebp - 0x220]
call fcn.00416110
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.00402520
mov ecx, eax
test ecx, ecx
je 0x408791
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.00414f80
test al, al
jne 0x4084e7
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4084c5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00416110
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 0x408512
mov ecx, eax
call fcn.004160a0
lea edi, [eax + 0x10]
mov dword [ebp - 0x230], edi
jmp 0x408579
mov ecx, dword [eax]
test ecx, ecx
je 0x408523
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x408539
call fcn.00402520
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x40879b
mov eax, dword [ecx]
push 2
push 3
call dword [eax]
test eax, eax
je 0x4087a5
cmp dword [eax + 8], 3
lea edi, [eax + 0x10]
mov dword [ebp - 0x230], edi
jl 0x40875f
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.00402010
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 0x4085f0
mov esi, dword [ebp - 0x228]
cmp dword [esi + 0xc], 0
jl 0x4085d2
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4085d2
mov ecx, edx
call fcn.004160a0
mov edi, eax
lea edx, [esi + 0xc]
or eax, 0xffffffff
mov ecx, eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4085c7
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 0x4085ea
push dword [edi - 0xc]
lea ecx, [ebp - 0x21c]
push edi
call fcn.00416110
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 0x408606
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 4], 1
jle 0x408620
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.004150a0
mov esi, dword [ebp - 0x21c]
mov edx, esi
call fcn.00407db0
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [esi - 4], 1
jle 0x40864c
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.004150a0
mov esi, dword [ebp - 0x21c]
lea edx, [ebp - 0x280]
mov ecx, esi
call fcn.004067e0
cmp dword [esi - 4], 1
jle 0x408673
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.004150a0
mov esi, dword [ebp - 0x21c]
sub esp, 8
mov ecx, esi
call fcn.00406a70
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 0x40869e
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 0x4086bf
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 0x4086dd
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 0x4086fe
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 0x40871f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x280]
call fcn.00407ce0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [ebx + 0xc], esi
dec esi
test esi, esi
jg 0x408743
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.0041ac2f
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402280
push 0x80004005
call fcn.00402280
push 0x80004005
call fcn.00402280
push 0x80004005
call fcn.00402280
push 0x80004005
call fcn.00402280
push 0x80004005
call fcn.00402280
push 0x80004005
call fcn.00402280
call fcn.00416100
int3