Function at 0x14001d1d0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x2e8]
sub rsp, 0x3d0
mov rax, qword [0x140162470]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
xor r14d, r14d
mov rsi, r8
lea rcx, [rsp + 0x72]
lea r8d, [r14 + 0x3e]
xor edx, edx
mov word [rsp + 0x70], r14w
call fcn.1400ea570
lea r8d, [r14 + 0x7e]
lea rcx, [rbp - 0x4e]
xor edx, edx
mov word [rbp - 0x50], r14w
call fcn.1400ea570
mov edi, r14d
lea ebx, [r14 + 0xa]
mov edx, 0x1f05ff08
mov ecx, 0x25b4493a
mov r8d, 0xd366da68
call fcn.140001720
lea rcx, [rbp - 0x50]
mov r8d, ebx
mov rdx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp - 0x50]
mov rcx, 0xffffffff80000002
call fcn.14001c1b4
test al, al
je 0x14001d2c4
mov edx, 0xd23259
mov ecx, 0x3a6387b9
mov r8d, 0xccb11715
call fcn.140001720
lea rcx, [rbp - 0x50]
mov r8d, ebx
mov rdx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x70]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], r14w
jne 0x14001d2a1
lea r8, [rbp - 0x50]
xor edx, edx
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x14001d2b1
inc edi
dec ebx
cmp ebx, 8
jge 0x14001d23a
cmp word [rsp + 0x70], r14w
je 0x14001d475
mov edx, 0x83ae8ddd
mov ecx, 0xb91f3833
mov r8d, 0x4fcda899
call fcn.140001720
lea r8, [rsp + 0x72]
lea rcx, [rbp + 0x30]
mov rdx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
or dword [rsp + 0x4c], 0xffffffff
or dword [rsp + 0x50], 0xffffffff
lea rax, [rbp + 0x30]
mov dword [rsp + 0x48], 7
mov qword [rsp + 0x40], rax
call fcn.14001d67c
lea rdx, [rbp + 0xb0]
mov ecx, 0x23
call fcn.14001c10c
mov edx, 0x2ae9091c
mov ecx, 0x1058bf60
mov r8d, 0xe68a2c4c
movsxd rbx, eax
call fcn.140001720
lea rcx, [rbp + 0xb0]
lea rcx, [rcx + rbx*2]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov r12d, 3
mov qword [rsp + 0x30], r14
lea rcx, [rbp + 0xb0]
lea r8d, [r12 - 2]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001d468
xor eax, eax
lea r9, [rsp + 0x58]
lea r8d, [r12 + 5]
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov byte [rsp + 0x60], r14b
mov dword [rsp + 0x61], eax
mov word [rsp + 0x65], ax
mov byte [rsp + 0x67], al
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x58], 8
jne 0x14001d45f
mov cl, byte [rsp + 0x60]
cmp cl, 0x88
jne 0x14001d3ed
mov dword [rsp + 0x4c], 1
jmp 0x14001d40b
cmp cl, 0x8b
jne 0x14001d3fc
mov dword [rsp + 0x4c], 2
jmp 0x14001d40b
mov eax, dword [rsp + 0x4c]
cmp cl, 0x8d
cmove eax, r12d
mov dword [rsp + 0x4c], eax
mov al, byte [rsp + 0x64]
cmp al, 0x8f
je 0x14001d457
cmp al, 0x8c
je 0x14001d457
cmp al, 0x8d
jne 0x14001d425
mov dword [rsp + 0x50], 4
jmp 0x14001d45f
cmp al, 0x8b
jne 0x14001d433
mov dword [rsp + 0x50], 2
jmp 0x14001d45f
cmp al, 0x8a
jne 0x14001d43e
mov dword [rsp + 0x50], r12d
jmp 0x14001d45f
cmp al, 0x88
jne 0x14001d44c
mov dword [rsp + 0x50], 1
jmp 0x14001d45f
cmp al, 0x89
jne 0x14001d45f
mov dword [rsp + 0x50], r14d
jmp 0x14001d45f
mov dword [rsp + 0x50], 5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.140016ec0
mov eax, edi
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.1400e7da0
lea r11, [rsp + 0x3d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret