Function at 0x140008950
Capabilities:
Read file via mapping

Disassembly:
push rdi
push r15
sub rsp, 0xa8
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r15 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x70], rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400089a0
xor eax, eax
add rsp, 0xa8
pop r15
pop rdi
ret
xor r9d, r9d
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0xc0], rbx
mov rcx, rax
mov dword [rsp + 0x20], r15d
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x68], rax
mov rbx, rax
test rax, rax
je 0x140008c3f
xor r9d, r9d
mov qword [rsp + 0x80], r14
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x50], rax
mov r14, rax
test rax, rax
je 0x140008c2e
mov ecx, dword [rax + 0x2c]
mov edx, 1
mov qword [rsp + 0xa0], rbp
mov ebp, dword [rax + 0x34]
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x88], r13
mov r13d, dword [rax + 0x20]
imul rbp, r13
add rbp, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov qword [rsp + 0x48], rax
mov r12, rax
test rax, rax
je 0x140008c0d
mov edi, dword [r14 + 0x2c]
mov qword [rsp + 0x98], rsi
mov esi, r15d
test edi, edi
je 0x140008a8e
mov r15d, r13d
mov ecx, esi
cmp edi, r13d
mov ebx, r13d
cmovb ebx, edi
mov r8d, ebx
mov edx, dword [rbp + rcx*4]
imul rdx, r15
imul rcx, r15
add rdx, r14
add rcx, r12
call sub.VCRUNTIME140.dll_memcpy
inc esi
sub edi, ebx
jne 0x140008a60
xor r15d, r15d
mov ebx, dword [r12]
mov dword [rsp + 0xd0], ebx
cmp ebx, 2
jb 0x140008bf3
mov edx, 8
mov qword [rsp + 0xd8], rbx
mov ecx, ebx
mov edi, ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140008bf3
lea ecx, [rbx + 1]
mov esi, r15d
lea rax, [r12 + rcx*4]
mov qword [rsp + 0x58], rax
mov eax, dword [r14 + 0x2c]
shr eax, 2
cmp ecx, eax
jae 0x140008bd2
mov r14, qword [rsp + 0x40]
mov ecx, r15d
mov r8, 0xffffffffffffffff
lea eax, [rcx + 1]
mov edi, r15d
mov r12d, dword [r12 + rax*4]
mov ecx, eax
mov dword [rsp + 0xc8], eax
test r12d, r12d
je 0x140008b6b
mov ebx, r15d
nop
mov ebp, edi
mov eax, 4
lea rcx, [rbp + 1]
mul rcx
mov rcx, qword [r14]
cmovo rax, r8
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rdx, rax
test rax, rax
je 0x140008bc0
mov rcx, qword [rsp + 0x58]
inc edi
mov qword [r14], rax
add ebx, r13d
mov eax, esi
mov r8, 0xffffffffffffffff
inc esi
mov ecx, dword [rcx + rax*4]
mov dword [rdx + rbp*4], ecx
cmp ebx, r12d
jb 0x140008b10
mov ecx, dword [rsp + 0xc8]
mov ebx, dword [rsp + 0xd0]
mov r12, qword [rsp + 0x48]
add r14, 8
cmp ecx, ebx
jb 0x140008af3
cmp dword [r12 + 8], 0
mov r14, qword [rsp + 0x50]
je 0x140008bca
mov rax, qword [rsp + 0x40]
mov edx, 0x10
mov rax, qword [rax + 8]
lea ecx, [rdx - 0xf]
mov ebx, dword [rax]
imul rbx, r13
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov rdi, qword [rsp + 0xd8]
mov r15, rax
test rax, rax
je 0x140008bd2
movups xmm0, xmmword [rbx + r14 + 0xc]
movups xmmword [rax], xmm0
jmp 0x140008bd2
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rbx]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x140008bd7
mov rcx, qword [rsp + 0x40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, r12
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x98]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov r13, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xc0]
mov rax, r15
add rsp, 0xa8
pop r15
pop rdi
ret