Function at 0x140017ad0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400de438]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_316]
nop
lea rcx, [rbp - 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_316]
nop
mov rcx, qword [0x1400e1010]
xor r15d, r15d
cmp dword [rcx - 0x10], r15d
jne 0x140017b2c
mov edx, 0x236
jmp 0x140017bbb
lea rdx, [0x1400a55f8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x1400e0f68], rax
test rax, rax
jne 0x140017b7f
mov edx, 0x238
lea rcx, [rbp - 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_8128]
mov r8, qword [0x1400e1010]
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_4648]
mov rcx, qword [rbp - 0x50]
mov edx, 0x30
xor r8d, r8d
call sub.mfc140.dll_Ordinal_2264
jmp 0x140017ef4
mov r9, rax
mov esi, 1
mov r8d, esi
lea edx, [rsi + 0xd]
lea rcx, [rbp - 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, 0x4d42
cmp word [rbp - 0x48], ax
je 0x140017bdb
mov rcx, qword [0x1400e0f68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [0x1400e0f68], r15
mov edx, 0x237
lea rcx, [rbp - 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_8128]
mov rcx, qword [rbp - 0x58]
mov edx, 0x30
xor r8d, r8d
call sub.mfc140.dll_Ordinal_2264
jmp 0x140017ef4
mov r9, qword [0x1400e0f68]
mov r8, rsi
mov edx, 0x28
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp word [rbp - 0x2c], si
jne 0x140017ece
cmp word [rbp - 0x2a], 8
jne 0x140017ece
cmp dword [rbp - 0x28], esi
ja 0x140017ece
mov eax, dword [rbp - 0x34]
mov dword [0x1400dfe58], eax
mov ecx, dword [rbp - 0x30]
mov dword [0x1400dfe5c], ecx
cmp eax, 0x7fff
jg 0x140017eba
cmp ecx, 0x7fff
jg 0x140017eba
mov r14d, dword [rbp - 0x18]
mov rdi, qword [0x1400e0fb8]
test r14d, r14d
jne 0x140017c51
mov r14d, 0x100
add rdi, 2
nop word [rax + rax]
mov ebx, r15d
mov r9, qword [0x1400e0f68]
mov r8, rsi
mov rdx, rsi
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea ecx, [rbx + 1]
test ebx, ebx
je 0x140017cd3
sub ebx, esi
je 0x140017cc9
cmp ebx, esi
mov ebx, ecx
je 0x140017cc0
cmp ecx, 4
jl 0x140017c63
movzx edx, byte [rdi - 1]
lea eax, [rdx - 0x78]
cmp al, 0xe
ja 0x140017ce9
movzx eax, byte [rdi]
sub al, 0x78
cmp al, 0xe
ja 0x140017ce9
movzx eax, byte [rdi + 1]
sub al, 0x78
cmp al, 0xe
ja 0x140017ce9
cmp dl, 0x7f
jae 0x140017cde
mov word [rdi], 0x6f6f
mov byte [rdi - 1], 0x6f
mov dl, 0x6f
jmp 0x140017ce9
movzx eax, byte [rbp - 0x60]
mov byte [rdi - 1], al
jmp 0x140017c63
movzx eax, byte [rbp - 0x60]
mov byte [rdi], al
mov ebx, ecx
jmp 0x140017c63
movzx eax, byte [rbp - 0x60]
mov byte [rdi + 1], al
mov ebx, ecx
jmp 0x140017c63
mov word [rdi], 0x8f8f
mov byte [rdi - 1], 0x8f
mov dl, 0x8f
movzx ecx, byte [rdi + 1]
shl ecx, 0x10
movzx eax, byte [rdi]
shl eax, 8
or ecx, eax
movzx eax, dl
or ecx, eax
mov dword [rdi + 2], ecx
add rdi, 0xe8
sub r14d, esi
jne 0x140017c60
xor r8d, r8d
mov edx, dword [rbp - 0x3e]
mov rcx, qword [0x1400e0f68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov ecx, dword [rbp - 0x28]
call fcn.140017f40
mov rcx, qword [0x1400e0f68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [0x1400e0f68], r15
cmp dword [0x1400de220], r15d
je 0x140017eaa
call fcn.140013b10
mov ecx, r15d
mov rdx, qword [0x1400e0fb8]
mov r8d, esi
add rdx, 0x20
cmp dword [rdx - 0x18], r15d
je 0x140017d7c
mov eax, dword [rdx - 0x14]
add eax, dword [rdx - 0xc]
add eax, dword [rdx - 8]
add eax, dword [rdx - 4]
add eax, dword [rdx]
imul eax, r8d
add ecx, eax
inc r8d
add rdx, 0xe8
cmp r8d, 0x100
jle 0x140017d62
cmp ecx, 0x18831ef5
je 0x140017eaa
cmp ecx, 0x190eb6ef
je 0x140017eaa
cmp ecx, 0x6dc2d4f
je 0x140017eaa
cmp ecx, 0x1ff75125
je 0x140017eaa
cmp ecx, 0x20532d93
je 0x140017eaa
cmp ecx, 0x1f2770e6
je 0x140017eaa
cmp ecx, 0x1f8c67ad
je 0x140017eaa
cmp ecx, 0x62d1ec1b
je 0x140017eaa
cmp ecx, 0x32cc285f
je 0x140017eaa
cmp ecx, 0x16a8f858
je 0x140017eaa
cmp ecx, 0x11cafaa5
je 0x140017eaa
cmp ecx, 0x11afd3d1
je 0x140017eaa
cmp ecx, 0xfe8f28
je 0x140017eaa
cmp ecx, 0x2d888770
je 0x140017eaa
cmp ecx, 0x11074072
je 0x140017eaa
cmp ecx, 0x112b1419
je 0x140017eaa
cmp ecx, 0x16f59f62
je 0x140017eaa
cmp ecx, 0x14d4390f
je 0x140017eaa
cmp ecx, 0x12483fab
je 0x140017eaa
cmp ecx, 0x4de6928
je 0x140017eaa
cmp ecx, 0x716013f
je 0x140017eaa
cmp ecx, 0x263a14
je 0x140017eaa
cmp ecx, 0x83aadb26
je 0x140017eaa
cmp ecx, 0x1053925d
je 0x140017eaa
cmp ecx, 0xef2d17
je 0x140017eaa
cmp ecx, 0x18540511
je 0x140017eaa
cmp ecx, 0x41b4bd
je 0x140017eaa
cmp ecx, 0x167b87e
je 0x140017eaa
call fcn.140014ba0
jmp 0x140017ef4
cmp dword [0x1400e0f3c], r15d
jne 0x140017ef7
call fcn.140018170
jmp 0x140017ef7
mov rcx, qword [0x1400e0f68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, 0x10b
jmp 0x140017ee0
mov rcx, qword [0x1400e0f68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, 0x102
mov qword [0x1400e0f68], r15
mov r8d, 0xffffffff
xor edx, edx
call sub.mfc140.dll_Ordinal_2263
mov esi, r15d
lea rcx, [rbp - 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rbp - 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
mov eax, esi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14008bb30
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret