Function at 0x14002eac0
Capabilities:
Read file via mapping

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
push rbp
sub rsp, 0x138
mov esi, edx
lea rdx, [0x1400085ce]
mov r8d, 0x80000
lea r9, [0x1400087b0]
mov rbp, rcx
call fcn.14002c4d0
mov rbx, rax
mov rcx, rbp
lea rdx, [0x1400085d6]
mov r8d, 0x10000
lea r9, [0x1400087b8]
call fcn.14002c4d0
mov r15, rax
mov rcx, rbp
lea rdx, [0x1400085eb]
mov r8d, 0x10000
lea r9, [0x1400087b0]
mov edi, r15d
call fcn.14002c4d0
mov r12, rax
lea rdx, [0x140008601]
lea r14, [rsp + 0x30]
mov rcx, r14
mov r13d, r12d
call fcn.140030b90
mov rcx, r14
mov rdx, qword [rbp + 0x170]
call fcn.140030bb0
mov rcx, r14
call fcn.140030b40
mov ecx, 0x1f0003
xor edx, edx
mov r8, r14
mov dword [rsp + rax + 0x30], esi
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov qword [rbp], rax
test rax, rax
je 0x14002ee8b
mov rcx, r14
lea rdx, [0x14000860a]
call fcn.140030b90
mov rcx, r14
mov rdx, qword [rbp + 0x170]
call fcn.140030bb0
mov rcx, r14
call fcn.140030b40
mov ecx, 0x1f0003
xor edx, edx
mov r8, r14
mov dword [rsp + rax + 0x30], esi
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov qword [rbp + 8], rax
test rax, rax
je 0x14002ee56
mov rcx, r14
lea rdx, [0x14000861b]
call fcn.140030b90
mov rcx, r14
mov rdx, qword [rbp + 0x170]
call fcn.140030bb0
mov rcx, r14
call fcn.140030b40
mov ecx, 0xf001f
xor edx, edx
mov r8, r14
mov dword [rsp + rax + 0x30], esi
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov rcx, rax
mov rax, rsp
xor r8d, r8d
mov edx, 0xf001f
xor r9d, r9d
mov qword [rbp + 0x10], rcx
mov qword [rax + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x10], 0
je 0x14002ee21
test rax, rax
je 0x14002ee21
mov rcx, r14
lea rdx, [0x140008627]
call fcn.140030b90
mov rcx, r14
lea rdx, [0x14000862f]
call fcn.140030bb0
mov rcx, r14
mov rdx, qword [rbp + 0x170]
call fcn.140030bb0
mov rcx, r14
call fcn.140030b40
mov dword [rsp + rax + 0x30], esi
mov rax, rsp
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 4
xor r9d, r9d
mov dword [rax + 0x20], edi
mov qword [rax + 0x28], r14
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rcx, rax
mov rax, rsp
xor r8d, r8d
mov edx, 0xf001f
xor r9d, r9d
mov r15d, r15d
mov qword [rbp + 0x18], rcx
mov qword [rax + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], r15
cmp qword [rbp + 0x18], 0
je 0x14002edec
test rax, rax
je 0x14002edec
mov rcx, r14
lea rdx, [0x140008627]
call fcn.140030b90
mov rcx, r14
lea rdx, [0x14000863d]
call fcn.140030bb0
mov rcx, r14
mov rdx, qword [rbp + 0x170]
call fcn.140030bb0
mov rcx, r14
call fcn.140030b40
mov dword [rsp + rax + 0x30], esi
mov rax, rsp
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 4
xor r9d, r9d
mov dword [rax + 0x20], r13d
mov qword [rax + 0x28], r14
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rcx, rax
mov rax, rsp
xor r8d, r8d
mov edx, 0xf001f
xor r9d, r9d
mov esi, r12d
mov qword [rbp + 0x20], rcx
mov qword [rax + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rsi
cmp qword [rbp + 0x18], 0
je 0x14002edb7
cmp qword [rbp + 0x30], 0
je 0x14002edb7
mov rdx, qword [rbp + 0x28]
mov eax, 0x10000000
cmp ebx, 0x10000000
cmovb eax, ebx
mov dword [rdx], eax
mov dword [rdx + 4], edi
mov dword [rdx + 8], r13d
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbp + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
add rsp, 0x138
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov r8, qword [rbp + 0x170]
xor ecx, ecx
lea rdx, [0x14000882c]
mov r9d, 0x10
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0xffffffff
add rsp, 0x138
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov r8, qword [rbp + 0x170]
xor ecx, ecx
lea rdx, [0x140008810]
mov r9d, 0x10
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0xffffffff
add rsp, 0x138
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov r8, qword [rbp + 0x170]
xor ecx, ecx
lea rdx, [0x1400087f8]
mov r9d, 0x10
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0xffffffff
add rsp, 0x138
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov r8, qword [rbp + 0x170]
xor ecx, ecx
lea rdx, [0x1400087d8]
mov r9d, 0x10
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0xffffffff
add rsp, 0x138
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov r8, qword [rbp + 0x170]
xor ecx, ecx
lea rdx, [0x1400087c0]
mov r9d, 0x10
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0xffffffff
add rsp, 0x138
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret