Function at 0x10062020
Capabilities:
Check os version
Get common file path
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x1009a86f
mov eax, dword fs:[0]
push eax
sub esp, 0x864
mov eax, dword [0x100cc8ec]
xor eax, esp
mov dword [esp + 0x860], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100cc8ec]
xor eax, esp
push eax
lea eax, [esp + 0x878]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x888]
mov edi, dword [esp + 0x88c]
xor ebx, ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push 0x103
lea eax, [esp + 0x16d]
push ebx
mov esi, 1
push eax
mov dword [esp + 0x88c], esi
mov byte [esp + 0x174], bl
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [esp + 0x27e]
push ebx
push ecx
mov word [esp + 0x284], bx
call sub.MSVCR80.dll_memset
push 0x400
lea edx, [esp + 0x490]
push ebx
push edx
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x8b4]
add esp, 0x24
sub eax, esi
je 0x1006218c
push 0x400
lea eax, [esp + 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x474]
push 0x100a179c
push ecx
call dword [sym.imp.MSVCR80.dll_strtok]
add esp, 8
cmp eax, ebx
jne 0x10062135
push 0x1009ec09
lea ecx, [esp + 0x34]
call dword [0x1009e138]
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [esp + 0x18], esi
jmp 0x10062454
push 0x103
push eax
lea eax, [esp + 0x170]
push eax
call dword [sym.imp.MSVCR80.dll_strncpy]
lea eax, [esp + 0x174]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10062156
sub eax, edx
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [esp + 0x16c]
push 0x100ac828
push edx
call dword [sym.imp.MSVCR80.dll_strncat]
add esp, 0xc
lea eax, [esp + 0x168]
push eax
jmp 0x10062435
push 0x11c
lea ecx, [esp + 0x50]
push ebx
push ecx
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x50], 0x11c
call esi
cmp eax, ebx
jne 0x100621dd
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x50], 0x114
call esi
test eax, eax
jne 0x100621dd
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
jmp 0x1006244c
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x100621e2
sub eax, edx
je 0x10062230
cmp dword [esp + 0x50], 6
jb 0x100621fc
push edi
jmp 0x10062435
push ebx
push 0x1c
lea edx, [esp + 0x274]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x26c]
lea edx, [eax + 2]
jmp 0x10062220
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10062220
jmp 0x1006240b
cmp dword [esp + 0x50], 6
jb 0x100623e0
mov al, 0x16
push 0x100ac810
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], 0xa520a1a4
mov word [esp + 0x28], 0x1780
mov word [esp + 0x2a], 0x4ff6
mov byte [esp + 0x2c], 0xbd
mov byte [esp + 0x2d], 0x18
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], 0x73
mov byte [esp + 0x30], 0x43
mov byte [esp + 0x31], 0xc5
mov byte [esp + 0x32], 0xaf
mov byte [esp + 0x33], al
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x1006233f
push str.SHGetKnownFolderPath
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
call eax
test eax, eax
jl 0x10062333
mov edx, dword [esp + 0x14]
cmp edx, ebx
je 0x1006232c
mov ecx, closesocket
mov eax, edx
cmp word [eax], bx
je 0x100622e3
add eax, 2
sub ecx, 1
jne 0x100622c3
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1006243f
cmp ecx, ebx
je 0x1006232c
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100622f0
sub eax, esi
sar eax, 1
push eax
push edx
lea eax, [esp + 0x170]
push eax
push 0xfde9
call fcn.1007db60
add esp, 0x10
lea ecx, [esp + 0x168]
push ecx
lea ecx, [esp + 0x34]
call dword [0x1009e138]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1006243f
push 0x208
lea ecx, [esp + 0x270]
push ecx
push str.UserProfile
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [esp + 0x26c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10062361
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x270]
push edx
lea eax, [esp + 0x170]
push eax
push 0xfde9
call fcn.1007db60
add esp, 0x10
lea ecx, [esp + 0x168]
push ecx
lea ecx, [esp + 0x34]
call dword [0x1009e138]
call fcn.1006a190
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push str.AppData
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
call fcn.1006a190
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push str.LocalLow
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
jmp 0x1006243f
push ebx
push 0x1c
lea edx, [esp + 0x274]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x26c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10062400
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x270]
push eax
lea ecx, [esp + 0x170]
push ecx
push 0xfde9
call fcn.1007db60
add esp, 0x10
lea edx, [esp + 0x168]
push edx
lea ecx, [esp + 0x34]
call dword [0x1009e138]
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x880], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, ebp
mov ecx, dword [esp + 0x878]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x860]
xor ecx, esp
call fcn.10090524
add esp, 0x870
ret 0xc