Function at 0x1400a0930
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r12, r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor r15d, r15d
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1400a0dba
mov rsi, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r15d, r15d
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x1400a0db1
mov rdi, rax
mov qword [rsp + 0x20], 0
xor r15d, r15d
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x1400a0da8
mov r14, rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rsi
movsxd rsi, dword [rax + 0x3c]
mov edx, dword [rax + rsi + 0x50]
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
mov r8d, dword [r14 + rsi + 0x54]
mov rcx, rax
mov rdx, r14
call sub.msvcrt.dll_memcpy
cmp word [r14 + rsi + 6], 0
je 0x1400a0a66
movsxd rax, dword [r14 + 0x3c]
lea rdi, [rax + r14]
add rdi, 0x11c
xor ebx, ebx
nop dword [rax + rax]
mov ecx, dword [rdi - 8]
mov r8d, dword [rdi - 4]
add rcx, r15
mov edx, dword [rdi]
add rdx, r14
call sub.msvcrt.dll_memcpy
inc rbx
movzx eax, word [r14 + rsi + 6]
add rdi, 0x28
cmp rbx, rax
jb 0x1400a0a40
mov qword [rsp + 0x38], r14
movsxd rax, dword [r15 + 0x3c]
mov rcx, qword [r15 + rax + 0x30]
mov qword [r15 + rax + 0x30], r12
mov edi, dword [r15 + rax + 0xb4]
test edi, edi
je 0x1400a0bbf
mov r14d, dword [r15 + rax + 0xb0]
mov rdx, r14
add rdx, r15
mov r8, rcx
shr r8, 0x10
mov r9, r12
shr r9, 0x10
movabs r10, 0x1fffffff8
lea r11, [0x1400a0dd0]
jmp 0x1400a0aea
mov ebx, dword [rdx + 4]
mov r14d, dword [r15 + rax + 0xb0]
mov edi, dword [r15 + rax + 0xb4]
add rdx, rbx
mov esi, r14d
add rsi, r15
mov ebx, edi
add rbx, rsi
cmp rdx, rbx
jae 0x1400a0bbf
mov ebx, dword [rdx + 4]
test rbx, rbx
je 0x1400a0bbf
lea rsi, [rbx + r10]
shr rsi, 1
test esi, esi
je 0x1400a0ad3
mov edi, dword [rdx]
add rdi, r15
xor r14d, r14d
jmp 0x1400a0b38
and ebx, 0xfff
sub word [rbx + rdi], cx
movzx ebx, word [rdx + r14*2 + 8]
and ebx, 0xfff
add word [rbx + rdi], r12w
nop dword [rax + rax]
inc r14
cmp esi, r14d
je 0x1400a0ac0
movzx ebx, word [rdx + r14*2 + 8]
mov r13d, ebx
shr r13d, 0xc
dec r13d
cmp r13d, 9
ja case.0x1400a0b55.4
movsxd r13, dword [r11 + r13*4]
add r13, r11
jmp r13
and ebx, 0xfff
sub word [rbx + rdi], r8w
movzx ebx, word [rdx + r14*2 + 8]
and ebx, 0xfff
add word [rbx + rdi], r9w
jmp case.0x1400a0b55.4
and ebx, 0xfff
sub dword [rbx + rdi], ecx
movzx ebx, word [rdx + r14*2 + 8]
and ebx, 0xfff
add dword [rbx + rdi], r12d
jmp case.0x1400a0b55.4
and ebx, 0xfff
sub qword [rbx + rdi], rcx
movzx ebx, word [rdx + r14*2 + 8]
and ebx, 0xfff
add qword [rbx + rdi], r12
jmp case.0x1400a0b55.4
cmp dword [r15 + rax + 0x94], 0
je 0x1400a0d93
mov r13d, dword [r15 + rax + 0x90]
cmp dword [r15 + r13], 0
je 0x1400a0d93
add r13, r15
mov rsi, qword [sym.imp.msvcrt.dll__wcsnicmp]
jmp 0x1400a0c07
mov rcx, rbp
call sub.msvcrt.dll_free
cmp dword [r13 + 0x14], 0
lea r13, [r13 + 0x14]
je 0x1400a0d93
mov r14d, dword [r13 + 0xc]
add r14, r15
mov edx, 0x104
mov rcx, r14
call fcn.1400a22b0
mov r12, rax
lea rdi, [rax + 1]
mov edx, 2
mov rcx, rdi
call sub.msvcrt.dll_calloc
test rax, rax
je 0x1400a0bf8
mov rbp, rax
mov qword [rsp + 0x20], r12
lea rcx, [rsp + 0x60]
mov rdx, rax
mov r8, rdi
mov r9, r14
call qword [sym.imp.msvcrt.dll_mbstowcs_s]
mov r8d, 4
mov rcx, rbp
lea rdx, [0x1400a4002]
call rsi
test eax, eax
je 0x1400a0c7c
mov r8d, 4
mov rcx, rbp
lea rdx, str.ext_
call rsi
test eax, eax
jne 0x1400a0cce
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
lea r8, [rsp + 0x58]
call fcn.1400a0320
test rax, rax
je 0x1400a0cce
mov r14, rax
mov rcx, rbp
call sub.msvcrt.dll_free
mov rdi, qword [rsp + 0x58]
lea rcx, [rdi + 1]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x1400a0bf8
mov rbp, rax
add rdi, rdi
mov rcx, rax
mov rdx, r14
mov r8, rdi
call sub.msvcrt.dll_memcpy
call fcn.1400a0300
mov r14, rax
mov rdi, rax
jmp 0x1400a0ce8
mov rdi, qword [rdi]
cmp rdi, r14
je 0x1400a0d20
cmp word [rdi + 0x38], 3
jb 0x1400a0ce0
mov rdx, qword [rdi + 0x50]
movzx r8d, word [rdi + 0x48]
shr r8, 1
mov rcx, rbp
call rsi
test eax, eax
jne 0x1400a0ce0
mov r14, qword [rdi + 0x20]
test r14, r14
jne 0x1400a0d35
jmp 0x1400a0bf0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
test r14, r14
je 0x1400a0bf0
mov eax, dword [r13]
mov edi, dword [r13 + 0x10]
test eax, eax
mov r12d, edi
cmovne r12d, eax
mov rax, qword [r15 + r12]
test rax, rax
je 0x1400a0bf0
mov rbx, r15
jmp 0x1400a0d89
lea rdx, [r15 + rax]
add rdx, 2
mov rcx, r14
mov r8, rbp
call fcn.1400a0f90
mov qword [rbx + rdi], rax
mov rax, qword [rbx + r12 + 8]
add rbx, 8
test rax, rax
je 0x1400a0bf0
test rax, rax
jns 0x1400a0d60
movzx edx, ax
jmp 0x1400a0d68
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r15
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret