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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x6f8]
sub rsp, 0x7d0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rbp + 0x6c0], rax
mov rbx, rcx
lea rcx, [rbp + 0x1a0]
call fcn.1800e94dc
nop
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x1a0]
call fcn.1800ee34c
lea rdx, [rbp + 0x2b0]
lea rcx, [rbp + 0x80]
call fcn.1800f1dfc
nop
xor edi, edi
mov esi, edi
mov r14d, edi
call fcn.1800eb41c
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1800f1dfc
nop
call fcn.1800eb424
mov rcx, rax
call fcn.1800f28cc
mov r13d, 0x80
lea r12d, [rdi + 1]
test al, al
je 0x1801060ca
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.1800f20fc
lea rcx, [rsp + 0x60]
call fcn.18007c880
mov rcx, rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, r12d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18010606f
lea rcx, [rsp + 0x60]
call fcn.1800f1f54
jmp 0x18010623f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
test eax, eax
je 0x180106060
mov dword [rsp + 0x40], edi
mov ecx, r14d
call fcn.18014874c
mov rsi, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], r14d
je 0x18010622c
mov rcx, rsi
call fcn.180148104
mov rsi, rdi
jmp 0x180106060
call fcn.1800eb424
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1800f20fc
call fcn.1800eb758
test al, al
je 0x1801060ef
call fcn.1800eb42c
mov rbx, rax
jmp 0x18010614f
call fcn.1800eb434
mov rdx, rax
lea rcx, [rbp + 0x110]
call fcn.1800f1dfc
nop
lea rcx, [rbp + 0x110]
call fcn.18007c880
mov rcx, rax
xor edx, edx
call fcn.1800f1010
mov r15, rax
lea rcx, [rsp + 0x60]
call fcn.18007c880
mov rcx, rax
mov rdx, r15
call fcn.1800f8088
mov rbx, rax
test r15, r15
je 0x180106143
mov rcx, r15
call fcn.180148104
nop
lea rcx, [rbp + 0x110]
call fcn.1800f1f54
test rbx, rbx
je 0x180106060
mov dword [rsp + 0x44], edi
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x10]
call fcn.1800f1dfc
nop
lea r8, [0x1801b9b20]
lea rdx, [0x1801b330c]
lea rcx, [rbp - 0x10]
call fcn.1800f2b48
lea rcx, [rbp - 0x10]
call fcn.18007c880
mov rdx, rax
lea rax, [rbp + 0x490]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
mov r8b, r12b
mov rcx, rbx
call fcn.1800f7a8c
test eax, eax
je 0x1801061be
lea rcx, [rbp - 0x10]
call fcn.1800f1f54
jmp 0x180106060
mov r14d, dword [rbp + 0x6bc]
test r14d, r14d
je 0x1801061b0
mov ecx, r14d
call fcn.18014874c
mov rsi, rax
mov r9d, r14d
mov r8, rax
mov edx, dword [rsp + 0x44]
mov rcx, rbx
call fcn.1800f8584
test eax, eax
je 0x180106210
cmp eax, 0x600
je 0x180106210
mov rcx, rsi
call fcn.180148104
mov rsi, rdi
call fcn.1800eb758
test al, al
jne 0x1801061b0
mov rcx, rbx
call fcn.1800f77cc
jmp 0x1801061b0
call fcn.1800eb758
test al, al
jne 0x180106222
mov rcx, rbx
call fcn.1800f77cc
nop
lea rcx, [rbp - 0x10]
call fcn.1800f1f54
nop
lea rcx, [rsp + 0x60]
call fcn.1800f1f54
test rsi, rsi
jne 0x1801063a8
lea rcx, [rbp + 0x80]
call fcn.18007c880
mov rcx, rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, r12d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1801062d8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
test eax, eax
je 0x1801062d8
mov dword [rsp + 0x48], edi
mov ecx, r14d
call fcn.18014874c
mov rsi, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
mov r8d, r14d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x48], r14d
je 0x1801062cf
mov rcx, rsi
call fcn.180148104
mov rsi, rdi
test rsi, rsi
jne 0x1801063a8
lea rcx, [rbp + 0x80]
call fcn.1800f28e0
test al, al
je 0x1801063a3
call fcn.1800eb408
mov r12, rax
test rax, rax
je 0x1801063a3
mov qword [rsp + 0x50], rdi
lea rcx, [rbp + 0x80]
call fcn.18007c880
mov rcx, rax
mov r8d, 0xa
lea rdx, [rsp + 0x50]
call fcn.1801538ac
movzx ebx, ax
lea rcx, [rbp + 0x338]
call fcn.18007c880
mov r8, rax
mov edx, ebx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15, rax
test rax, rax
je 0x1801063a3
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r13, rax
test rax, rax
jne 0x180106365
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1801063bf
mov rdx, r15
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
test eax, eax
je 0x1801063a3
mov ecx, r14d
call fcn.18014874c
mov rsi, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov r8d, r14d
mov rcx, rsi
call fcn.18014ba10
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeResource]
test rsi, rsi
je 0x1801063bf
mov edx, r14d
mov rcx, rsi
call fcn.180105ea0
mov rdi, rax
mov rcx, rsi
call fcn.180148104
nop
lea rcx, [rbp + 0x80]
call fcn.1800f1f54
nop
lea rcx, [rbp + 0x408]
call fcn.1800f1f54
lea rcx, [rbp + 0x338]
call fcn.1800f1f54
lea rcx, [rbp + 0x2b0]
call fcn.1800f1f54
lea rcx, [rbp + 0x228]
call fcn.1800f1f54
lea rcx, [rbp + 0x1a0]
call fcn.1800f1f54
mov rax, rdi
mov rcx, qword [rbp + 0x6c0]
xor rcx, rsp
call fcn.180147bf0
lea r11, [rsp + 0x7d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret