Function at 0x140003aec
Capabilities:
Accept command line arguments
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [0x140001190]
call qword [0x140007010]
xor r13d, r13d
mov rdi, rax
test rax, rax
je 0x140003b5c
add rdi, 0x2a
lea r14d, [r13 + 0x20]
mov edx, r14d
mov rcx, rdi
call qword [0x140007008]
test rax, rax
jne 0x140003b7b
lea rdx, [0x1400011c0]
or r8d, 0xffffffff
lea rcx, [0x140007090]
call fcn.1400028ac
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
sub rax, rdi
sar rax, 1
cmp rax, 2
jae 0x140003ba9
or r8d, 0xffffffff
lea rdx, [0x1400011d8]
lea rcx, [0x140007090]
call fcn.1400028ac
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
jmp 0x140003b4c
lea rsi, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi + 2]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
jne 0x140003bd6
lea rdx, [0x1400011f0]
jmp 0x140003b4c
mov r8, rsi
mov rdx, rdi
mov rcx, r15
call qword [0x140007038]
xor edx, edx
mov word [rsi + r15], r13w
mov r8, r15
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov r12, rax
test rax, rax
jne 0x140003c2f
lea rdx, [0x140001208]
or r8d, 0xffffffff
lea rcx, [0x140007090]
call fcn.1400028ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r8d, 0xa
call fcn.1400027dc
jmp 0x140003b5c
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov rcx, r12
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x140003c58
lea rdx, [0x140001220]
jmp 0x140003c07
mov r8, r14
mov rdx, rdi
mov rcx, rbp
call qword [0x140007038]
call fcn.140003de8
mov rsi, rax
test rax, rax
je 0x140003b5c
mov ecx, dword [rdi + 0x20]
lea rdx, [rbp + 0x18]
mov dword [rsp + 0x68], ecx
mov rcx, rax
call fcn.140003d70
test al, al
je 0x140003b5c
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.140003d70
test al, al
je 0x140003b5c
movsxd rcx, dword [rbp + 0x18]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
jne 0x140003cd5
lea rdx, [0x140001238]
jmp 0x140003c07
mov ebp, dword [rdi + 0x24]
lea rbx, [rdi + 0x28]
add rbp, 0xa
lea rbp, [rdi + rbp*4]
jmp 0x140003cff
mov edx, dword [rbx]
mov rcx, rsi
add rdx, r14
call fcn.140003d70
test al, al
je 0x140003b5c
add rbx, 4
cmp rbx, rbp
jne 0x140003ce6
movsxd rbx, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x140003d22
lea rdx, [0x140001250]
jmp 0x140003c07
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x140003b5e