Function at 0x100076e0
Capabilities:
Get file version info
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x10037160
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1004f100]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x41c]
mov dword [ebp - 0x24], eax
xor eax, eax
push 0x206
mov edi, edx
mov ebx, ecx
push eax
lea edx, [ebp + 0x20a]
xor ecx, ecx
mov dword [ebp - 4], eax
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov word [ebp + 0x208], cx
call fcn.100285e0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x208]
push eax
push str._SystemRoot__system32_termsrv.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp + 0x208]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x100077ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1001af90
push esi
push str.Failed_to_get_file_version_info_size._Error:_08x
mov ecx, eax
call fcn.1001b4f0
add esp, 8
push 0x10049464
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], esi
call fcn.10028c35
push esi
call fcn.1002651c
mov ecx, dword [ebp - 0x3c]
add esp, 4
push eax
push esi
push ecx
lea edx, [ebp + 0x208]
push edx
mov dword [ebp - 0x1c], eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x100077fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1001af90
push esi
push str.Failed.2_to_get_file_version_info_data._Error:_08x
mov ecx, eax
call fcn.1001b4f0
add esp, 8
push 0x10049464
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], esi
call fcn.10028c35
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0x1003f0d0
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x10007845
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1001af90
push esi
push str.Failed.2_to_get_file_version_info_data_detail._Error:_08x
mov ecx, eax
call fcn.1001b4f0
add esp, 8
push 0x10049464
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], esi
call fcn.10028c35
xor edx, edx
push 0x206
push edx
lea eax, [ebp + 2]
push eax
mov word [ebp], dx
call fcn.100285e0
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._d._d._d._d
lea eax, [ebp]
push 0x104
push eax
call fcn.10001f00
add esp, 0x28
test edi, edi
je 0x10007894
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0xa]
mov dword [edi], edx
call fcn.1001af90
lea ecx, [ebp + 0x208]
push ecx
lea edx, [ebp]
push edx
push str.___Terminal_Services_version:__s__s
mov ecx, eax
call fcn.1001b3f0
add esp, 0xc
test ebx, ebx
je 0x100078c9
lea eax, [ebp]
push eax
push 0x104
push ebx
call fcn.10001f00
add esp, 0xc
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0xa]
cmp cx, 5
jne 0x1000793c
cmp word [eax + 8], 1
jne 0x10007906
call fcn.1001af90
push str.____Windows_XP_64_bit_Edition_is_not_supported.
mov ecx, eax
call fcn.1001b4f0
add esp, 4
push 0x10049464
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 0x32
call fcn.10028c35
cmp cx, 5
jne 0x1000793c
cmp word [eax + 8], 2
jne 0x1000793c
call fcn.1001af90
push str.____Windows_Server_2003_or_XP_64_bit_Edition__is_not_supported.
mov ecx, eax
call fcn.1001b4f0
add esp, 4
push 0x10049464
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x34], 0x32
call fcn.10028c35
cmp cx, 6
jne 0x1000799b
cmp word [eax + 8], 0
jne 0x1000798a
mov edx, 0x1770
mov cl, 1
cmp word [eax + 0xe], dx
jne 0x1000799d
mov edx, 0x4002
cmp word [eax + 0xc], dx
jne 0x1000799d
call fcn.1001af90
push str.____This_version_of_Terminal_Services_may_crash_on_logon_attempt.Its_recommended_to_upgrade_to_Service_Pack_1_or_higher.
mov ecx, eax
call fcn.1001b4f0
add esp, 4
push 0x10049464
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x32
call fcn.10028c35
cmp cx, 6
jne 0x1000799b
mov ecx, 1
cmp word [eax + 8], cx
je 0x1000799d
mov cl, 2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100079a9
movzx ecx, cl
mov dword [eax], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100079c0
push eax
call fcn.1002716e
add esp, 4
mov esi, dword [ebp - 0x14]
push esi
push str.CheckTermsrvVersion_Rlt:_08x
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.100269c5
add ebp, 0x414
mov esp, ebp
pop ebp
ret