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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rsp + 0xd8], rbx
mov rax, r8
mov r12, rdx
test r8, r8
jne 0x18003160e
xor eax, eax
jmp 0x18003194b
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r13 + 3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x180031607
xor edx, edx
lea r8d, [r13 + 2]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r14, rax
test rax, rax
je 0x180031607
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], r13
lea r9, [rbp + 0xf]
lea r8, [0x180031370]
lea edx, [r13 + 0xe]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r13
lea r9, [rbp - 9]
lea r8, [0x180031370]
lea edx, [r13 + 3]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov qword [rbp - 0x19], r13
mov qword [rbp - 0x11], r13
lea ecx, [r13 + 0x20]
call fcn.18004d044
test rax, rax
je 0x1800316bc
mov qword [rax], rax
lea rcx, [rax + 8]
test rcx, rcx
je 0x1800316c8
mov qword [rcx], rax
lea rcx, [rax + 0x10]
test rcx, rcx
je 0x1800316d4
mov qword [rcx], rax
mov word [rax + 0x18], 0x101
mov qword [rbp - 0x19], rax
mov edx, 0xe
mov r9d, 0x409
lea r8d, [rdx + 0x72]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x18003182b
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
movzx edi, r13w
cmp r13w, word [rax + 4]
je 0x18003182b
movzx ebx, byte [rbp + 0x67]
mov r11, qword [rbp - 0x19]
nop
movzx ecx, di
imul rdx, rcx, 0xe
movzx r10d, word [rdx + rsi + 0x12]
mov dword [rbp + 0x67], r10d
mov rax, qword [r11 + 8]
mov r9, r11
mov r8b, 1
cmp byte [rax + 0x19], 0
jne 0x18003177f
nop dword [rax]
nop word [rax + rax]
mov r9, rax
cmp r10d, dword [rax + 0x1c]
setb r8b
test r8b, r8b
je 0x180031775
mov rax, qword [rax]
jmp 0x180031779
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x180031760
mov rax, r9
test r8b, r8b
je 0x1800317fa
cmp r9, qword [r11]
jne 0x180031795
mov r8b, 1
lea rdx, [rbp + 0x7f]
jmp 0x180031804
cmp byte [r9 + 0x19], 0
je 0x1800317a2
mov rax, qword [r9 + 0x10]
jmp 0x1800317fa
mov rcx, qword [r9]
cmp byte [rcx + 0x19], 0
jne 0x1800317cf
mov rax, rcx
mov rcx, qword [rcx + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x1800317fa
nop dword [rax + rax]
mov rax, rcx
mov rcx, qword [rcx + 0x10]
cmp byte [rcx + 0x19], 0
je 0x1800317c0
jmp 0x1800317fa
mov rcx, qword [r9 + 8]
cmp byte [rcx + 0x19], 0
jne 0x1800317f2
nop dword [rax]
cmp rax, qword [rcx]
jne 0x1800317f2
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1800317e0
cmp byte [rax + 0x19], 0
cmove rax, rcx
cmp dword [rax + 0x1c], r10d
jae 0x18003181e
lea rdx, [rbp - 0x21]
mov byte [rsp + 0x28], bl
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x19]
call fcn.180032d00
mov r11, qword [rbp - 0x19]
inc di
cmp di, word [rsi + 4]
jne 0x180031730
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov rsi, rax
test rax, rax
jne 0x18003184f
mov edi, r13d
jmp 0x1800318ea
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov ecx, eax
call fcn.18004d088
mov rbx, rax
mov qword [rbp + 0x67], rax
mov dword [rbp + 0x77], r13d
test rax, rax
je 0x18003188b
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x77]
mov r8d, edi
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1800318d0
cmp edi, dword [rbp + 0x77]
jne 0x1800318d0
lea rax, [rbp - 0x19]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
mov r8, rsi
mov rdx, rbx
call fcn.180031390
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
je 0x1800318de
mov edi, 1
jmp 0x1800318e1
mov edx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov edi, r13d
mov rcx, rbx
call fcn.18004d03c
nop
mov r8, qword [rbp - 0x19]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp + 0x67]
lea rcx, [rbp - 0x19]
call fcn.180032610
mov rcx, qword [rbp - 0x19]
call fcn.18004d034
nop
mov rdx, qword [rbp - 9]
test rdx, rdx
je 0x180031930
mov r8, qword [rbp + 7]
sub r8, rdx
sar r8, 4
call fcn.180032740
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r13
mov rdx, qword [rbp + 0xf]
test rdx, rdx
je 0x180031949
mov r8, qword [rbp + 0x1f]
sub r8, rdx
sar r8, 4
call fcn.180032740
mov eax, edi
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret