Function at 0x140048a11
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
xor r8d, r8d
mov rbx, rcx
lea rcx, str.Disk_image_analysis:
mov qword [rsp + 0x68], r8
call fcn.140038472
mov rcx, rbx
call fcn.14004604d
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov qword [rsp + 0x30], r9
mov rcx, rax
xor r9d, r9d
mov rsi, rax
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_DeviceIoControEnumUILanguagesWFindFirstVolumeA]
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
mov ebp, eax
test rsi, rsi
je 0x140048a8a
mov rcx, rsi
call fcn.1400796c8
mov ecx, ebp
call qword [0x14011c730]
cmp rdi, 0xffffffffffffffff
jne 0x140048aae
mov rdx, rbx
lea rcx, str.__Could_not_open_image__s
mov bl, 0xff
call fcn.140038472
jmp 0x140048de2
mov rbp, qword [0x1400b67d0]
xor edx, edx
mov byte [rbp + 0x56c], 0
test rbx, rbx
je 0x140048ae7
mov rcx, rbx
call fcn.1400797e8
xor edx, edx
cmp rax, 4
jbe 0x140048ae7
lea rdx, [rbx + rax - 1]
cmp byte [rdx], 0x2e
je 0x140048ae7
cmp rbx, rdx
je 0x140048ae7
dec rdx
jmp 0x140048ad8
test rdx, rdx
lea r14, str._NULL_
lea r13, str..zip
mov r15, qword [sym.imp.msvcrt.dll_fread]
cmove rdx, r14
mov r12, r13
xor esi, esi
mov qword [rsp + 0x48], rdx
mov rdx, qword [r13]
mov rcx, qword [rsp + 0x48]
test rdx, rdx
cmove rdx, r14
call r15
test eax, eax
jne 0x140048cfa
movsxd rsi, esi
mov ecx, 0x200
shl rsi, 4
mov r12b, byte [r12 + rsi + 8]
mov byte [rbp + 0x56c], r12b
call fcn.140079730
mov rsi, rax
test rax, rax
je 0x140048cdb
mov rax, qword [0x1400b5de0]
xor ecx, ecx
mov dword [rax], ecx
cmp r12b, 8
ja 0x140048ba9
xor edx, edx
mov qword [rsp + 0x30], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rdx
xor ecx, ecx
mov qword [rsp + 0x20], rdx
mov rdx, qword [fcn.140038472]
call fcn.14004c407
mov rcx, rbx
movzx r9d, r12b
mov rdx, rsi
mov r8d, 0x200
call fcn.14004c01d
mov rbx, rax
call fcn.14004c49e
jmp 0x140048c84
cmp r12b, 9
jne 0x140048c34
mov rax, qword [0x1400b6750]
cmp dword [rax], 0
je 0x140048cc0
mov rcx, rbx
call fcn.140046f00
mov r12, rax
test rax, rax
je 0x140048ca6
mov r8d, 0x200
mov edx, 1
mov r9, rax
mov rcx, rsi
mov byte [rbp + 0x54e], 1
call fcn.1400796c0
mov rcx, r12
mov r13, rax
mov rbx, rax
call sub.msvcrt.dll_wcsstr
lea rcx, [rsi + 4]
mov r8d, 0xc
lea rdx, str.SignedImage
call fcn.140079800
test eax, eax
jne 0x140048c84
mov word [rsi + 0x1fe], 0xaa55
cmp r13, 0x200
jne 0x140048cd3
jmp 0x140048c9f
mov rcx, rbx
xor edx, edx
call fcn.140048664
mov rcx, rax
test rax, rax
je 0x140048cce
mov byte [rbp + 0x54e], 1
call fcn.140046f00
mov r12, rax
test rax, rax
je 0x140048cce
mov r9, rax
mov r8d, 0x200
mov edx, 1
mov rcx, rsi
call fcn.1400796c0
mov rcx, r12
mov rbx, rax
call sub.msvcrt.dll_wcsstr
call fcn.1400485c0
cmp rbx, 0x200
jne 0x140048cd3
cmp byte [rsi + 0x1fe], 0x55
jne 0x140048cdf
cmp byte [rsi + 0x1ff], 0xaa
jne 0x140048cdf
mov ebx, 1
jmp 0x140048cf0
call qword [sym.imp.msvcrt.dll__open]
mov rdx, rbx
lea rcx, str.Could_not_open__s:__d
mov r8d, dword [rax]
call fcn.140038472
jmp 0x140048cd3
lea rcx, str.__An_FFU_image_was_selected__but_this_system_does_not_have_FFU_support_
call fcn.140038472
jmp 0x140048cd3
call fcn.1400485c0
mov rcx, rsi
call fcn.1400796c8
xor ebx, ebx
jmp 0x140048d0b
mov rax, qword [0x1400b6790]
xor ebx, ebx
cmp dword [rax], 0
setne bl
add ebx, ebx
mov rcx, rsi
call fcn.1400796c8
jmp 0x140048d0b
inc esi
add r13, 0x10
cmp esi, 0xa
jne 0x140048b0d
jmp 0x140048cdb
cmp byte [rbp + 0x56c], 0
je 0x140048d1b
test bl, bl
setne bl
jmp 0x140048d42
xor r8d, r8d
lea rdx, str.__Image
mov rcx, rdi
mov bl, 1
call fcn.14000988a
test eax, eax
jne 0x140048d42
mov rax, qword [0x1400b6790]
cmp dword [rax], 0
setne bl
add ebx, ebx
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
test eax, eax
jne 0x140048d6c
call fcn.14003893c
lea rcx, str.__Could_not_get_image_size:__s
mov bl, 0xfe
mov rdx, rax
call fcn.140038472
jmp 0x140048dcf
mov rax, qword [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x5c], 8
mov qword [rbp + 0x530], rax
call qword [0x14011c720]
xor eax, eax
mov r8d, dword [rsp + 0x5c]
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x68]
lea r9, [rsp + 0x5c]
call qword [0x14011c6d8]
test eax, eax
je 0x140048dc9
movabs rax, 0x4d4957534d
cmp qword [rsp + 0x68], rax
sete al
movzx eax, al
mov byte [rbp + 0x54f], al
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140048de2
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CreateDirectorCreateEventACreateFileA]
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret