Function at 0x14007bdd0
Capabilities:
Copy file
Extract resource via kernel32 functions
Set current directory
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rdi
push r14
mov eax, 0x10050
call fcn.1401119a0
sub rsp, rax
mov rdi, r9
mov rbp, r8
mov rbx, rdx
mov r14, rcx
mov r10, r9
movzx eax, word [r10]
cmp ax, 0x20
je 0x14007be05
cmp ax, 9
jne 0x14007be0b
add r10, 2
jmp 0x14007bdf5
mov qword [rsp + 0x10070], rsi
test ax, ax
je 0x14007be65
cmp ax, 0x2d
je 0x14007be24
cmp ax, 0x2b
jne 0x14007be2e
lea rax, [r10 + 2]
mov r10, rax
movzx eax, word [rax]
cmp ax, 0x30
jne 0x14007be65
movzx eax, word [r10 + 2]
mov ecx, 0xffdf
sub ax, 0x58
test cx, ax
jne 0x14007be65
movzx ecx, word [r10 + 4]
call fcn.1400f57c0
test eax, eax
je 0x14007be65
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x10]
call fcn.1400f7190
jmp 0x14007be6d
mov rcx, rdi
call fcn.1400f73ac
cmp qword [0x140160810], 0
mov esi, eax
je 0x14007bfef
cmp eax, 1
je 0x14007be95
mov rcx, rbp
call fcn.140099690
test al, al
je 0x14007be95
mov dl, 1
jmp 0x14007c05d
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov edx, 0x40000000
mov rcx, rbp
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14007be8e
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rbx + r8*2], di
jne 0x14007bed0
cmp r8, 0x104
lea rcx, [rsp + 0x50]
mov eax, 0x103
mov rdx, rbx
cmovae r8, rax
lea r8, [r8*2 + 2]
call fcn.1400f1320
lea rcx, [rsp + 0x50]
call fcn.140102e88
mov r8d, 0xa
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14007bfe4
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14007bfe4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14007bfe4
cmp dword [rax], 0x4034b50
jne 0x14007bfb7
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov r8d, eax
mov rcx, rbx
call fcn.1400d4f50
test eax, eax
je 0x14007bfb7
mov rdx, qword [rsp + 0x40]
lea r9, [rsp + 0x10088]
mov r8d, eax
mov qword [rsp + 0x20], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x40]
test eax, eax
setne dil
call fcn.1400f75c8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007c055
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea r9, [rsp + 0x10088]
mov qword [rsp + 0x20], rdi
mov r8d, eax
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dil
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007c055
xor r9d, r9d
lea r8, [rsp + 0x50]
mov edx, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rcx, qword [0x140164878]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor edi, edi
lea rdx, [rsp + 0x50]
cmp esi, 1
mov rcx, rbx
setne dil
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
lea rcx, [0x14012046c]
mov rax, qword [0x14015e420]
setne dil
test rax, rax
je 0x14007c04f
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor dil, 1
movzx edx, dil
mov rcx, r14
call fcn.1400629e0
mov rsi, qword [rsp + 0x10070]
mov rbx, qword [rsp + 0x10078]
add rsp, 0x10050
pop r14
pop rdi
pop rbp
ret