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

Disassembly:
push 0xffffffffffffffff
push 0x1009b29f
mov eax, dword fs:[0]
push eax
sub esp, 0x864
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x860], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100cd8ec]
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 0x1006291c
push 0x400
lea eax, [esp + 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x474]
push 0x100a279c
push ecx
call dword [sym.imp.MSVCR80.dll_strtok]
add esp, 8
cmp eax, ebx
jne 0x100628c5
push 0x1009fc09
lea ecx, [esp + 0x34]
call dword [0x1009f138]
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 0x10062be4
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 0x100628e6
sub eax, edx
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [esp + 0x16c]
push 0x100ad9b0
push edx
call dword [sym.imp.MSVCR80.dll_strncat]
add esp, 0xc
lea eax, [esp + 0x168]
push eax
jmp 0x10062bc5
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 0x1006296d
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x50], 0x114
call esi
test eax, eax
jne 0x1006296d
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 0x10062bdc
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10062972
sub eax, edx
je 0x100629c0
cmp dword [esp + 0x50], 6
jb 0x1006298c
push edi
jmp 0x10062bc5
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 0x100629b0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100629b0
jmp 0x10062b9b
cmp dword [esp + 0x50], 6
jb 0x10062b70
mov al, 0x16
push 0x100ad998
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 0x10062acf
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 0x10062ac3
mov edx, dword [esp + 0x14]
cmp edx, ebx
je 0x10062abc
mov ecx, closesocket
mov eax, edx
cmp word [eax], bx
je 0x10062a73
add eax, 2
sub ecx, 1
jne 0x10062a53
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10062bcf
cmp ecx, ebx
je 0x10062abc
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10062a80
sub eax, esi
sar eax, 1
push eax
push edx
lea eax, [esp + 0x170]
push eax
push 0xfde9
call fcn.1007e4c0
add esp, 0x10
lea ecx, [esp + 0x168]
push ecx
lea ecx, [esp + 0x34]
call dword [0x1009f138]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10062bcf
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 0x10062af1
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x270]
push edx
lea eax, [esp + 0x170]
push eax
push 0xfde9
call fcn.1007e4c0
add esp, 0x10
lea ecx, [esp + 0x168]
push ecx
lea ecx, [esp + 0x34]
call dword [0x1009f138]
call fcn.1006a9b0
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.1006a9b0
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 0x10062bcf
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 0x10062b90
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x270]
push eax
lea ecx, [esp + 0x170]
push ecx
push 0xfde9
call fcn.1007e4c0
add esp, 0x10
lea edx, [esp + 0x168]
push edx
lea ecx, [esp + 0x34]
call dword [0x1009f138]
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.10090e24
add esp, 0x870
ret 0xc