Function at 0x140004ef0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x14004a020]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
mov rbx, rcx
cmp dword [rcx + 0xd8], 0
je 0x140004f2c
xor eax, eax
jmp 0x14000539d
add rcx, 0xf0
mov rdx, qword [rdx]
lea rdi, [0x140044cf4]
test rdx, rdx
je 0x140004f48
cmp word [rdx], 0
jne 0x140004f4b
mov rdx, rdi
mov r8d, dword [rsi + 8]
call fcn.140003330
mov rcx, qword [rsi]
test rcx, rcx
je 0x140004f62
cmp word [rcx], 0
jne 0x140004f65
mov rcx, rdi
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x120089
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x110], rax
cmp rax, 0xffffffffffffffff
jne 0x140004ffe
mov rcx, qword [rbx + 0x120]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx + 0x118]
test rcx, rcx
je 0x140004fbe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x118], r15
mov rcx, qword [rbx + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x140004fdc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x110], 0xffffffffffffffff
mov qword [rbx + 0x120], r15
mov rcx, qword [rbx]
test rcx, rcx
je 0x140004ff4
call qword [0x14004c668]
mov qword [rbx], r15
mov eax, 1
jmp 0x14000539d
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x118], rax
test rax, rax
jne 0x14000508c
mov rcx, qword [rbx + 0x120]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx + 0x118]
test rcx, rcx
je 0x14000504c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x118], r15
mov rcx, qword [rbx + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x14000506a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x110], 0xffffffffffffffff
mov qword [rbx + 0x120], r15
mov rcx, qword [rbx]
test rcx, rcx
je 0x140005082
call qword [0x14004c668]
mov qword [rbx], r15
mov eax, 2
jmp 0x14000539d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x120], rax
test rax, rax
jne 0x140005111
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx + 0x118]
test rcx, rcx
je 0x1400050d1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x118], r15
mov rcx, qword [rbx + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x1400050ef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x110], 0xffffffffffffffff
mov qword [rbx + 0x120], r15
mov rcx, qword [rbx]
test rcx, rcx
je 0x140005107
call qword [0x14004c668]
mov qword [rbx], r15
mov eax, 3
jmp 0x14000539d
mov eax, dword [0x14004c760]
inc eax
mov dword [0x14004c760], eax
mov qword [rbx], rax
mov ecx, 0x602
call qword [0x14004c640]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf], xmm1
mov qword [rbp + 0x1f], r15
mov rdx, qword [rsi]
test rdx, rdx
je 0x140005147
cmp word [rdx], 0
jne 0x14000514a
mov rdx, rdi
xor r8d, r8d
mov rcx, qword [rbx]
call qword [0x14004c658]
mov rcx, qword [rbx + 0x120]
test eax, eax
jne 0x1400051c3
mov qword [rbx], r15
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx + 0x118]
test rcx, rcx
je 0x140005183
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x118], r15
mov rcx, qword [rbx + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x1400051a1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x110], 0xffffffffffffffff
mov qword [rbx + 0x120], r15
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400051b9
call qword [0x14004c668]
mov qword [rbx], r15
mov eax, 5
jmp 0x14000539d
mov qword [rbp - 9], r15
mov dword [rbp + 7], r15d
mov qword [rbp - 1], r15
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 9]
lea r8, [rbp - 1]
mov edx, 7
call qword [0x14004c620]
test eax, eax
je 0x14000528f
mov rcx, qword [rbp - 9]
movzx eax, word [rcx]
mov word [rbx + 8], ax
movzx eax, byte [rcx + 6]
mov byte [rbx + 0xa], al
movzx eax, byte [rcx + 7]
mov byte [rbx + 0xb], al
mov eax, dword [rcx + 8]
mov dword [rbx + 0xc], eax
mov eax, dword [rcx + 0xc]
mov dword [rbx + 0x10], eax
mov eax, dword [rcx + 0x10]
mov dword [rbx + 0x14], eax
mov edx, dword [rcx + 0x18]
add rdx, 4
mov qword [rbp - 0x11], r15
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x21], r15
mov qword [rbp - 0x19], r15
add rdx, qword [rbx + 0x120]
mov r8d, 0xffffffff
lea rcx, [rbp - 0x29]
call fcn.140003330
lea rcx, [rbx + 0x18]
mov rsi, qword [rbp - 0x29]
test rsi, rsi
je 0x140005261
cmp word [rsi], 0
je 0x140005261
mov rdi, rsi
mov r8d, dword [rbp - 0x21]
mov rdx, rdi
call fcn.140003330
test rsi, rsi
je 0x14000527a
mov rcx, rsi
call fcn.14001dd40
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140005288
call fcn.14001dd40
mov eax, 1
jmp 0x140005292
mov eax, r15d
mov dword [rbx + 0xdc], eax
mov rcx, rbx
call fcn.140006520
mov ecx, r15d
test eax, eax
sete cl
mov dword [rbx + 0xe4], ecx
mov rcx, rbx
call fcn.1400071b0
mov ecx, r15d
test eax, eax
sete cl
mov dword [rbx + 0xec], ecx
mov qword [rbp - 9], r15
mov dword [rbp + 7], r15d
mov qword [rbp - 1], r15
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 9]
lea r8, [rbp - 1]
mov edx, 5
mov rcx, qword [rbx + 0x120]
call qword [0x14004c620]
test eax, eax
je 0x140005387
mov rdi, qword [rbp - 9]
test rdi, rdi
je 0x140005380
mov eax, dword [rdi]
test eax, eax
je 0x140005380
add rdi, 0x10
mov r14d, eax
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi - 0xc]
mov qword [rbp - 0x29], rax
mov eax, dword [rdi - 4]
mov dword [rbp - 0x21], eax
mov eax, dword [rdi]
add rax, qword [rbx + 0x120]
mov qword [rbp - 0x19], rax
mov rdx, qword [rbx + 0xb0]
cmp rdx, qword [rbx + 0xb8]
je 0x140005366
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rbp - 0x19]
movsd qword [rdx + 0x10], xmm1
add qword [rbx + 0xb0], 0x18
jmp 0x140005376
lea r8, [rbp - 0x29]
lea rcx, [rbx + 0xa8]
call fcn.1400085e0
add rdi, 0x10
sub r14, 1
jne 0x140005320
mov eax, 1
jmp 0x14000538a
mov eax, r15d
mov dword [rbx + 0xe8], eax
mov dword [rbx + 0xd8], 1
mov eax, r15d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400109f0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret