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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x100175150]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
xor ebx, ebx
lea rcx, [0x100042018]
lea esi, [rbx + 1]
call fcn.10011c52c
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bx
call sub.msvcrt.dll_memset
cmp rdi, rbx
jne 0x100114121
lea r9d, [rbx + 0x57]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x100176368]
lea rax, [0x100176368]
cmp rcx, rax
je 0x100114589
test byte [rcx + 0x1c], 8
je 0x100114589
lea edx, [r9 - 0x1d]
lea rax, [0x100042050]
jmp 0x100114574
xor edx, edx
mov r8d, 0x220
mov rcx, rdi
call sub.msvcrt.dll_memset
lea rdx, [rdi + 0x34]
lea rcx, [rdi + 0x38]
mov dword [rdx], 0x10
mov dword [rdi + 0x30], esi
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp eax, ebx
jne 0x100114198
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x100176368]
lea rax, [0x100176368]
cmp rcx, rax
je 0x100114589
test byte [rcx + 0x1c], 8
je 0x100114589
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x3b
mov rcx, qword [0x100176368]
mov r9d, eax
lea rax, [0x10003f980]
jmp 0x100114574
mov ecx, 0xc
call fcn.10011c9e8
mov qword [rdi + 0x18], rax
cmp rax, rbx
jne 0x1001141e7
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x100176368]
lea rax, [0x100176368]
cmp rcx, rax
je 0x100114589
test byte [rcx + 0x1c], 8
je 0x100114589
lea edx, [r9 + 0x2e]
lea rax, [0x100042060]
jmp 0x100114574
lea rcx, [0x100042078]
mov r8d, 6
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, ebx
jne 0x10011423d
mov r9d, 0xa
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x100176368]
lea rax, [0x100176368]
cmp rcx, rax
je 0x100114589
test byte [rcx + 0x1c], 8
je 0x100114589
lea edx, [r9 + 0x33]
lea rax, [0x1000420a8]
jmp 0x100114574
cmp eax, 6
jbe 0x10011427e
mov r9d, 0x32
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x100176368]
lea rax, [0x100176368]
cmp rcx, rax
je 0x100114589
test byte [rcx + 0x1c], 8
je 0x100114589
lea edx, [r9 + 0xc]
lea rax, [0x1000420c0]
jmp 0x100114574
lea rcx, [rdi + 0x58]
mov dword [rcx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, ebx
jne 0x1001142cd
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x100176368]
lea rax, [0x100176368]
cmp rcx, rax
je 0x100114589
test byte [rcx + 0x1c], 8
je 0x100114589
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x3f
jmp 0x100114182
call fcn.100117234
mov dword [rdi + 0x20], eax
cmp eax, ebx
jne 0x100114316
mov r9d, 0x65e
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x100176368]
lea rax, [0x100176368]
cmp rcx, rax
je 0x100114589
test byte [rcx + 0x1c], 8
je 0x100114589
mov edx, 0x40
lea rax, [0x100041ba0]
jmp 0x100114574
mov ebp, 0x104
mov rcx, qword [rdi]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [rbp + rbp + 2]
mov qword [rdi], rbx
call fcn.10011c9e8
mov qword [rdi], rax
cmp rax, rbx
je 0x100114545
mov edx, ebp
mov rcx, rax
mov r12d, ebp
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov ebp, eax
cmp eax, ebx
je 0x100114512
cmp eax, r12d
ja 0x10011431b
mov rax, qword [rdi]
mov ebp, 0x104
mov word [rax + r12*2], bx
mov rcx, qword [rdi + 8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [rbp + rbp + 2]
mov qword [rdi + 8], rbx
call fcn.10011c9e8
mov qword [rdi + 8], rax
cmp rax, rbx
je 0x1001144d9
mov edx, ebp
mov rcx, rax
mov r12d, ebp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
cmp eax, ebx
je 0x10011449e
cmp eax, r12d
ja 0x100114366
mov rax, qword [rdi + 8]
lea rcx, [rsp + 0x30]
mov edx, 0x104
mov word [rax + r12*2], bx
call fcn.100112c6c
cmp eax, ebx
jne 0x1001143fe
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x100176368]
lea rax, [0x100176368]
cmp rcx, rax
je 0x100114589
test byte [rcx + 0x1c], 8
je 0x100114589
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x45
jmp 0x100114182
lea rcx, [rdi + 0x174]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
jne 0x10011444b
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x100176368]
lea rax, [0x100176368]
cmp rcx, rax
je 0x100114589
test byte [rcx + 0x1c], 8
je 0x100114589
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x46
jmp 0x100114182
lea rcx, [rsp + 0x30]
call fcn.10011ca28
mov qword [rdi + 0x10], rax
cmp rax, rbx
jne 0x100114589
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x100176368]
lea rax, [0x100176368]
cmp rcx, rax
je 0x100114589
test byte [rcx + 0x1c], 8
je 0x100114589
lea edx, [r9 + 0x39]
lea rax, [0x100042118]
jmp 0x100114574
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x100176368]
lea rax, [0x100176368]
cmp rcx, rax
je 0x100114589
test byte [rcx + 0x1c], 8
je 0x100114589
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x44
jmp 0x100114182
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x100176368]
lea rax, [0x100176368]
cmp rcx, rax
je 0x100114589
test byte [rcx + 0x1c], 8
je 0x100114589
lea edx, [r9 + 0x35]
lea rax, [0x1000420f8]
jmp 0x100114574
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x100176368]
lea rax, [0x100176368]
cmp rcx, rax
je 0x100114589
test byte [rcx + 0x1c], 8
je 0x100114589
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x42
jmp 0x100114182
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x100176368]
lea rax, [0x100176368]
cmp rcx, rax
je 0x100114589
test byte [rcx + 0x1c], 8
je 0x100114589
lea edx, [r9 + 0x33]
lea rax, [0x1000420d8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039c0]
mov qword [rsp + 0x20], rax
call fcn.1001062ec
lea rcx, [0x100042018]
call fcn.10011c56c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1001303c0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret