Function at 0x140008b70
Capabilities:
Get hostname
Query environment variable
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov rax, qword [0x140019030]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov r13, rcx
xor r12d, r12d
mov word [rbp - 0x60], r12w
mov dword [rbp - 0x70], 0x400
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea edx, [r12 + 0x7d]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CRuntimeClass::IsDerivedFrom]
mov r9, qword [rsp + 0x58]
xor r8d, r8d
mov edx, 0x143
mov rcx, qword [r13 + 0x6e0]
call qword [sym.imp.USER32.dll_SendMessageW]
lea edx, [r12 + 0x7e]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CRuntimeClass::IsDerivedFrom]
lea rdx, [0x140011a9c]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_COleCurrency::operator_]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_COleCurrency::operator_]
lea rdx, [0x140011e20]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_COleCurrency::operator_]
mov r9, qword [rsp + 0x58]
xor r8d, r8d
mov edx, 0x143
mov rcx, qword [r13 + 0x6e0]
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov rdx, rax
mov r8d, operator
lea rcx, str.ADSKSIGTIMESRVR
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [r12 - 1]
lea rcx, [rsp + 0x50]
test eax, eax
jne 0x140008d42
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov rdx, rax
xor ecx, ecx
mov r8d, operator
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [r12 - 1]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
lea edx, [r12 + 0x5c]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_COleControl::ReleaseCaches]
lea rcx, [rsp + 0x50]
test eax, eax
js 0x140008d18
mov r8d, eax
lea rdx, [rbp - 0x78]
call qword [sym.imp.mfc140u.dll_CStringList::InsertBefore]
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rbp - 0x78]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
jmp 0x140008d1e
call qword [sym.imp.mfc140u.dll_CMFCToolBar::DrawButton]
call qword [sym.imp.UserData.dll_acudGetProductUILanguage]
mov r8, rax
lea r9, str.timesrvr.txt
lea rdx, str._s_s
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CPane::AllocElements]
jmp 0x140008d48
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x50]
lea rcx, [0x1400119c0]
test rax, rax
cmovne rcx, rax
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x78], 1
mov word [rsp + 0x7c], 0x101
cmp rax, 0xffffffffffffffff
je 0x140009021
lea rcx, [rsp + 0x68]
call fcn.140002ad0
movzx ecx, byte [rsp + 0x7c]
test al, al
cmovne ecx, r12d
mov byte [rsp + 0x7c], cl
mov r14d, dword [rsp + 0x78]
mov rdi, qword [rsp + 0x68]
nop word [rax + rax]
mov r15d, 0x400
mov word [rbp - 0x60], r12w
cmp rdi, 0xffffffffffffffff
je 0x140009021
cmp dword [rsp + 0x70], 1
jne 0x140009021
lea rsi, [rbp - 0x60]
cmp rdi, 0xffffffffffffffff
je 0x140008f65
cmp dword [rsp + 0x70], 1
jne 0x140008f65
mov eax, r14d
sub eax, 1
je 0x140008fb1
sub eax, 1
je 0x140008e97
sub eax, 1
je 0x140008e38
cmp eax, 1
jne 0x140008f65
mov word [rsp + 0x40], r12w
mov word [rsp + 0x48], r12w
mov dword [rbp - 0x80], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x80]
mov r8d, 2
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp - 0x80], 2
jl 0x140008f65
movzx ecx, word [rsp + 0x48]
cmp r14d, 4
jne 0x140008e8d
movzx eax, cx
shr ax, 8
shl cx, 8
or cx, ax
mov word [rsp + 0x48], cx
mov word [rsp + 0x40], cx
jmp 0x140008fd3
mov byte [rsp + 0x44], 0
mov dword [rbp - 0x7c], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x7c]
mov r8d, 1
lea rdx, [rsp + 0x44]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp - 0x7c], 0
jle 0x140008f65
movzx ecx, byte [rsp + 0x44]
cmp cl, 0x7f
ja 0x140008edb
mov word [rsp + 0x40], cx
jmp 0x140008fd3
movzx eax, cl
and al, 0xe0
cmp al, 0xc0
jne 0x140008eeb
mov ebx, 2
jmp 0x140008f09
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x140008efb
mov ebx, 3
jmp 0x140008f09
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x140008f65
mov ebx, 4
mov dword [rsp + 0x60], r12d
mov byte [rsp + 0x60], cl
mov dword [rbp - 0x78], r12d
lea r8d, [rbx - 1]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x78]
lea rdx, [rsp + 0x61]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [rbx - 1]
cmp dword [rbp - 0x78], eax
jl 0x140008f65
mov dword [rsp + 0x28], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [rsp + 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 1
je 0x140008fce
lea rax, [rbp - 0x60]
cmp rsi, rax
je 0x140009021
mov word [rsi], r12w
lea rax, [rbp - 0x60]
sub rsi, rax
sar rsi, 1
test esi, esi
jle 0x140009021
cmp word [rbp - 0x60], 0x3b
je 0x140008de0
lea r9, [rbp - 0x60]
xor r8d, r8d
mov edx, 0x143
mov rcx, qword [r13 + 0x6e0]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140008de0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140002c80
mov r14d, dword [rsp + 0x78]
mov rdi, qword [rsp + 0x68]
test al, al
je 0x140008f65
movzx ecx, word [rsp + 0x40]
movzx eax, cx
cmp eax, 0xa
je 0x140008f72
cmp eax, 0xd
je 0x140008fef
cmp eax, 0x1a
je 0x140008ffe
mov word [rsi], cx
add rsi, 2
dec r15d
cmp r15d, 1
jle 0x140008f72
jmp 0x140008e04
cmp rdi, 0xffffffffffffffff
je 0x140008f72
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x140008f72
xor r9d, r9d
xor r8d, r8d
mov edx, 0x14e
mov rcx, qword [r13 + 0x6e0]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rdi, 0xffffffffffffffff
je 0x140009049
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.14000dba0
lea r11, [rsp + 0x8b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret