Function at 0x140007570
Capabilities:
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140019288]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebx, edx
mov dword [0x140019704], ecx
mov r8d, edx
mov edx, ecx
lea rcx, [rsp + 0x30]
call fcn.140006ab0
cmp qword [rax + 0x18], 0x10
jb 0x1400075a6
mov rax, qword [rax]
mov r8, rax
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov rdx, qword [rsp + 0x48]
mov qword [0x1400196d0], rax
cmp rdx, 0x10
jb 0x140007604
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075f8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400075f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ff28
mov rax, qword [0x1400196d0]
test rax, rax
je 0x1400076b1
mov edx, dword [0x140019704]
lea rcx, [rsp + 0x30]
mov r8d, ebx
call fcn.140006fc0
cmp qword [rax + 0x18], 0x10
jb 0x14000762a
mov rax, qword [rax]
mov r8, rax
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov rdx, qword [rsp + 0x48]
mov qword [0x1400196d8], rax
cmp rdx, 0x10
jb 0x140007688
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000767c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000767c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ff28
mov rax, qword [0x1400196d8]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
test rax, rax
jne 0x1400076c6
mov rcx, qword [0x1400196d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400105a0
add rsp, 0x60
pop rbx
ret
mov edx, dword [0x140019704]
lea rcx, [rsp + 0x30]
mov r8d, ebx
call fcn.140006c60
cmp qword [rax + 0x18], 0x10
jb 0x1400076e3
mov rax, qword [rax]
xor edx, edx
mov r8, rax
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov rdx, qword [rsp + 0x48]
mov qword [0x1400196e0], rax
cmp rdx, 0x10
jb 0x14000773f
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007733
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007733
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ff28
mov rax, qword [0x1400196e0]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
test rax, rax
jne 0x14000778a
mov rcx, qword [0x1400196d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400196d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400105a0
add rsp, 0x60
pop rbx
ret
xor r9d, r9d
mov qword [rsp + 0x20], 0x498a
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [0x1400196f0], rax
test rax, rax
jne 0x1400077ee
mov rcx, qword [0x1400196d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400196d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400196e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400105a0
add rsp, 0x60
pop rbx
ret
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400105a0
add rsp, 0x60
pop rbx
ret