Function at 0x401c10
Capabilities:
Check os version
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453a04
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x46c018]
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
mov esi, ecx
lea ecx, [ebp - 0x2f8]
call fcn.004121c0
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 4], 0
call fcn.004120d0
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 1
call fcn.004123a0
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 2
call fcn.004122b0
mov byte [ebp - 4], 3
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x401c89
mov edx, dword [esi]
cmp dword [ebp - 0x2e4], 8
lea ecx, [ebp - 0x2f8]
cmovae ecx, dword [ebp - 0x2f8]
call fcn.004133b0
cmp dword [esi + 0x14], 8
jb 0x401caa
mov esi, dword [esi]
cmp dword [ebp - 0x29c], 8
lea ecx, [ebp - 0x2b0]
mov edx, esi
cmovae ecx, dword [ebp - 0x2b0]
call fcn.004133b0
cmp dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2fc], 0x4629fc
je 0x401d7c
xor esi, esi
nop
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x268]
call fcn.00402600
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 4
call fcn.00412710
push dword [ebp + esi*4 - 0x2fc]
lea ecx, [ebp - 0x268]
call fcn.00412b30
cmp dword [ebp - 0x254], 8
lea ecx, [ebp - 0x268]
cmovae ecx, dword [ebp - 0x268]
xor edx, edx
call fcn.00410970
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x254]
cmp edx, 8
jb 0x401d72
mov ecx, dword [ebp - 0x268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401d68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402469
push edx
push ecx
call fcn.0042cd10
add esp, 8
inc esi
cmp esi, 1
jb 0x401ce0
cmp dword [ebp - 0x2b8], 0
je 0x401eb0
xor esi, esi
nop dword [eax + eax]
lea eax, [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x238]
call fcn.00402600
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x228]
cmp edx, 1
jb 0x401e35
mov edi, dword [ebp - 0x224]
lea eax, [ebp - 0x238]
mov ebx, dword [ebp - 0x238]
cmp edi, 8
cmovae eax, ebx
movzx ecx, word [eax + edx*2 - 2]
xor eax, eax
cmp cx, word [eax + 0x4633e4]
je 0x401e35
add eax, 2
cmp eax, 4
jb 0x401dd4
mov eax, edi
sub eax, edx
cmp eax, 1
jb 0x401e14
cmp edi, 8
lea eax, [ebp - 0x238]
lea ecx, [edx + 1]
cmovae eax, ebx
mov dword [ebp - 0x228], ecx
mov ebx, 0x5c
mov word [eax + edx*2], bx
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x401e35
push 1
push 0x4634a8
mov byte [ebp - 0x300], 0
lea ecx, [ebp - 0x238]
push dword [ebp - 0x300]
push 1
call fcn.0040ab70
push dword [ebp + esi*4 - 0x2fc]
lea ecx, [ebp - 0x238]
call fcn.00412b30
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
cmovae ecx, dword [ebp - 0x238]
xor edx, edx
call fcn.00410970
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x401ea6
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401e9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402469
push edx
push ecx
call fcn.0042cd10
add esp, 8
inc esi
cmp esi, 1
jb 0x401d90
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
ja 0x4022fa
call fcn.00411080
test eax, eax
je 0x4022fa
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
push 0x20a
push eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 6
push eax
call fcn.0042f000
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push 0x16
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f27
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.004029b0
lea ecx, [ebp - 0x238]
call fcn.00412710
push 8
xor eax, eax
mov dword [ebp - 0x250], 0
push 0x462a14
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
call fcn.004029b0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x224], 8
lea edx, [ebp - 0x238]
push eax
cmovae edx, dword [ebp - 0x238]
lea ecx, [ebp - 0x268]
call fcn.004024a0
add esp, 4
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x401ffe
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401ff4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402469
push edx
push ecx
call fcn.0042cd10
add esp, 8
push 0xa
xor eax, eax
mov dword [ebp - 0x250], 0
push 0x462a28
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
call fcn.004029b0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x224], 8
lea edx, [ebp - 0x238]
push eax
cmovae edx, dword [ebp - 0x238]
lea ecx, [ebp - 0x298]
call fcn.004024a0
add esp, 4
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x4020a8
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40209e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402469
push edx
push ecx
call fcn.0042cd10
add esp, 8
push 0xf
xor eax, eax
mov dword [ebp - 0x250], 0
push 0x462a40
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
call fcn.004029b0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x224], 8
lea edx, [ebp - 0x238]
push eax
cmovae edx, dword [ebp - 0x238]
lea ecx, [ebp - 0x280]
call fcn.004024a0
add esp, 4
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x402152
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402148
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402469
push edx
push ecx
call fcn.0042cd10
add esp, 8
cmp dword [ebp - 0x254], 8
lea ecx, [ebp - 0x268]
cmovae ecx, dword [ebp - 0x268]
xor edx, edx
call fcn.0040f8b0
cmp dword [ebp - 0x284], 8
lea ecx, [ebp - 0x298]
cmovae ecx, dword [ebp - 0x298]
xor edx, edx
call fcn.0040f8b0
cmp dword [ebp - 0x26c], 8
lea ecx, [ebp - 0x280]
cmovae ecx, dword [ebp - 0x280]
xor edx, edx
call fcn.0040f8b0
mov edx, dword [ebp - 0x26c]
cmp edx, 8
jb 0x4021e3
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4021d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402469
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov edx, dword [ebp - 0x284]
xor eax, eax
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
cmp edx, 8
jb 0x402240
mov ecx, dword [ebp - 0x298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402236
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402469
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov edx, dword [ebp - 0x254]
xor eax, eax
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
cmp edx, 8
jb 0x40229d
mov ecx, dword [ebp - 0x268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402293
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402469
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov edx, dword [ebp - 0x224]
xor eax, eax
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
cmp edx, 8
jb 0x4022fa
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4022f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402469
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov edx, dword [ebp - 0x2b4]
cmp edx, 8
jb 0x40233a
mov ecx, dword [ebp - 0x2c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402330
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40246e
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov edx, dword [ebp - 0x2cc]
xor eax, eax
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2b4], 7
mov word [ebp - 0x2c8], ax
cmp edx, 8
jb 0x402397
mov ecx, dword [ebp - 0x2e0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40238d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40246e
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov edx, dword [ebp - 0x29c]
xor eax, eax
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 7
mov word [ebp - 0x2e0], ax
cmp edx, 8
jb 0x4023f4
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4023ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40246e
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov edx, dword [ebp - 0x2e4]
xor eax, eax
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 7
mov word [ebp - 0x2b0], ax
cmp edx, 8
jb 0x40244d
mov ecx, dword [ebp - 0x2f8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402443
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40246e
push edx
push ecx
call fcn.0042cd10
add esp, 8
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.0042cd02
mov esp, ebp
pop ebp
ret
call fcn.0043182f
call fcn.0043182f
int3