Function at 0x1400fd2a0
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 [0x14029e8b8]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov rdi, r9
mov rbx, r8
mov r15, rdx
mov r12, rcx
test rcx, rcx
je 0x1400fd6c9
test rdx, rdx
je 0x1400fd6c9
xor r13d, r13d
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], r13d
test r9, r9
jne 0x1400fd59a
call fcn.1400e34c0
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400df2f0
nop
call fcn.1400e34e0
mov rcx, rax
call fcn.1400e02a0
test al, al
je 0x1400fd412
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1400df750
lea rcx, [rbp - 0x80]
call fcn.1400592e0
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 0x1400fd38e
lea rcx, [rbp - 0x80]
call fcn.140028e30
jmp 0x1400fd621
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x1400fd3af
lea rcx, [rbp - 0x80]
call fcn.140028e30
jmp 0x1400fd621
mov dword [rsp + 0x44], r13d
mov ecx, eax
lea rdx, [0x1402b83a0]
call fcn.140160c44
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 0x1400fd380
mov rcx, qword [rsp + 0x48]
call fcn.1401606e8
mov qword [rsp + 0x48], r13
lea rcx, [rbp - 0x80]
call fcn.140028e30
jmp 0x1400fd621
call fcn.1400e34e0
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400df730
call fcn.1400e36b0
test al, al
je 0x1400fd566
call fcn.1400e34f0
mov rdi, rax
test rax, rax
jne 0x1400fd44b
lea rcx, [rbp - 0x80]
call fcn.140028e30
jmp 0x1400fd621
movdqa xmm0, xmmword [0x1401f5800]
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 0x1400fd470
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14000d810
nop
lea r9, [rbp + 0x10]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1401209a0
test eax, eax
sete sil
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400fd4e7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400fd4e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400fd711
call fcn.1401606e8
test sil, sil
je 0x1400fd4fa
lea rcx, [rbp - 0x80]
call fcn.140028e30
jmp 0x1400fd621
mov eax, dword [rbp + 0x224]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x1400fd516
lea rcx, [rbp - 0x80]
call fcn.140028e30
jmp 0x1400fd621
mov rcx, rax
lea rdx, [0x1402b83a0]
call fcn.140160c44
mov qword [rsp + 0x48], rax
mov r9d, dword [rsp + 0x40]
mov r8, rax
mov edx, dword [rsp + 0x44]
mov rcx, rdi
call fcn.1401207b0
test eax, eax
jne 0x1400fd380
lea edx, [rax + 1]
mov rcx, qword [rsp + 0x48]
call fcn.1401606e8
mov qword [rsp + 0x48], r13
lea rcx, [rbp - 0x80]
call fcn.140028e30
jmp 0x1400fd621
lea rcx, [rbp - 0x80]
call fcn.1400592e0
mov rcx, rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov rdx, rbx
call fcn.140125380
test eax, eax
jns 0x1400fd380
lea rcx, [rbp - 0x80]
call fcn.140028e30
jmp 0x1400fd621
call fcn.1400e3490
mov rcx, rax
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x1400fd621
call fcn.1400e3490
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x1400fd618
call fcn.1400e3490
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x1400fd621
mov ecx, eax
lea rdx, [0x1402b83a0]
call fcn.140160c44
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.1401b00b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x1400fd6ff
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 0x1400fd6f5
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x1400fd6f5
mov dword [rsp + 0x44], r13d
mov ecx, eax
lea rdx, [0x1402b83a0]
call fcn.140160c44
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 0x1400fd6f5
mov rcx, qword [rsp + 0x48]
call fcn.1401606e8
xor eax, eax
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140160a40
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 0x1400fd6c9
mov qword [r12], rax
mov ecx, dword [rsp + 0x40]
mov dword [r15], ecx
mov eax, 1
jmp 0x1400fd6cb
call fcn.1401b3260
nop
int3