Function at 0x14001b3e0
Capabilities:
Get common file path
Get file size
Print debug messages
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xac0]
sub rsp, 0xbc0
mov rax, qword [0x14007d038]
xor rax, rsp
mov qword [rbp + 0xab0], rax
mov r13, r8
mov qword [rsp + 0x48], r8
mov rsi, rdx
mov rdi, rcx
mov r15d, 0x200
lea rcx, [rbp + 0x2b0]
mov r8d, r15d
xor edx, edx
call fcn.140028230
xor r12b, r12b
mov dword [r13], 0xff
mov edx, 0x100
mov byte [rsp + 0x43], r12b
lea rcx, [rbp + 0x4b0]
mov byte [rsp + 0x41], r12b
mov byte [rsp + 0x42], r12b
mov byte [rsp + 0x40], r12b
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r9, [rbp + 0x4b0]
mov qword [rsp + 0x20], rsi
lea r8, str._sdrivers_s
mov edx, r15d
lea rcx, [rbp + 0x2b0]
call fcn.140002050
lea rdx, str..dat
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
mov rbx, rax
test rax, rax
je 0x14001b65d
xor edx, edx
lea rcx, [rbp + 0x230]
mov r8d, 0x80
call fcn.140028230
xor edx, edx
lea r8d, [r15 + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140028230
xor edx, edx
lea rcx, [rbp + 0x1b0]
mov r8d, 0x80
call fcn.140028230
lea rdx, [rbp + 0x230]
call fcn.1400157a0
lea r9, [rbp + 0x230]
mov edx, 8
lea r8, str.Metering::Get_DatIDFromDefaultSpk:_s_n
mov rcx, rdi
call fcn.1400171b0
lea r9, [rbp + 0x230]
mov edx, 0x80
lea r8, str.__s.dat
lea rcx, [rbp + 0x1b0]
call fcn.140002050
movaps xmm0, xmmword [rbp + 0x1b0]
lea rdx, [rsp + 0x60]
mov eax, dword [rbp + 0x1d8]
lea rcx, [rbp + 0x2b0]
movaps xmm1, xmmword [rbp + 0x1c0]
movups xmmword [rbx], xmm0
movsd xmm0, qword [rbp + 0x1d0]
movups xmmword [rbx + 0x10], xmm1
movsd qword [rbx + 0x20], xmm0
mov dword [rbx + 0x28], eax
movzx eax, word [rbp + 0x1dc]
mov word [rbx + 0x2c], ax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14001b5ab
lea rax, [rbp - 0x74]
mov edx, r15d
lea r9, [rbp + 0x4b0]
mov qword [rsp + 0x20], rax
lea r8, str._sdrivers_s
lea rcx, [rbp + 0x2b0]
call fcn.140002050
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14001b65d
xor eax, eax
lea r9, [rbp + 0x230]
lea r8, str.__s.dat
mov qword [rbp + 0x240], rax
mov edx, 0x80
mov qword [rbp + 0x248], rax
lea rcx, [rbp + 0x1b0]
call fcn.140002050
movaps xmm2, xmmword [rbp + 0x1c0]
lea rdx, [rsp + 0x60]
movaps xmm0, xmmword [rbp + 0x1b0]
lea rcx, [rbp + 0x2b0]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm2
movdqa xmm0, xmm2
pextrw eax, xmm2, 6
psrldq xmm0, 8
movd dword [rbx + 0x18], xmm0
mov word [rbx + 0x1c], ax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea r9, [rbp + 0x4b0]
mov rdx, r15
lea r8, str._sdrivers_s
mov rbx, rax
lea rcx, [rbp + 0x2b0]
cmp rax, 0xffffffffffffffff
je 0x14001b653
lea rax, [rbp - 0x74]
mov qword [rsp + 0x20], rax
call fcn.140002050
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14001b65d
mov qword [rsp + 0x20], rsi
call fcn.140002050
lea r9, [rbp + 0x2b0]
mov edx, 8
lea r8, str.Metering::GetSupportFunctionFromDAT:_DAT_read:_s_n
mov rcx, rdi
call fcn.1400171b0
xor r15d, r15d
lea rcx, [rbp + 0x2b0]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], r15d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r15 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov edx, 0x400
cmp rax, 0xffffffffffffffff
je 0x14001babe
xor edx, edx
mov dword [rsp + 0x58], r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
lea ecx, [r15 + 0x40]
mov esi, eax
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x50], rax
mov r13, rax
mov rcx, rbx
test rax, rax
jne 0x14001b710
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [rdi + 0x298], 1
je 0x14001bb55
lea rcx, str.FMAPOService:_Cannot_allocate_param_memory_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
jmp 0x14001bb03
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r15
mov r8d, esi
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x58], esi
je 0x14001b75f
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [rdi + 0x298], 1
je 0x14001bb55
lea rcx, str.FMAPOService:_Read_param_file_fail_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
jmp 0x14001bb03
mov eax, dword [r13]
add r14, r13
cmp eax, 0x99833642
jne 0x14001b774
mov esi, 0xc
jmp 0x14001b784
cmp eax, 0x9182da6c
jne 0x14001bb2d
mov esi, 0x1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rbx, [r13 + 4]
cmp rbx, r14
jae 0x14001baab
nop word [rax + rax]
cmp word [rbx], r15w
jne 0x14001b7ad
cmp word [rbx + 2], r15w
je 0x14001b7d1
mov rcx, rsi
mov eax, dword [rbx + 4]
lea rbx, [rbx + 4]
add eax, eax
lea rbx, [rbx + rax*2]
sub rcx, 1
jne 0x14001b7b0
add rbx, 4
cmp rbx, r14
jb 0x14001b7a0
jmp 0x14001baab
mov r8d, dword [rbx + 4]
add rbx, 4
xor dl, dl
movzx ecx, r15w
mov r10d, 0x40fe
mov r9d, 0xfe
test r8d, r8d
je 0x14001b846
add rbx, 4
cmp rbx, r14
ja 0x14001b846
movzx eax, word [rbx]
cmp ax, r10w
jne 0x14001b812
movzx eax, word [rbx + 2]
mov dl, 1
mov word [rdi + 0x266], ax
movzx eax, word [rbx]
cmp ax, r9w
je 0x14001b829
test dl, dl
jne 0x14001b834
inc cx
movzx eax, cx
cmp eax, r8d
jb 0x14001b7f0
jmp 0x14001b846
movzx eax, word [rbx + 2]
mov word [rdi + 0x264], ax
movzx eax, cx
sub r8d, eax
lea eax, [r8*2 - 2]
lea rbx, [rbx + rax*2]
mov r12d, dword [rbx + 4]
add rbx, 4
xor sil, sil
test r12d, r12d
je 0x14001baa8
mov edx, 0x150
mov dword [rsp + 0x44], 0x13
xor r13b, r13b
lea ecx, [rdx + 3]
lea r8d, [rdx + 1]
lea r11d, [rdx + 2]
nop word [rax + rax]
add rbx, 4
cmp rbx, r14
ja 0x14001ba96
movzx eax, word [rbx]
cmp ax, dx
jne 0x14001b8ab
mov rcx, qword [rsp + 0x48]
mov r13b, 1
movzx eax, word [rbx + 2]
mov dword [rcx], eax
mov ecx, 0x153
movzx eax, word [rbx]
cmp ax, r8w
jne 0x14001b8c5
movzx eax, word [rbx + 2]
mov dword [rdi + 0x3d0], eax
mov byte [rdi + 0x3d4], 1
movzx eax, word [rbx]
cmp ax, r11w
jne 0x14001b8df
movzx eax, word [rbx + 2]
mov dword [rdi + 0x3d8], eax
mov byte [rdi + 0x3dc], 1
movzx eax, word [rbx]
cmp ax, cx
jne 0x14001b970
movzx ecx, word [rbx + 2]
mov eax, 0xf
test cl, 4
mov byte [rsp + 0x43], 1
cmove ax, word [rsp + 0x44]
mov word [rdi + 0x248], ax
mov eax, 0x200
mov dword [rdi + 0x24c], ecx
test ax, cx
je 0x14001b920
mov dword [rdi + 0x270], 1
mov eax, 0x400
test ax, cx
je 0x14001b934
mov dword [rdi + 0x274], 1
mov eax, 0x800
test ax, cx
je 0x14001b948
mov dword [rdi + 0x278], 1
mov eax, 0x1000
test ax, cx
je 0x14001b95c
mov dword [rdi + 0x27c], 1
mov eax, 0x2000
test ax, cx
je 0x14001b970
mov dword [rdi + 0x280], 1
movzx eax, word [rbx]
mov ecx, 0x154
cmp ax, cx
jne 0x14001b990
movzx eax, word [rbx + 2]
mov word [rdi + 0x250], ax
movzx eax, word [rbx]
mov byte [rsp + 0x41], 1
mov ecx, 0x155
cmp ax, cx
jne 0x14001b9ad
movzx eax, word [rbx + 2]
mov word [rdi + 0x252], ax
movzx eax, word [rbx]
mov byte [rsp + 0x42], 1
mov ecx, 0x18c
cmp ax, cx
jne 0x14001b9ca
movzx eax, word [rbx + 2]
mov word [rdi + 0x254], ax
movzx eax, word [rbx]
mov byte [rsp + 0x40], 1
cmp ax, r10w
jne 0x14001b9e1
movzx eax, word [rbx + 2]
mov sil, 1
mov word [rdi + 0x262], ax
movzx eax, word [rbx]
cmp ax, r9w
jne 0x14001b9f5
movzx eax, word [rbx + 2]
mov sil, 1
mov word [rdi + 0x260], ax
test byte [rdi + 0x298], 0x40
je 0x14001ba48
movzx eax, word [rbx + 2]
lea r8, str.Addr:0x_4X__0x_4X_r_n
movzx r9d, word [rbx]
lea rcx, [rbp + 0x6b0]
mov dword [rsp + 0x20], eax
mov eax, 0x400
mov edx, eax
call fcn.140002050
lea rcx, [rbp + 0x6b0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, 0x150
mov r10d, 0x40fe
lea r9d, [rdx - 0x52]
lea r8d, [rdx + 1]
lea r11d, [rdx + 2]
cmp byte [rdi + 0x3d4], 0
je 0x14001ba80
test r13b, r13b
je 0x14001ba80
cmp byte [rdi + 0x3dc], 0
je 0x14001ba80
cmp byte [rsp + 0x41], 0
je 0x14001ba80
cmp byte [rsp + 0x42], 0
je 0x14001ba80
cmp byte [rsp + 0x43], 0
je 0x14001ba80
cmp byte [rsp + 0x40], 0
je 0x14001ba80
test sil, sil
jne 0x14001ba96
inc r15w
mov ecx, 0x153
movzx eax, r15w
cmp eax, r12d
jb 0x14001b880
mov byte [rsp + 0x40], r13b
movzx r12d, byte [rsp + 0x40]
mov r13, qword [rsp + 0x50]
jmp 0x14001baab
xor r12b, r12b
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r13, qword [rsp + 0x48]
mov edx, 0x400
test byte [rdi + 0x298], 0x40
je 0x14001baff
mov r9d, dword [r13]
lea rax, [rbp + 0x2b0]
movzx ecx, r12b
lea r8, str.Support_function_0x_X__return__d___s__r_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
lea rcx, [rbp + 0x6b0]
call fcn.140002050
lea rcx, [rbp + 0x6b0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
movzx eax, r12b
mov rcx, qword [rbp + 0xab0]
xor rcx, rsp
call fcn.140024cf0
mov rbx, qword [rsp + 0xc18]
add rsp, 0xbc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [rdi + 0x298], 1
je 0x14001bb55
lea rcx, str.FMAPOService:_Param_file_format_incorrect_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
jmp 0x14001bb03