Function at 0x140011990
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 [0x14006c038]
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.14001cd80
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 0x140011c0d
xor edx, edx
lea rcx, [rbp + 0x230]
mov r8d, 0x80
call fcn.14001cd80
xor edx, edx
lea r8d, [r15 + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14001cd80
xor edx, edx
lea rcx, [rbp + 0x1b0]
mov r8d, 0x80
call fcn.14001cd80
lea rdx, [rbp + 0x230]
call fcn.14000c2f0
lea r9, [rbp + 0x230]
mov edx, 8
lea r8, str.Metering::Get_DatIDFromDefaultSpk:_s_n
mov rcx, rdi
call fcn.14000e0f0
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 0x140011b5b
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 0x140011c0d
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 0x140011c03
lea rax, [rbp - 0x74]
mov qword [rsp + 0x20], rax
call fcn.140002050
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140011c0d
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.14000e0f0
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 0x140012042
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 0x140011cc0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [rdi + 0x290], 1
je 0x1400120d9
lea rcx, str.FMAPOService:_Cannot_allocate_param_memory_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
jmp 0x140012087
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 0x140011d0f
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [rdi + 0x290], 1
je 0x1400120d9
lea rcx, str.FMAPOService:_Read_param_file_fail_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
jmp 0x140012087
mov eax, dword [r13]
add r14, r13
cmp eax, 0x99833642
jne 0x140011d24
mov esi, 0xc
jmp 0x140011d34
cmp eax, 0x9182da6c
jne 0x1400120b1
mov esi, 0x1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rbx, [r13 + 4]
cmp rbx, r14
jae 0x14001202f
nop word [rax + rax]
cmp word [rbx], r15w
jne 0x140011d5d
cmp word [rbx + 2], r15w
je 0x140011d81
mov rcx, rsi
mov eax, dword [rbx + 4]
lea rbx, [rbx + 4]
add eax, eax
lea rbx, [rbx + rax*2]
sub rcx, 1
jne 0x140011d60
add rbx, 4
cmp rbx, r14
jb 0x140011d50
jmp 0x14001202f
mov r8d, dword [rbx + 4]
add rbx, 4
xor dl, dl
movzx ecx, r15w
mov r10d, 0x40fe
mov r9d, 0xfe
test r8d, r8d
je 0x140011df6
add rbx, 4
cmp rbx, r14
ja 0x140011df6
movzx eax, word [rbx]
cmp ax, r10w
jne 0x140011dc2
movzx eax, word [rbx + 2]
mov dl, 1
mov word [rdi + 0x266], ax
movzx eax, word [rbx]
cmp ax, r9w
je 0x140011dd9
test dl, dl
jne 0x140011de4
inc cx
movzx eax, cx
cmp eax, r8d
jb 0x140011da0
jmp 0x140011df6
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 0x14001202c
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 0x14001201a
movzx eax, word [rbx]
cmp ax, dx
jne 0x140011e5b
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 0x140011e75
movzx eax, word [rbx + 2]
mov dword [rdi + 0x3c0], eax
mov byte [rdi + 0x3c4], 1
movzx eax, word [rbx]
cmp ax, r11w
jne 0x140011e8f
movzx eax, word [rbx + 2]
mov dword [rdi + 0x3c8], eax
mov byte [rdi + 0x3cc], 1
movzx eax, word [rbx]
cmp ax, cx
jne 0x140011ef4
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 0x140011ecc
mov dword [rdi + 0x270], 1
mov eax, 0x400
test ax, cx
je 0x140011ee0
mov dword [rdi + 0x274], 1
mov eax, 0x800
test ax, cx
je 0x140011ef4
mov dword [rdi + 0x278], 1
movzx eax, word [rbx]
mov ecx, 0x154
cmp ax, cx
jne 0x140011f14
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 0x140011f31
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 0x140011f4e
movzx eax, word [rbx + 2]
mov word [rdi + 0x254], ax
movzx eax, word [rbx]
mov byte [rsp + 0x40], 1
cmp ax, r10w
jne 0x140011f65
movzx eax, word [rbx + 2]
mov sil, 1
mov word [rdi + 0x262], ax
movzx eax, word [rbx]
cmp ax, r9w
jne 0x140011f79
movzx eax, word [rbx + 2]
mov sil, 1
mov word [rdi + 0x260], ax
test byte [rdi + 0x290], 0x40
je 0x140011fcc
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 + 0x3c4], 0
je 0x140012004
test r13b, r13b
je 0x140012004
cmp byte [rdi + 0x3cc], 0
je 0x140012004
cmp byte [rsp + 0x41], 0
je 0x140012004
cmp byte [rsp + 0x42], 0
je 0x140012004
cmp byte [rsp + 0x43], 0
je 0x140012004
cmp byte [rsp + 0x40], 0
je 0x140012004
test sil, sil
jne 0x14001201a
inc r15w
mov ecx, 0x153
movzx eax, r15w
cmp eax, r12d
jb 0x140011e30
mov byte [rsp + 0x40], r13b
movzx r12d, byte [rsp + 0x40]
mov r13, qword [rsp + 0x50]
jmp 0x14001202f
xor r12b, r12b
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r13, qword [rsp + 0x48]
mov edx, 0x400
test byte [rdi + 0x290], 0x40
je 0x140012083
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.140019840
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 + 0x290], 1
je 0x1400120d9
lea rcx, str.FMAPOService:_Param_file_format_incorrect_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
jmp 0x140012087