Function at 0x14003f0c0
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, [0x14000a746]
mov r8d, 0x80000
lea r9, [0x14000a74e]
mov rbp, rcx
call fcn.14003c650
mov rbx, rax
mov rcx, rbp
lea rdx, [0x14000a754]
mov r8d, 0x10000
lea r9, [0x14000a769]
call fcn.14003c650
mov r15, rax
mov rcx, rbp
lea rdx, [0x14000a76e]
mov r8d, 0x10000
lea r9, [0x14000a74e]
mov edi, r15d
call fcn.14003c650
mov r12, rax
lea rdx, [0x14000a784]
lea r14, [rsp + 0x30]
mov rcx, r14
mov r13d, r12d
call fcn.140041190
mov rcx, r14
mov rdx, qword [rbp + 0x170]
call fcn.1400411b0
mov rcx, r14
call fcn.14003f520
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 0x14003f48b
mov rcx, r14
lea rdx, [0x14000a78d]
call fcn.140041190
mov rcx, r14
mov rdx, qword [rbp + 0x170]
call fcn.1400411b0
mov rcx, r14
call fcn.14003f520
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 0x14003f456
mov rcx, r14
lea rdx, [0x14000a79e]
call fcn.140041190
mov rcx, r14
mov rdx, qword [rbp + 0x170]
call fcn.1400411b0
mov rcx, r14
call fcn.14003f520
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 0x14003f421
test rax, rax
je 0x14003f421
mov rcx, r14
lea rdx, [0x14000a7aa]
call fcn.140041190
mov rcx, r14
lea rdx, [0x14000a7b2]
call fcn.1400411b0
mov rcx, r14
mov rdx, qword [rbp + 0x170]
call fcn.1400411b0
mov rcx, r14
call fcn.14003f520
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 0x14003f3ec
test rax, rax
je 0x14003f3ec
mov rcx, r14
lea rdx, [0x14000a7aa]
call fcn.140041190
mov rcx, r14
lea rdx, [0x14000a7c0]
call fcn.1400411b0
mov rcx, r14
mov rdx, qword [rbp + 0x170]
call fcn.1400411b0
mov rcx, r14
call fcn.14003f520
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 0x14003f3b7
cmp qword [rbp + 0x30], 0
je 0x14003f3b7
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, [0x14000a7cf]
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, [0x14000a7eb]
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, [0x14000a806]
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, [0x14000a81e]
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, [0x14000a83d]
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