Function at 0x403adc
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, [0x00401190]
call qword [0x00407010]
xor r13d, r13d
mov rdi, rax
test rax, rax
je 0x403b4c
add rdi, 0x2a
lea r14d, [r13 + 0x20]
mov edx, r14d
mov rcx, rdi
call qword [0x00407008]
test rax, rax
jne 0x403b6b
lea rdx, [0x004011c0]
or r8d, 0xffffffff
lea rcx, [0x00407090]
call fcn.0040289c
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 0x403b99
or r8d, 0xffffffff
lea rdx, [0x004011d8]
lea rcx, [0x00407090]
call fcn.0040289c
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
jmp 0x403b3c
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 0x403bc6
lea rdx, [0x004011f0]
jmp 0x403b3c
mov r8, rsi
mov rdx, rdi
mov rcx, r15
call qword [0x00407038]
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 0x403c1f
lea rdx, [0x00401208]
or r8d, 0xffffffff
lea rcx, [0x00407090]
call fcn.0040289c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r8d, 0xa
call fcn.004027cc
jmp 0x403b4c
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 0x403c48
lea rdx, [0x00401220]
jmp 0x403bf7
mov r8, r14
mov rdx, rdi
mov rcx, rbp
call qword [0x00407038]
call fcn.00403dd8
mov rsi, rax
test rax, rax
je 0x403b4c
mov ecx, dword [rdi + 0x20]
lea rdx, [rbp + 0x18]
mov dword [rsp + 0x68], ecx
mov rcx, rax
call fcn.00403d60
test al, al
je 0x403b4c
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.00403d60
test al, al
je 0x403b4c
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 0x403cc5
lea rdx, [0x00401238]
jmp 0x403bf7
mov ebp, dword [rdi + 0x24]
lea rbx, [rdi + 0x28]
add rbp, 0xa
lea rbp, [rdi + rbp*4]
jmp 0x403cef
mov edx, dword [rbx]
mov rcx, rsi
add rdx, r14
call fcn.00403d60
test al, al
je 0x403b4c
add rbx, 4
cmp rbx, rbp
jne 0x403cd6
movsxd rbx, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x403d12
lea rdx, [0x00401250]
jmp 0x403bf7
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 0x403b4e