Function at 0x1287c280
Capabilities:
Read file via mapping

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1240
call fcn.1296ea90
sub rsp, rax
mov qword [rsp + 0x120], 0xfffffffffffffffe
mov qword [rsp + 0x1290], rbx
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x1230], rax
mov rdi, rdx
mov qword [rsp + 0xc0], rdx
xor r14d, r14d
mov r12d, r14d
mov r8, rcx
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov r13, rax
mov qword [rsp + 0x100], rax
test rax, rax
je 0x1287cd20
mov qword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x1287cd12
mov ebx, dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1287cd12
test ebx, ebx
je 0x1287cd12
lea ecx, [rbx + 4]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 4]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x1287cd12
mov eax, 0xfeff
cmp word [rsi + 4], ax
jne 0x1287cd12
lea ecx, [r14 + 8]
call fcn.12958d80
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x1287c39b
lea rcx, [rsp + 0xc8]
mov qword [rax], rcx
jmp 0x1287c39e
mov rax, r14
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0xc8]
call fcn.12807e20
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], r14
lea rdx, [rsi + 6]
mov rcx, rbx
shr rcx, 1
mov byte [rsp + 0x40], 0
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x30], 0xffffffffffffffff
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
lea r9, [0x129b2448]
mov r12d, 1
mov qword [rsp + 0x58], r12
mov r8, r12
call fcn.1285a8f0
xor edx, edx
mov r8d, 0xff8
lea rcx, [rsp + 0x148]
call fcn.12959590
mov qword [rsp + 0x140], rdi
lea rcx, [rsp + 0x1170]
call fcn.1285d4c0
nop
mov qword [rsp + 0x1160], 7
mov qword [rsp + 0x1158], r14
mov word [rsp + 0x1148], r14w
lea ecx, [r12 + 7]
call fcn.12958d80
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x1287c482
lea rcx, [rsp + 0x68]
mov qword [rax], rcx
jmp 0x1287c485
mov rax, r14
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x90], r14
mov rbx, qword [rsp + 0xf0]
mov rbp, qword [rbx]
mov qword [rsp + 0xa0], rbp
mov rax, qword [rsp + 0xc8]
mov rdi, rax
mov qword [rsp + 0xb0], rax
movabs r13, 0x6666666666666667
test rdi, rdi
je 0x1287c4dc
cmp rdi, rax
je 0x1287c4e1
call fcn.1295850c
cmp rbp, rbx
je 0x1287cbc8
lea rcx, [rsp + 0x68]
call fcn.1280c5b0
test rdi, rdi
jne 0x1287c503
call fcn.1295850c
mov r11, r14
jmp 0x1287c506
mov r11, qword [rdi]
cmp rbp, qword [r11 + 0x28]
jne 0x1287c511
call fcn.1295850c
mov edx, 0x2c
lea rcx, [rbp + 0x10]
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
or r9, 0xffffffffffffffff
lea r8, [rsp + 0x68]
call fcn.1286ffd0
mov rbx, qword [rsp + 0x80]
cmp rbx, qword [rsp + 0x88]
jbe 0x1287c549
call fcn.1295850c
mov rdi, qword [rsp + 0x68]
nop
mov rsi, qword [rsp + 0x88]
cmp qword [rsp + 0x80], rsi
jbe 0x1287c567
call fcn.1295850c
test rdi, rdi
je 0x1287c573
cmp rdi, qword [rsp + 0x68]
je 0x1287c578
call fcn.1295850c
cmp rbx, rsi
je 0x1287c5c5
test rdi, rdi
jne 0x1287c58c
call fcn.1295850c
mov r11, r14
jmp 0x1287c58f
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x20]
jb 0x1287c59a
call fcn.1295850c
mov rcx, rbx
call fcn.12830930
test rdi, rdi
jne 0x1287c5b1
call fcn.1295850c
mov r11, r14
jmp 0x1287c5b4
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x20]
jb 0x1287c5bf
call fcn.1295850c
add rbx, 0x28
jmp 0x1287c550
mov rcx, qword [rsp + 0x88]
sub rcx, qword [rsp + 0x80]
mov rax, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1287cb82
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.1281e980
cmp qword [rax + 0x18], 0
je 0x1287cb82
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.1281e980
mov rcx, rax
xor edx, edx
call fcn.1280d060
cmp word [rax], 0x2f
je 0x1287cb82
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.1281e980
mov rcx, rax
xor edx, edx
call fcn.1280d060
cmp word [rax], 0x3b
je 0x1287cb82
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.1281e980
cmp qword [rax + 0x20], 8
jb 0x1287c65f
mov rbx, qword [rax + 8]
jmp 0x1287c663
lea rbx, [rax + 8]
mov r13, r12
cmp word [rbx], 0x2a
jne 0x1287c684
nop dword [rax]
cmp word [rbx + 2], 0x2a
jne 0x1287c684
add rbx, 4
inc r13
cmp word [rbx], 0x2a
je 0x1287c670
mov rdi, qword [rsp + r13*8 + 0x138]
mov qword [rsp + 0xa8], rdi
mov rcx, rdi
call fcn.1287c230
lea r15, [rdi + 0xc8]
mov qword [rsp + 0xb8], r15
mov rcx, r15
call fcn.12830a20
mov rsi, rax
mov rdx, rbx
mov rcx, rax
call fcn.128044f0
mov r11, qword [rsp + 0x88]
sub r11, qword [rsp + 0x80]
movabs rdi, 0x6666666666666667
mov rax, rdi
imul r11
sar rdx, 4
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
cmp rdx, 1
jbe 0x1287c748
mov rdx, r12
lea rcx, [rsp + 0x68]
call fcn.1281e980
cmp qword [rax + 0x18], 0
je 0x1287c748
mov rdx, r12
lea rcx, [rsp + 0x68]
call fcn.1281e980
mov rcx, rax
xor edx, edx
call fcn.1280d060
cmp word [rax], 0x2f
je 0x1287c748
mov rdx, r12
lea rcx, [rsp + 0x68]
call fcn.1281e980
lea rcx, [rsi + 0x28]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.12803c90
jmp 0x1287c75b
lea rcx, [rsi + 0x28]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
call fcn.12803c90
xor ebp, ebp
xor r12d, r12d
mov qword [rsp + 0x108], rbp
mov rcx, qword [rsp + 0x88]
sub rcx, qword [rsp + 0x80]
mov rax, rdi
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 3
jbe 0x1287ca01
mov dword [rsp + 0x50], 2
lea rax, [rdx - 2]
cmp rax, 2
jb 0x1287ca01
mov edi, 2
lea r15d, [rbp + 3]
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.1281e980
cmp qword [rax + 0x18], 0
je 0x1287c8ad
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.1281e980
mov rcx, rax
xor edx, edx
call fcn.1280d060
cmp word [rax], 0x2f
je 0x1287c8ad
movsxd rbx, r15d
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.1281e980
cmp qword [rax + 0x18], 0
je 0x1287c8ad
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.1281e980
mov rcx, rax
xor edx, edx
call fcn.1280d060
cmp word [rax], 0x2f
je 0x1287c8ad
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.1281e980
mov rdi, rax
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.1281e980
mov rbx, rax
cmp qword [rdi + 0x20], 8
jb 0x1287c85e
mov rcx, qword [rdi + 8]
jmp 0x1287c862
lea rcx, [rdi + 8]
lea rdx, str._sMapBaseEntryFlags_
call fcn.1295a6e4
test eax, eax
jne 0x1287c89e
lea rdx, [rsp + 0x1170]
mov rcx, rbx
call fcn.1280a0e0
mov r14, rax
mov r12, rax
shr r12, 0x18
and r12d, 1
jne 0x1287c8f6
mov rbp, rax
shr rbp, 0x1c
and ebp, 1
jne 0x1287c909
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call qword [rsi + pe_nt_image_headers64]
mov eax, dword [rsp + 0x50]
add eax, 2
mov dword [rsp + 0x50], eax
add r15d, 2
movsxd rdi, eax
mov rcx, qword [rsp + 0x88]
sub rcx, qword [rsp + 0x80]
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
lea rax, [rdx + rax - 2]
cmp rdi, rax
ja 0x1287c8fd
jmp 0x1287c7c0
movsxd rdi, dword [rsp + 0x50]
jmp 0x1287c905
mov rdi, qword [rsp + 0x108]
test ebp, ebp
je 0x1287c964
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x1140]
call fcn.12803c90
mov rcx, qword [rsp + 0xb8]
call fcn.12872770
mov r12, qword [rsp + 0x58]
mov r8, r12
lea rdx, [rsp + 0x1140]
mov rcx, qword [rsp + 0xa8]
call fcn.12874040
mov rbp, qword [rsp + 0xa0]
xor r14d, r14d
movabs r13, 0x6666666666666667
jmp 0x1287cb82
test r12d, r12d
je 0x1287c9f9
cmp qword [rsp + 0x11b0], 0
je 0x1287cb52
xor r8d, r8d
lea rdx, [rsp + 0x1198]
mov rcx, qword [rsp + 0xc0]
call fcn.12832460
mov rbx, rax
test rax, rax
je 0x1287cb59
lea rdx, [rax + 0xc8]
lea rcx, [rsi + 0xc8]
call fcn.12876ea0
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [rsi + 0x110]
lea rdx, [rdi + 1]
lea rcx, [rsp + 0x68]
call fcn.1281e980
mov rbx, rax
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.1281e980
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call qword [rsi + pe_nt_image_headers64]
mov r12, qword [rsp + 0x58]
jmp 0x1287cb65
mov r15, qword [rsp + 0xb8]
bt r14, 0x19
jae 0x1287ca43
cmp qword [rsp + 0x11b0], 0
je 0x1287ca43
xor r8d, r8d
lea rdx, [rsp + 0x1198]
mov rcx, qword [rsp + 0xc0]
call fcn.12832460
test rax, rax
je 0x1287ca43
lea rdx, [rax + 0xc8]
lea rcx, [rsi + 0xc8]
call fcn.12876ea0
mov rcx, rsi
call qword [rsi + 0x100]
test rax, rax
jne 0x1287cb60
mov rcx, qword [r15 + 0x20]
sub rcx, qword [r15 + 0x18]
movabs rax, 0x3759f22983759f23
imul rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jbe 0x1287cb30
mov rdi, qword [r15 + 0x20]
cmp qword [r15 + 0x18], rdi
jbe 0x1287ca91
call fcn.1295850c
mov rbx, qword [r15]
mov qword [rsp + 0x110], rbx
mov qword [rsp + 0x118], rdi
movaps xmm0, xmmword [rsp + 0x110]
movdqa xmmword [rsp + 0x130], xmm0
test rbx, rbx
jne 0x1287cac4
call fcn.1295850c
xor r11d, r11d
jmp 0x1287cac7
mov r11, qword [rbx]
add rdi, 0xfffffffffffffdb0
cmp rdi, qword [r11 + 0x20]
ja 0x1287cae6
test rbx, rbx
je 0x1287cade
mov rax, qword [rbx]
jmp 0x1287cae0
xor eax, eax
cmp rdi, qword [rax + 0x18]
jae 0x1287caeb
call fcn.1295850c
mov r11, qword [rsp + 0x130]
test r11, r11
jne 0x1287cb02
call fcn.1295850c
xor r11d, r11d
jmp 0x1287cb05
mov r11, qword [r11]
cmp rdi, qword [r11 + 0x20]
jb 0x1287cb10
call fcn.1295850c
or dword [rsi + 0xf8], 2
mov r8d, 2
mov rdx, rdi
mov rcx, rsi
call qword [rsi + 0x110]
mov r12, qword [rsp + 0x58]
jmp 0x1287cb65
or dword [rsi + 0xf8], 1
mov r12, qword [rsp + 0x58]
mov r8d, r12d
mov rdx, qword [rsp + r13*8 + 0x138]
mov rcx, rsi
call qword [rsi + 0x110]
jmp 0x1287cb65
mov r12, qword [rsp + 0x58]
jmp 0x1287cb65
mov r12, qword [rsp + 0x58]
jmp 0x1287cb65
mov r12, qword [rsp + 0x58]
mov qword [rsp + r13*8 + 0x140], rsi
mov rbp, qword [rsp + 0xa0]
xor r14d, r14d
movabs r13, 0x6666666666666667
mov rdi, qword [rsp + 0xb0]
test rdi, rdi
jne 0x1287cb99
call fcn.1295850c
mov r11, r14
jmp 0x1287cb9c
mov r11, qword [rdi]
cmp rbp, qword [r11 + 0x28]
jne 0x1287cba7
call fcn.1295850c
mov rbp, qword [rbp]
mov qword [rsp + 0xa0], rbp
mov rbx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0xc8]
jmp 0x1287c4d2
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1287cc03
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x88]
call fcn.1280b430
mov rcx, qword [rsp + 0x80]
call fcn.12958250
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x90], r14
mov rcx, qword [rsp + 0x68]
call fcn.12958250
nop
cmp qword [rsp + 0x1160], 8
jb 0x1287cc3e
mov rcx, qword [rsp + 0x1148]
call fcn.12958250
mov qword [rsp + 0x1160], 7
mov qword [rsp + 0x1158], r14
mov word [rsp + 0x1148], r14w
lea rcx, [rsp + 0x1170]
call fcn.1285d530
nop
mov rax, qword [rsp + 0xf0]
mov rdi, qword [rax]
mov qword [rsp + 0x98], rdi
mov qword [rax], rax
mov rax, qword [rsp + 0xf0]
mov qword [rax + 8], rax
mov qword [rsp + 0xf8], r14
mov rcx, qword [rsp + 0xf0]
cmp rdi, rcx
je 0x1287ccf0
mov rsi, qword [rdi]
lea rbx, [rdi + 0x10]
mov qword [rsp + 0x98], rbx
cmp qword [rbx + 0x20], 8
jb 0x1287ccbf
mov rcx, qword [rbx + 8]
call fcn.12958250
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r14
mov word [rbx + 8], r14w
mov rcx, rdi
call fcn.12958250
mov rdi, rsi
mov qword [rsp + 0x98], rsi
mov rcx, qword [rsp + 0xf0]
cmp rsi, rcx
jne 0x1287cca0
call fcn.12958250
mov qword [rsp + 0xf0], r14
mov rcx, qword [rsp + 0xc8]
call fcn.12958250
mov r13, qword [rsp + 0x100]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r12d
jmp 0x1287cd23
mov eax, r12d
mov rcx, qword [rsp + 0x1230]
xor rcx, rsp
call fcn.12959850
mov rbx, qword [rsp + 0x1290]
add rsp, 0x1240
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret