Function at 0x415e1a
Capabilities:
Check os version
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439634
mov eax, dword fs:[0]
push eax
sub esp, 0xed0
mov eax, dword [0x4444c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe38], ecx
mov dword [ebp - 0xbdc], str.YSDrv
xor eax, eax
mov word [ebp - 0xaa4], ax
push 0x208
push 0
lea eax, [ebp - 0xaa2]
push eax
call fcn.0041d130
add esp, 0xc
xor eax, eax
mov word [ebp - 0x25c], ax
push 0x208
push 0
lea eax, [ebp - 0x25a]
push eax
call fcn.0041d130
add esp, 0xc
xor eax, eax
mov word [ebp - 0x684], ax
push 0x208
push 0
lea eax, [ebp - 0x682]
push eax
call fcn.0041d130
add esp, 0xc
xor eax, eax
mov word [ebp - 0x46c], ax
push 0x208
push 0
lea eax, [ebp - 0x46a]
push eax
call fcn.0041d130
add esp, 0xc
xor eax, eax
mov word [ebp - 0xdec], ax
push 0x208
push 0
lea eax, [ebp - 0xdea]
push eax
call fcn.0041d130
add esp, 0xc
xor eax, eax
mov word [ebp - 0x894], ax
push 0x208
push 0
lea eax, [ebp - 0x892]
push eax
call fcn.0041d130
add esp, 0xc
and dword [ebp - 0x470], 0
push 0x105
push 0
lea eax, [ebp - 0xaa4]
push eax
call fcn.0041d130
add esp, 0xc
push 0x105
push 0
lea eax, [ebp - 0x25c]
push eax
call fcn.0041d130
add esp, 0xc
push 0x105
push 0
lea eax, [ebp - 0x684]
push eax
call fcn.0041d130
add esp, 0xc
push 0x105
push 0
lea eax, [ebp - 0x46c]
push eax
call fcn.0041d130
add esp, 0xc
push 0x105
push 0
lea eax, [ebp - 0xdec]
push eax
call fcn.0041d130
add esp, 0xc
push 0x105
push 0
lea eax, [ebp - 0x894]
push eax
call fcn.0041d130
add esp, 0xc
push 0x114
push 0
lea eax, [ebp - 0xbbc]
push eax
call fcn.0041d130
add esp, 0xc
mov dword [ebp - 0xbbc], 0x114
lea eax, [ebp - 0xbbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0x26
lea eax, [ebp - 0x684]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x684]
push eax
push 0x105
lea eax, [ebp - 0x25c]
push eax
call fcn.0041d7db
add esp, 0xc
push 0x43ba2c
push 0x105
lea eax, [ebp - 0x25c]
push eax
call fcn.0041d7db
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
push 0x105
lea eax, [ebp - 0x46c]
push eax
call fcn.0041d850
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
push 0x105
lea eax, [ebp - 0xdec]
push eax
call fcn.0041d850
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
push 0x105
lea eax, [ebp - 0x894]
push eax
call fcn.0041d850
add esp, 0xc
push dword [ebp - 0xbdc]
push 0x105
lea eax, [ebp - 0x46c]
push eax
call fcn.0041d7db
add esp, 0xc
push str..sys
push 0x105
lea eax, [ebp - 0x46c]
push eax
call fcn.0041d7db
add esp, 0xc
push dword [ebp - 0xbdc]
push 0x105
lea eax, [ebp - 0xdec]
push eax
call fcn.0041d7db
add esp, 0xc
push str._prev.sys
push 0x105
lea eax, [ebp - 0xdec]
push eax
call fcn.0041d7db
add esp, 0xc
lea eax, [ebp - 0xdec]
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.0041dddb
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x470], eax
push str.newver_
push 0x105
lea eax, [ebp - 0x894]
push eax
call fcn.0041d7db
add esp, 0xc
push dword [ebp - 0xbdc]
push 0x105
lea eax, [ebp - 0x894]
push eax
call fcn.0041d7db
add esp, 0xc
cmp dword [ebp - 0xbb8], 6
jne 0x416144
cmp dword [ebp - 0xbb4], 1
jne 0x416144
push str._single
push 0x105
lea eax, [ebp - 0x894]
push eax
call fcn.0041d7db
add esp, 0xc
push 0x43b960
push 0x105
lea eax, [ebp - 0x894]
push eax
call fcn.0041d7db
add esp, 0xc
push dword [ebp - 0xbdc]
push 0x105
lea eax, [ebp - 0x894]
push eax
call fcn.0041d7db
add esp, 0xc
push str..sys
push 0x105
lea eax, [ebp - 0x894]
push eax
call fcn.0041d7db
add esp, 0xc
lea eax, [ebp - 0xdfd]
mov dword [ebp - 0xdfc], eax
lea eax, [ebp - 0xbd8]
mov dword [ebp - 0xe3c], eax
and dword [ebp - 4], 0
push 0
push 0
lea ecx, [ebp - 0xbd8]
call fcn.004050af
mov dword [ebp - 4], 1
lea eax, [ebp - 0xe09]
mov dword [ebp - 0xe08], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0xe40], eax
mov byte [ebp - 4], 2
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.00402ad2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xbd8]
call fcn.00416735
mov dword [ebp - 0xe44], 0x43cc1c
mov eax, dword [ebp - 0xe44]
add eax, 2
mov dword [ebp - 0xe48], eax
mov eax, dword [ebp - 0xe44]
mov ax, word [eax]
mov word [ebp - 0xe4a], ax
add dword [ebp - 0xe44], 2
cmp word [ebp - 0xe4a], 0
jne 0x41620f
mov eax, dword [ebp - 0xe44]
sub eax, dword [ebp - 0xe48]
sar eax, 1
mov dword [ebp - 0xe50], eax
push dword [ebp - 0xe50]
push 0x43cc1c
lea ecx, [ebp - 0xbd8]
call fcn.0040606c
mov dword [ebp - 0xe54], 0x43bb20
mov eax, dword [ebp - 0xe54]
add eax, 2
mov dword [ebp - 0xe58], eax
mov eax, dword [ebp - 0xe54]
mov ax, word [eax]
mov word [ebp - 0xe5a], ax
add dword [ebp - 0xe54], 2
cmp word [ebp - 0xe5a], 0
jne 0x416273
mov eax, dword [ebp - 0xe54]
sub eax, dword [ebp - 0xe58]
sar eax, 1
mov dword [ebp - 0xe60], eax
push dword [ebp - 0xe60]
push 0x43bb20
lea ecx, [ebp - 0xbd8]
call fcn.004073b3
lea eax, [ebp - 0x894]
mov dword [ebp - 0xe64], eax
mov eax, dword [ebp - 0xe64]
add eax, 2
mov dword [ebp - 0xe68], eax
mov eax, dword [ebp - 0xe64]
mov ax, word [eax]
mov word [ebp - 0xe6a], ax
add dword [ebp - 0xe64], 2
cmp word [ebp - 0xe6a], 0
jne 0x4162d9
mov eax, dword [ebp - 0xe64]
sub eax, dword [ebp - 0xe68]
sar eax, 1
mov dword [ebp - 0xe70], eax
push dword [ebp - 0xe70]
lea eax, [ebp - 0x894]
push eax
lea ecx, [ebp - 0xbd8]
call fcn.004073b3
mov dword [ebp - 0xe74], 0x43bb20
mov eax, dword [ebp - 0xe74]
add eax, 2
mov dword [ebp - 0xe78], eax
mov eax, dword [ebp - 0xe74]
mov ax, word [eax]
mov word [ebp - 0xe7a], ax
add dword [ebp - 0xe74], 2
cmp word [ebp - 0xe7a], 0
jne 0x41633f
mov eax, dword [ebp - 0xe74]
sub eax, dword [ebp - 0xe78]
sar eax, 1
mov dword [ebp - 0xe80], eax
push dword [ebp - 0xe80]
push 0x43bb20
lea ecx, [ebp - 0xbd8]
call fcn.004073b3
mov dword [ebp - 0xe84], 0x43cc18
mov eax, dword [ebp - 0xe84]
add eax, 2
mov dword [ebp - 0xe88], eax
mov eax, dword [ebp - 0xe84]
mov ax, word [eax]
mov word [ebp - 0xe8a], ax
add dword [ebp - 0xe84], 2
cmp word [ebp - 0xe8a], 0
jne 0x4163a3
mov eax, dword [ebp - 0xe84]
sub eax, dword [ebp - 0xe88]
sar eax, 1
mov dword [ebp - 0xe90], eax
push dword [ebp - 0xe90]
push 0x43cc18
lea ecx, [ebp - 0xbd8]
call fcn.004073b3
mov dword [ebp - 0xe94], 0x43bb20
mov eax, dword [ebp - 0xe94]
add eax, 2
mov dword [ebp - 0xe98], eax
mov eax, dword [ebp - 0xe94]
mov ax, word [eax]
mov word [ebp - 0xe9a], ax
add dword [ebp - 0xe94], 2
cmp word [ebp - 0xe9a], 0
jne 0x416407
mov eax, dword [ebp - 0xe94]
sub eax, dword [ebp - 0xe98]
sar eax, 1
mov dword [ebp - 0xea0], eax
push dword [ebp - 0xea0]
push 0x43bb20
lea ecx, [ebp - 0xbd8]
call fcn.004073b3
lea eax, [ebp - 0x46c]
mov dword [ebp - 0xea4], eax
mov eax, dword [ebp - 0xea4]
add eax, 2
mov dword [ebp - 0xea8], eax
mov eax, dword [ebp - 0xea4]
mov ax, word [eax]
mov word [ebp - 0xeaa], ax
add dword [ebp - 0xea4], 2
cmp word [ebp - 0xeaa], 0
jne 0x41646d
mov eax, dword [ebp - 0xea4]
sub eax, dword [ebp - 0xea8]
sar eax, 1
mov dword [ebp - 0xeb0], eax
push dword [ebp - 0xeb0]
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0xbd8]
call fcn.004073b3
mov dword [ebp - 0xeb4], 0x43bb20
mov eax, dword [ebp - 0xeb4]
add eax, 2
mov dword [ebp - 0xeb8], eax
mov eax, dword [ebp - 0xeb4]
mov ax, word [eax]
mov word [ebp - 0xeba], ax
add dword [ebp - 0xeb4], 2
cmp word [ebp - 0xeba], 0
jne 0x4164d3
mov eax, dword [ebp - 0xeb4]
sub eax, dword [ebp - 0xeb8]
sar eax, 1
mov dword [ebp - 0xec0], eax
push dword [ebp - 0xec0]
push 0x43bb20
lea ecx, [ebp - 0xbd8]
call fcn.004073b3
mov dword [ebp - 0xec4], str.__o__y
mov eax, dword [ebp - 0xec4]
add eax, 2
mov dword [ebp - 0xec8], eax
mov eax, dword [ebp - 0xec4]
mov ax, word [eax]
mov word [ebp - 0xeca], ax
add dword [ebp - 0xec4], 2
cmp word [ebp - 0xeca], 0
jne 0x416537
mov eax, dword [ebp - 0xec4]
sub eax, dword [ebp - 0xec8]
sar eax, 1
mov dword [ebp - 0xed0], eax
push dword [ebp - 0xed0]
push str.__o__y
lea ecx, [ebp - 0xbd8]
call fcn.004073b3
push 0xffffffffffffffff
lea eax, [ebp - 0x470]
push eax
cmp dword [ebp - 0xbc4], 8
jb 0x4165a2
mov eax, dword [ebp - 0xbd8]
mov dword [ebp - 0xed4], eax
jmp 0x4165ae
lea eax, [ebp - 0xbd8]
mov dword [ebp - 0xed4], eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xdf0], esp
push dword [ebp - 0xed4]
call fcn.00408e1f
mov dword [ebp - 0xed8], eax
mov byte [ebp - 4], 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xdf4], esp
push str.cmd.exe
call fcn.00408e1f
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 3
call fcn.00408c9a
add esp, 0x44
mov dword [ebp - 0xedc], eax
mov eax, dword [ebp - 0xedc]
mov dword [ebp - 0xe34], eax
mov byte [ebp - 4], 5
push dword [ebp - 0xe34]
lea ecx, [ebp - 0x48]
call fcn.00406f0c
mov byte [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402ad2
mov byte [ebp - 4], 3
mov byte [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00402ad2
mov byte [ebp - 4], 1
mov dword [ebp - 4], 8
push 0
push 1
lea ecx, [ebp - 0xbd8]
call fcn.004050af
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c438
leave
ret