Function at 0x140009520
Capabilities:
Read file via mapping

Disassembly:
push rsi
push r15
sub rsp, 0x98
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 + 0x60], rax
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140009570
xor eax, eax
add rsp, 0x98
pop r15
pop rsi
ret
xor r9d, r9d
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x88], rdi
mov rcx, rax
mov dword [rsp + 0x20], r15d
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x58], rax
mov rdi, rax
test rax, rax
je 0x140009813
xor r9d, r9d
mov qword [rsp + 0xb0], rbx
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 + 0xc8], rax
mov rbx, rax
test rax, rax
je 0x140009802
mov ecx, dword [rax + 0x2c]
mov edx, 1
mov qword [rsp + 0x90], rbp
mov ebp, dword [rax + 0x34]
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x78], r13
mov r13d, dword [rax + 0x20]
imul rbp, r13
mov qword [rsp + 0x70], r14
mov r14d, r13d
add rbp, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov qword [rsp + 0x40], rax
mov r12, rax
test rax, rax
je 0x1400097df
mov edi, dword [rbx + 0x2c]
mov esi, r15d
test edi, edi
je 0x140009666
mov r15, rbx
nop
mov ecx, esi
cmp edi, r13d
mov ebx, r13d
cmovb ebx, edi
mov r8d, ebx
mov edx, dword [rbp + rcx*4]
imul rdx, r14
imul rcx, r14
add rdx, r15
add rcx, r12
call sub.VCRUNTIME140.dll_memcpy
inc esi
sub edi, ebx
jne 0x140009630
mov rbx, qword [rsp + 0xc8]
xor r15d, r15d
mov esi, dword [r12]
mov dword [rsp + 0xc0], esi
cmp esi, 2
jb 0x1400097c5
mov ecx, esi
mov edx, 8
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400097c5
lea ecx, [rsi + 1]
mov esi, r15d
lea rax, [r12 + rcx*4]
mov qword [rsp + 0x50], rax
mov eax, dword [rbx + 0x2c]
shr eax, 2
cmp ecx, eax
jae 0x140009797
mov r14, qword [rsp + 0x48]
mov eax, r15d
mov dword [rsp + 0xb8], eax
mov r8, 0xffffffffffffffff
nop word [rax + rax]
lea eax, [rax + 1]
mov edi, r15d
mov r12d, dword [r12 + rax*4]
test r12d, r12d
je 0x14000972f
mov ebx, r15d
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 0x140009792
mov rcx, qword [rsp + 0x50]
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 0x1400096e2
mov eax, dword [rsp + 0xb8]
add r14, 8
mov r12, qword [rsp + 0x40]
inc eax
mov dword [rsp + 0xb8], eax
cmp eax, dword [rsp + 0xc0]
jb 0x1400096d0
cmp dword [r12 + 8], 0
je 0x140009797
mov rax, qword [rsp + 0x48]
mov edx, 0x10
mov rax, qword [rax + 8]
lea ecx, [rdx - 0xf]
mov ebx, dword [rax]
imul rbx, r13
add rbx, qword [rsp + 0xc8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov r15, rax
test rax, rax
je 0x140009797
movups xmm0, xmmword [rbx + 0xc]
movups xmmword [rax], xmm0
jmp 0x140009797
mov r12, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov edi, dword [rsp + 0xc0]
mov rbx, r13
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400097b3
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add rbx, 8
sub rdi, 1
jne 0x1400097a6
mov rcx, r13
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 + 0xc8]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov r14, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x90]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xb0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x88]
mov rax, r15
add rsp, 0x98
pop r15
pop rsi
ret