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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0xab0]
sub rsp, 0xbb0
mov rax, qword [0x14004e038]
xor rax, rsp
mov qword [rbp + 0xaa0], rax
mov rdi, rdx
mov qword [rsp + 0x40], r8
mov r12, rcx
mov dword [r8], 0xff
mov edx, 0x100
lea rcx, [rbp + 0x4a0]
mov r14, r8
xor r13b, r13b
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
lea r9, [rbp + 0x4a0]
mov qword [rsp + 0x20], rdi
lea r8, str._sdrivers_s
mov edx, 0x200
lea rcx, [rbp + 0x2a0]
call fcn.140001140
lea rdx, str..dat
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
mov rbx, rax
test rax, rax
je 0x14000330b
xor edx, edx
lea rcx, [rbp + 0x220]
mov r8d, 0x80
call fcn.140011520
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x250
call fcn.140011520
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x80
call fcn.140011520
lea rcx, [rbp + 0x220]
call fcn.140004430
lea r9, [rbp + 0x220]
mov edx, 0x80
lea r8, str.__s.dat
lea rcx, [rbp + 0x1a0]
call fcn.140001140
movaps xmm0, xmmword [rbp + 0x1a0]
lea rdx, [rsp + 0x50]
mov eax, dword [rbp + 0x1c8]
lea rcx, [rbp + 0x2a0]
movaps xmm1, xmmword [rbp + 0x1b0]
movups xmmword [rbx], xmm0
movsd xmm0, qword [rbp + 0x1c0]
movups xmmword [rbx + 0x10], xmm1
movsd qword [rbx + 0x20], xmm0
mov dword [rbx + 0x28], eax
movzx eax, word [rbp + 0x1cc]
mov word [rbx + 0x2c], ax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140003256
lea rax, [rsp + 0x7c]
mov edx, 0x200
lea r9, [rbp + 0x4a0]
mov qword [rsp + 0x20], rax
lea r8, str._sdrivers_s
lea rcx, [rbp + 0x2a0]
call fcn.140001140
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
jmp 0x14000330b
xor eax, eax
lea r9, [rbp + 0x220]
lea r8, str.__s.dat
mov qword [rbp + 0x230], rax
mov edx, 0x80
mov qword [rbp + 0x238], rax
lea rcx, [rbp + 0x1a0]
call fcn.140001140
movaps xmm2, xmmword [rbp + 0x1b0]
lea rdx, [rsp + 0x50]
movaps xmm0, xmmword [rbp + 0x1a0]
lea rcx, [rbp + 0x2a0]
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.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
lea r9, [rbp + 0x4a0]
mov edx, 0x200
lea r8, str._sdrivers_s
mov rbx, rax
lea rcx, [rbp + 0x2a0]
cmp rax, 0xffffffffffffffff
je 0x140003301
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
call fcn.140001140
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
jmp 0x14000330b
mov qword [rsp + 0x20], rdi
call fcn.140001140
lea r9, [rbp + 0x2a0]
mov qword [rsp + 0xbf0], r15
lea r8, str.FMAPOService::GetSupportFunctionFromDAT:_DAT_read:_s_n
mov edx, 8
mov rcx, r12
call fcn.140003c80
xor ebx, ebx
lea rcx, [rbp + 0x2a0]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400034c8
xor edx, edx
mov dword [rsp + 0x48], ebx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
mov edx, eax
lea ecx, [rbx + 0x40]
mov edi, eax
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_GlobalAlloc]
mov r14, rax
mov rcx, rsi
test rax, rax
jne 0x1400033b7
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test byte [r12 + 0x378], 1
je 0x140003566
lea rcx, str.FMAPOService:_Cannot_allocate_param_memory_r_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
xor al, al
jmp 0x140003513
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
cmp dword [rsp + 0x48], edi
je 0x140003408
mov rcx, r14
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_GlobalFree]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test byte [r12 + 0x378], 1
je 0x140003566
lea rcx, str.FMAPOService:_Read_param_file_fail_r_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
xor al, al
jmp 0x140003513
mov eax, dword [r14]
add rdi, r14
cmp eax, 0x99833642
jne 0x14000341d
mov r15d, 0xc
jmp 0x14000342e
cmp eax, 0x9182da6c
jne 0x14000353c
mov r15d, 0x1c
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rax, [r14 + 4]
cmp rax, rdi
jae 0x1400034ba
cmp word [rax], bx
jne 0x14000344b
cmp word [rax + 2], bx
je 0x14000346e
mov rdx, r15
nop
mov ecx, dword [rax + 4]
lea rax, [rax + 4]
add ecx, ecx
lea rax, [rax + rcx*2]
sub rdx, 1
jne 0x140003450
add rax, 4
cmp rax, rdi
jb 0x140003440
jmp 0x1400034ba
mov ecx, dword [rax + 4]
add rax, 4
add ecx, ecx
lea rdx, [rax + rcx*2]
cmp rdx, rdi
ja 0x1400034ba
mov ecx, dword [rdx + 4]
add rdx, 4
test ecx, ecx
je 0x1400034ba
mov r8d, 0x150
add rdx, 4
cmp rdx, rdi
ja 0x1400034ba
cmp word [rdx], r8w
je 0x1400034ac
inc bx
movzx eax, bx
cmp eax, ecx
jb 0x140003491
jmp 0x1400034ba
mov rcx, qword [rsp + 0x40]
mov r13b, 1
movzx eax, word [rdx + 2]
mov dword [rcx], eax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_GlobalFree]
mov r14, qword [rsp + 0x40]
test byte [r12 + 0x378], 8
je 0x14000350f
mov r9d, dword [r14]
lea rax, [rbp + 0x2a0]
movzx ecx, r13b
lea r8, str.Support_function_0x_X__return__d___s__r_n
mov qword [rsp + 0x28], rax
mov edx, 0x400
mov dword [rsp + 0x20], ecx
lea rcx, [rbp + 0x6a0]
call fcn.140001140
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
movzx eax, r13b
mov r15, qword [rsp + 0xbf0]
mov rcx, qword [rbp + 0xaa0]
xor rcx, rsp
call fcn.14000c610
add rsp, 0xbb0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, r14
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_GlobalFree]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test byte [r12 + 0x378], 1
je 0x140003566
lea rcx, str.FMAPOService:_Param_file_format_incorrect_r_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
xor al, al
jmp 0x140003513