Function at 0x1401282c0
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x390], rbx
mov rax, qword [0x1403b8c08]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov rdi, r9
mov rbx, r8
mov r15, rdx
mov r12, rcx
test rcx, rcx
je 0x1401286e9
test rdx, rdx
je 0x1401286e9
xor r13d, r13d
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], r13d
test r9, r9
jne 0x1401285ba
call fcn.1400f0340
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400ec980
nop
call fcn.1400f0360
mov rcx, rax
call fcn.1400ed920
test al, al
je 0x140128432
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1400ece00
lea rcx, [rbp - 0x80]
call fcn.14009af50
mov rcx, rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1401283ae
lea rcx, [rbp - 0x80]
call fcn.140067dc0
jmp 0x140128641
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x1401283cf
lea rcx, [rbp - 0x80]
call fcn.140067dc0
jmp 0x140128641
mov dword [rsp + 0x44], r13d
mov ecx, eax
lea rdx, [0x1403d8608]
call fcn.140172708
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
je 0x1401283a0
mov rcx, qword [rsp + 0x48]
call fcn.140171af0
mov qword [rsp + 0x48], r13
lea rcx, [rbp - 0x80]
call fcn.140067dc0
jmp 0x140128641
call fcn.1400f0360
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400ecde0
call fcn.1400f0520
test al, al
je 0x140128586
call fcn.1400f0370
mov rdi, rax
test rax, rax
jne 0x14012846b
lea rcx, [rbp - 0x80]
call fcn.140067dc0
jmp 0x140128641
movdqa xmm0, xmmword [0x1402ecd10]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r13w
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x140128490
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1400810d0
nop
lea r9, [rbp + 0x10]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1401315f0
test eax, eax
sete sil
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140128507
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140128502
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140128731
call fcn.140171af0
test sil, sil
je 0x14012851a
lea rcx, [rbp - 0x80]
call fcn.140067dc0
jmp 0x140128641
mov eax, dword [rbp + 0x224]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x140128536
lea rcx, [rbp - 0x80]
call fcn.140067dc0
jmp 0x140128641
mov rcx, rax
lea rdx, [0x1403d8608]
call fcn.140172708
mov qword [rsp + 0x48], rax
mov r9d, dword [rsp + 0x40]
mov r8, rax
mov edx, dword [rsp + 0x44]
mov rcx, rdi
call fcn.140131400
test eax, eax
jne 0x1401283a0
lea edx, [rax + 1]
mov rcx, qword [rsp + 0x48]
call fcn.140171af0
mov qword [rsp + 0x48], r13
lea rcx, [rbp - 0x80]
call fcn.140067dc0
jmp 0x140128641
lea rcx, [rbp - 0x80]
call fcn.14009af50
mov rcx, rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov rdx, rbx
call fcn.140136300
test eax, eax
jns 0x1401283a0
lea rcx, [rbp - 0x80]
call fcn.140067dc0
jmp 0x140128641
call fcn.1400f0310
mov rcx, rax
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x140128641
call fcn.1400f0310
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x140128638
call fcn.1400f0310
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x140128641
mov ecx, eax
lea rdx, [0x1403d8608]
call fcn.140172708
mov qword [rsp + 0x48], rax
mov edi, dword [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov r8d, edi
mov rcx, qword [rsp + 0x48]
call fcn.140289020
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x14012871f
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rax + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140128715
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x140128715
mov dword [rsp + 0x44], r13d
mov ecx, eax
lea rdx, [0x1403d8608]
call fcn.140172708
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
je 0x140128715
mov rcx, qword [rsp + 0x48]
call fcn.140171af0
xor eax, eax
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140172190
mov rbx, qword [rsp + 0x390]
add rsp, 0x340
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1401286e9
mov qword [r12], rax
mov ecx, dword [rsp + 0x40]
mov dword [r15], ecx
mov eax, 1
jmp 0x1401286eb
call fcn.14028c66c
nop
int3