Function at 0x100114484
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 [0x100176150]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
xor ebx, ebx
lea rcx, [0x100042178]
lea esi, [rbx + 1]
call fcn.10011c978
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bx
call sub.msvcrt.dll_memset
cmp rdi, rbx
jne 0x100114515
lea r9d, [rbx + 0x57]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rax, [0x100177368]
cmp rcx, rax
je 0x10011497d
test byte [rcx + 0x1c], 8
je 0x10011497d
lea edx, [r9 - 0x1d]
lea rax, [0x1000421b0]
jmp 0x100114968
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 0x10011458c
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x100177368]
lea rax, [0x100177368]
cmp rcx, rax
je 0x10011497d
test byte [rcx + 0x1c], 8
je 0x10011497d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x3b
mov rcx, qword [0x100177368]
mov r9d, eax
lea rax, [0x10003fae0]
jmp 0x100114968
mov ecx, 0xc
call fcn.10011ce34
mov qword [rdi + 0x18], rax
cmp rax, rbx
jne 0x1001145db
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rax, [0x100177368]
cmp rcx, rax
je 0x10011497d
test byte [rcx + 0x1c], 8
je 0x10011497d
lea edx, [r9 + 0x2e]
lea rax, [0x1000421c0]
jmp 0x100114968
lea rcx, [0x1000421d8]
mov r8d, 6
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, ebx
jne 0x100114631
mov r9d, 0xa
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rax, [0x100177368]
cmp rcx, rax
je 0x10011497d
test byte [rcx + 0x1c], 8
je 0x10011497d
lea edx, [r9 + 0x33]
lea rax, [0x100042208]
jmp 0x100114968
cmp eax, 6
jbe 0x100114672
mov r9d, 0x32
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rax, [0x100177368]
cmp rcx, rax
je 0x10011497d
test byte [rcx + 0x1c], 8
je 0x10011497d
lea edx, [r9 + 0xc]
lea rax, [0x100042220]
jmp 0x100114968
lea rcx, [rdi + 0x58]
mov dword [rcx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, ebx
jne 0x1001146c1
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x100177368]
lea rax, [0x100177368]
cmp rcx, rax
je 0x10011497d
test byte [rcx + 0x1c], 8
je 0x10011497d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x3f
jmp 0x100114576
call fcn.100117680
mov dword [rdi + 0x20], eax
cmp eax, ebx
jne 0x10011470a
mov r9d, 0x65e
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rax, [0x100177368]
cmp rcx, rax
je 0x10011497d
test byte [rcx + 0x1c], 8
je 0x10011497d
mov edx, 0x40
lea rax, [0x100041d00]
jmp 0x100114968
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.10011ce34
mov qword [rdi], rax
cmp rax, rbx
je 0x100114939
mov edx, ebp
mov rcx, rax
mov r12d, ebp
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov ebp, eax
cmp eax, ebx
je 0x100114906
cmp eax, r12d
ja 0x10011470f
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.10011ce34
mov qword [rdi + 8], rax
cmp rax, rbx
je 0x1001148cd
mov edx, ebp
mov rcx, rax
mov r12d, ebp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
cmp eax, ebx
je 0x100114892
cmp eax, r12d
ja 0x10011475a
mov rax, qword [rdi + 8]
lea rcx, [rsp + 0x30]
mov edx, 0x104
mov word [rax + r12*2], bx
call fcn.100113060
cmp eax, ebx
jne 0x1001147f2
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x100177368]
lea rax, [0x100177368]
cmp rcx, rax
je 0x10011497d
test byte [rcx + 0x1c], 8
je 0x10011497d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x45
jmp 0x100114576
lea rcx, [rdi + 0x174]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
jne 0x10011483f
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x100177368]
lea rax, [0x100177368]
cmp rcx, rax
je 0x10011497d
test byte [rcx + 0x1c], 8
je 0x10011497d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x46
jmp 0x100114576
lea rcx, [rsp + 0x30]
call fcn.10011ce74
mov qword [rdi + 0x10], rax
cmp rax, rbx
jne 0x10011497d
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rax, [0x100177368]
cmp rcx, rax
je 0x10011497d
test byte [rcx + 0x1c], 8
je 0x10011497d
lea edx, [r9 + 0x39]
lea rax, [0x100042278]
jmp 0x100114968
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x100177368]
lea rax, [0x100177368]
cmp rcx, rax
je 0x10011497d
test byte [rcx + 0x1c], 8
je 0x10011497d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x44
jmp 0x100114576
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rax, [0x100177368]
cmp rcx, rax
je 0x10011497d
test byte [rcx + 0x1c], 8
je 0x10011497d
lea edx, [r9 + 0x35]
lea rax, [0x100042258]
jmp 0x100114968
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x100177368]
lea rax, [0x100177368]
cmp rcx, rax
je 0x10011497d
test byte [rcx + 0x1c], 8
je 0x10011497d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x42
jmp 0x100114576
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rax, [0x100177368]
cmp rcx, rax
je 0x10011497d
test byte [rcx + 0x1c], 8
je 0x10011497d
lea edx, [r9 + 0x33]
lea rax, [0x100042238]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000039c0]
mov qword [rsp + 0x20], rax
call fcn.100106904
lea rcx, [0x100042178]
call fcn.10011c9b8
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.100130830
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret