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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454944
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x46e018]
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.004130e0
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 4], 0
call fcn.00412ff0
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 1
call fcn.004132c0
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 2
call fcn.004131d0
mov byte [ebp - 4], 3
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x401cf9
mov edx, dword [esi]
cmp dword [ebp - 0x2e4], 8
lea ecx, [ebp - 0x2f8]
cmovae ecx, dword [ebp - 0x2f8]
call fcn.004142d0
cmp dword [esi + 0x14], 8
jb 0x401d1a
mov esi, dword [esi]
cmp dword [ebp - 0x29c], 8
lea ecx, [ebp - 0x2b0]
mov edx, esi
cmovae ecx, dword [ebp - 0x2b0]
call fcn.004142d0
cmp dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2fc], 0x463a0c
je 0x401dec
xor esi, esi
nop
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x268]
call fcn.00402670
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 4
call fcn.00413630
push dword [ebp + esi*4 - 0x2fc]
lea ecx, [ebp - 0x268]
call fcn.00413a50
cmp dword [ebp - 0x254], 8
lea ecx, [ebp - 0x268]
cmovae ecx, dword [ebp - 0x268]
xor edx, edx
call fcn.004119d0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x254]
cmp edx, 8
jb 0x401de2
mov ecx, dword [ebp - 0x268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401dd8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024d9
push edx
push ecx
call fcn.0042dc50
add esp, 8
inc esi
cmp esi, 1
jb 0x401d50
cmp dword [ebp - 0x2b8], 0
je 0x401f20
xor esi, esi
nop dword [eax + eax]
lea eax, [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x238]
call fcn.00402670
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x228]
cmp edx, 1
jb 0x401ea5
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 + 0x4643f4]
je 0x401ea5
add eax, 2
cmp eax, 4
jb 0x401e44
mov eax, edi
sub eax, edx
cmp eax, 1
jb 0x401e84
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 0x401ea5
push 1
push 0x4644b8
mov byte [ebp - 0x300], 0
lea ecx, [ebp - 0x238]
push dword [ebp - 0x300]
push 1
call fcn.0040abd0
push dword [ebp + esi*4 - 0x2fc]
lea ecx, [ebp - 0x238]
call fcn.00413a50
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
cmovae ecx, dword [ebp - 0x238]
xor edx, edx
call fcn.004119d0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x401f16
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401f0c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024d9
push edx
push ecx
call fcn.0042dc50
add esp, 8
inc esi
cmp esi, 1
jb 0x401e00
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
ja 0x40236a
call fcn.004120e0
test eax, eax
je 0x40236a
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.0042ff40
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 0x401f97
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00402a20
lea ecx, [ebp - 0x238]
call fcn.00413630
push 8
xor eax, eax
mov dword [ebp - 0x250], 0
push 0x463a24
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
call fcn.00402a20
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.00402510
add esp, 4
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x40206e
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402064
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024d9
push edx
push ecx
call fcn.0042dc50
add esp, 8
push 0xa
xor eax, eax
mov dword [ebp - 0x250], 0
push 0x463a38
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
call fcn.00402a20
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.00402510
add esp, 4
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x402118
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40210e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024d9
push edx
push ecx
call fcn.0042dc50
add esp, 8
push 0xf
xor eax, eax
mov dword [ebp - 0x250], 0
push 0x463a50
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
call fcn.00402a20
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.00402510
add esp, 4
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x4021c2
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4021b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024d9
push edx
push ecx
call fcn.0042dc50
add esp, 8
cmp dword [ebp - 0x254], 8
lea ecx, [ebp - 0x268]
cmovae ecx, dword [ebp - 0x268]
xor edx, edx
call fcn.00410a10
cmp dword [ebp - 0x284], 8
lea ecx, [ebp - 0x298]
cmovae ecx, dword [ebp - 0x298]
xor edx, edx
call fcn.00410a10
cmp dword [ebp - 0x26c], 8
lea ecx, [ebp - 0x280]
cmovae ecx, dword [ebp - 0x280]
xor edx, edx
call fcn.00410a10
mov edx, dword [ebp - 0x26c]
cmp edx, 8
jb 0x402253
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402249
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024d9
push edx
push ecx
call fcn.0042dc50
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 0x4022b0
mov ecx, dword [ebp - 0x298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4022a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024d9
push edx
push ecx
call fcn.0042dc50
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 0x40230d
mov ecx, dword [ebp - 0x268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402303
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024d9
push edx
push ecx
call fcn.0042dc50
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 0x40236a
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402360
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024d9
push edx
push ecx
call fcn.0042dc50
add esp, 8
mov edx, dword [ebp - 0x2b4]
cmp edx, 8
jb 0x4023aa
mov ecx, dword [ebp - 0x2c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4023a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024de
push edx
push ecx
call fcn.0042dc50
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 0x402407
mov ecx, dword [ebp - 0x2e0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4023fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024de
push edx
push ecx
call fcn.0042dc50
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 0x402464
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40245a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024de
push edx
push ecx
call fcn.0042dc50
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 0x4024bd
mov ecx, dword [ebp - 0x2f8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4024b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024de
push edx
push ecx
call fcn.0042dc50
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.0042dc42
mov esp, ebp
pop ebp
ret
call fcn.0043276f
call fcn.0043276f
int3