Function at 0x140012120
Capabilities:
Query environment variable
Read .ini file
Set environment variable

Disassembly:
push rbp
lea rbp, [rsp - 0x1090]
mov eax, 0x1190
call fcn.14001d860
sub rsp, rax
mov rax, qword [0x1400623d0]
xor rax, rsp
mov qword [rbp + 0x1080], rax
mov qword [rsp + 0x11a8], rdi
lea rcx, [rbp + 0x884]
xor edi, edi
xor edx, edx
mov r8d, 0x3fc
mov dword [rbp + 0x880], edi
call fcn.14001a650
lea rcx, [rbp + 0xc84]
xor edx, edx
mov r8d, 0x3fc
mov dword [rbp + 0xc80], edi
call fcn.14001a650
lea rcx, [rbp + 0x484]
xor edx, edx
mov r8d, 0x3fc
mov dword [rbp + 0x480], edi
call fcn.14001a650
lea rcx, [rbp + 0x284]
xor edx, edx
mov r8d, 0x1fc
mov dword [rbp + 0x280], edi
call fcn.14001a650
lea rdx, [rbp + 0x880]
lea rcx, str.windir
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, edi
lea rdx, str.c:hp_supporthpsysdrv.dat
nop dword [rax]
movzx ecx, word [rax + rdx]
lea rax, [rax + 2]
mov word [rbp + rax + 0x47e], cx
test cx, cx
jne 0x1400121e0
lea r8, [rbp + 0x880]
lea rdx, str._s_system32drivers103C_HP
lea rcx, [rbp + 0xc80]
call fcn.14001c9d4
lea rax, [rbp + 0x480]
lea r9, [rbp + 0x280]
mov qword [rsp + 0x28], rax
lea r8, [0x1400476d0]
lea rdx, str.BFirst
lea rcx, str.HPSYSDRV
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x1400123f8
lea rcx, [rbp + 0x14]
xor edx, edx
mov r8d, 0x24c
call fcn.14001a650
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0xc80]
mov dword [rbp + 0x10], 7
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400123f8
mov rcx, rax
mov qword [rsp + 0x11a0], rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x14]
mov word [rsp + 0x50], di
mov qword [rsp + 0x52], rax
mov dword [rsp + 0x5a], eax
mov word [rsp + 0x5e], ax
mov word [rsp + 0x40], di
mov qword [rsp + 0x42], rax
mov dword [rsp + 0x4a], eax
mov word [rsp + 0x4e], ax
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
lea rdx, [0x1400488fc]
lea rcx, [rbp + 0x3c]
call fcn.14001aef8
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test rbx, rbx
je 0x140012396
lea rdx, [rbx + 4]
lea rcx, [rbp + 0x268]
mov r8d, 2
mov qword [rbp + 0x268], rdi
mov qword [rbp + 0x270], rdi
mov qword [rbp + 0x260], rdi
call fcn.14001ae00
lea rdx, [rbx + 8]
lea rcx, [rbp + 0x270]
mov r8d, 2
call fcn.14001ae00
lea rdx, [rbx + 0xc]
lea rcx, [rbp + 0x260]
mov r8d, 2
call fcn.14001ae00
lea rcx, [rbp + 0x268]
call fcn.14001bbec
mov ecx, 0x7d0
add ax, cx
lea rcx, [rbp + 0x270]
mov word [rsp + 0x50], ax
call fcn.14001bbec
lea rcx, [rbp + 0x260]
mov word [rsp + 0x52], ax
call fcn.14001bbec
mov word [rsp + 0x56], ax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_TzSpecificLocalTimeToSystemTime]
movzx ecx, word [rsp + 0x4a]
movzx edx, word [rsp + 0x48]
movzx eax, word [rsp + 0x4c]
movzx r10d, word [rsp + 0x40]
movzx r9d, word [rsp + 0x46]
movzx r8d, word [rsp + 0x42]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
lea rcx, [rbp + 0x280]
lea rdx, str._02d__02d__4d__02d:_02d:_02d_UTC
mov dword [rsp + 0x20], r10d
call fcn.14001c9d4
mov rbx, qword [rsp + 0x11a0]
mov rdi, qword [rsp + 0x11a8]
lea rcx, [rbp + 0x280]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140012410
test rax, rax
je 0x140012433
lea rdx, [rbp + 0x280]
lea rcx, str.BORNON
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rbp + 0x1080]
xor rcx, rsp
call fcn.14001a120
add rsp, 0x1190
pop rbp
ret