Function at 0x140003b60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
lea rdx, [0x14000c210]
lea rcx, str...USBCPDFW.DBG
mov edi, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r14, rax
test rax, rax
je 0x140003df9
xor edx, edx
mov qword [rsp + 0x30], rbp
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rbp, eax
cmp rbp, 0xa
jb 0x140003deb
mov qword [rsp + 0x38], rsi
lfence
mov rax, 0xffffffffffffffff
mov rcx, rbp
add rcx, 1
cmovb rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140003de6
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r8, rbp
mov r9, r14
mov ebp, 1
mov rcx, rsi
mov edx, ebp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x140003ddd
cmp byte [rsi], 0x50
jne 0x140003ddd
cmp byte [rsi + 1], 0x44
jne 0x140003ddd
movsx ecx, byte [rsi + 2]
mov word [0x14009a5ac], bp
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140003c43
mov eax, ecx
add eax, 0xffffffd0
jmp 0x140003c5e
lea eax, [rcx - 0x61]
cmp al, 5
jbe 0x140003c56
mov eax, ebx
cmp cl, 0x41
jl 0x140003c5e
cmp cl, 0x46
jg 0x140003c5e
mov eax, ecx
or eax, 0x20
sub eax, 0x57
movsx ecx, byte [rsi + 3]
movzx r8d, al
shl r8d, 4
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140003c78
mov eax, ecx
add eax, 0xffffffd0
jmp 0x140003c93
lea eax, [rcx - 0x61]
cmp al, 5
jbe 0x140003c8b
mov eax, ebx
cmp cl, 0x41
jl 0x140003c93
cmp cl, 0x46
jg 0x140003c93
mov eax, ecx
or eax, 0x20
sub eax, 0x57
movsx ecx, byte [rsi + 4]
movzx edx, al
or edx, r8d
shl edx, 4
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140003cae
mov eax, ecx
add eax, 0xffffffd0
jmp 0x140003cc9
lea eax, [rcx - 0x61]
cmp al, 5
jbe 0x140003cc1
mov eax, ebx
cmp cl, 0x41
jl 0x140003cc9
cmp cl, 0x46
jg 0x140003cc9
mov eax, ecx
or eax, 0x20
sub eax, 0x57
movsx ecx, byte [rsi + 5]
movzx r8d, al
or r8d, edx
shl r8d, 4
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140003ce6
mov eax, ecx
add eax, 0xffffffd0
jmp 0x140003d01
lea eax, [rcx - 0x61]
cmp al, 5
jbe 0x140003cf9
mov eax, ebx
cmp cl, 0x41
jl 0x140003d01
cmp cl, 0x46
jg 0x140003d01
mov eax, ecx
or eax, 0x20
sub eax, 0x57
movsx ecx, byte [rsi + 6]
movzx edx, al
or edx, r8d
shl edx, 4
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140003d1c
mov eax, ecx
add eax, 0xffffffd0
jmp 0x140003d37
lea eax, [rcx - 0x61]
cmp al, 5
jbe 0x140003d2f
mov eax, ebx
cmp cl, 0x41
jl 0x140003d37
cmp cl, 0x46
jg 0x140003d37
mov eax, ecx
or eax, 0x20
sub eax, 0x57
movsx ecx, byte [rsi + 7]
movzx r8d, al
or r8d, edx
shl r8d, 4
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140003d54
mov eax, ecx
add eax, 0xffffffd0
jmp 0x140003d6f
lea eax, [rcx - 0x61]
cmp al, 5
jbe 0x140003d67
mov eax, ebx
cmp cl, 0x41
jl 0x140003d6f
cmp cl, 0x46
jg 0x140003d6f
mov eax, ecx
or eax, 0x20
sub eax, 0x57
movsx ecx, byte [rsi + 8]
movzx edx, al
or edx, r8d
shl edx, 4
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140003d8a
mov eax, ecx
add eax, 0xffffffd0
jmp 0x140003da5
lea eax, [rcx - 0x61]
cmp al, 5
jbe 0x140003d9d
mov eax, ebx
cmp cl, 0x41
jl 0x140003da5
cmp cl, 0x46
jg 0x140003da5
mov eax, ecx
or eax, 0x20
sub eax, 0x57
movsx ecx, byte [rsi + 9]
movzx edi, al
or edi, edx
shl edi, 4
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140003dbf
mov ebx, ecx
add ebx, 0xffffffd0
jmp 0x140003dd8
lea eax, [rcx - 0x61]
cmp al, 5
jbe 0x140003dd0
cmp cl, 0x41
jl 0x140003dd8
cmp cl, 0x46
jg 0x140003dd8
mov ebx, ecx
or ebx, 0x20
sub ebx, 0x57
movzx ecx, bl
or edi, ecx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rsp + 0x38]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret