Function at 0x14016ba90
Capabilities:
Extract resource via kernel32 functions
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4a0
lea rcx, [rsp + 0x60]
call fcn.1400bedb0
nop
lea rcx, [rsp + 0x58]
call fcn.1400bedb0
nop
mov rdx, qword [rsp + 0x4c0]
lea rcx, [rsp + 0x50]
call fcn.1400bebf0
nop
mov rdx, qword [rsp + 0x4c8]
lea rcx, [rsp + 0x48]
call fcn.1400bebf0
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
lea rcx, [rsp + 0x50]
call fcn.1400b82a0
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x4b0]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
movzx eax, word [rsp + 0x4b8]
mov r8, qword [rsp + 0x90]
mov edx, eax
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x4b0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x14016bbca
lea rcx, [0x140241ae0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x48]
call fcn.1400c39e0
nop
lea rcx, [rsp + 0x50]
call fcn.1400c39e0
nop
lea rcx, [rsp + 0x58]
call fcn.1400c39e0
nop
lea rcx, [rsp + 0x60]
call fcn.1400c39e0
movzx eax, byte [rsp + 0x40]
jmp 0x14016bd33
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x4b0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0x48]
call fcn.1400b82a0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x14016bc6f
lea rcx, [0x140241b00]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [rsp + 0x41], 0
lea rcx, [rsp + 0x48]
call fcn.1400c39e0
nop
lea rcx, [rsp + 0x50]
call fcn.1400c39e0
nop
lea rcx, [rsp + 0x58]
call fcn.1400c39e0
nop
lea rcx, [rsp + 0x60]
call fcn.1400c39e0
movzx eax, byte [rsp + 0x41]
jmp 0x14016bd33
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14016bce5
lea rcx, [0x140241b20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [rsp + 0x42], 0
lea rcx, [rsp + 0x48]
call fcn.1400c39e0
nop
lea rcx, [rsp + 0x50]
call fcn.1400c39e0
nop
lea rcx, [rsp + 0x58]
call fcn.1400c39e0
nop
lea rcx, [rsp + 0x60]
call fcn.1400c39e0
movzx eax, byte [rsp + 0x42]
jmp 0x14016bd33
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [rsp + 0x43], 1
lea rcx, [rsp + 0x48]
call fcn.1400c39e0
nop
lea rcx, [rsp + 0x50]
call fcn.1400c39e0
nop
lea rcx, [rsp + 0x58]
call fcn.1400c39e0
nop
lea rcx, [rsp + 0x60]
call fcn.1400c39e0
movzx eax, byte [rsp + 0x43]
add rsp, 0x4a0
pop rdi
ret