Function at 0x140015610
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140067080]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov rbx, rdx
mov qword [rbp + 0x18], rdx
mov edx, 0x65
xor ecx, ecx
lea r8d, [rdx - 0x5b]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400158b7
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140015947
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test r14, r14
je 0x140015827
test eax, eax
je 0x140015827
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400156ad
mov rcx, qword [rbx]
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400159d7
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x20]
mov r8d, edi
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001578e
cmp dword [rbp + 0x20], edi
jne 0x14001578e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140015755
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140015750
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140015a67
mov rcx, r8
call fcn.140022abc
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.140022a60
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.1400034e0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 8]
call fcn.140001a20
mov rbx, rax
mov edx, 0x65
lea rcx, [rbp - 0x28]
call fcn.140014ca0
nop
mov r8, rax
lea rdx, str.Failed_to_write_to_temporary_file._Resource:
lea rcx, [rbp - 0x48]
call fcn.14000f880
nop
lea r8, str._Error_code:
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140012420
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400166f0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140015380
lea rdx, [0x140065118]
lea rcx, [rsp + 0x50]
call fcn.1400249e8
nop
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.1400034e0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 8]
call fcn.140001a20
mov rbx, rax
mov edx, 0x65
lea rcx, [rbp - 0x28]
call fcn.140014ca0
nop
mov r8, rax
lea rdx, str.Failed_to_find_resource
lea rcx, [rbp - 0x48]
call fcn.14000f880
nop
lea r8, str._Error_code:
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140012420
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400166f0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140015380
lea rdx, [0x140065118]
lea rcx, [rsp + 0x50]
call fcn.1400249e8
nop
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.1400034e0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.140001a20
mov rbx, rax
mov edx, 0x65
lea rcx, [rbp - 0x68]
call fcn.140014ca0
nop
mov r8, rax
lea rdx, str.Failed_to_find_resource
lea rcx, [rbp - 0x48]
call fcn.14000f880
nop
lea r8, str._Error_code:
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140012420
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.1400166f0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140015380
lea rdx, [0x140065118]
lea rcx, [rsp + 0x50]
call fcn.1400249e8
nop
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.1400034e0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 8]
call fcn.140001a20
mov rbx, rax
mov edx, 0x65
lea rcx, [rbp - 0x28]
call fcn.140014ca0
nop
mov r8, rax
lea rdx, str.Failed_to_find_resource
lea rcx, [rbp - 0x48]
call fcn.14000f880
nop
lea r8, str._Error_code:
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140012420
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400166f0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140015380
lea rdx, [0x140065118]
lea rcx, [rsp + 0x50]
call fcn.1400249e8
nop
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.1400034e0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 8]
call fcn.140001a20
mov rbx, rax
mov edx, 0x65
lea rcx, [rbp - 0x28]
call fcn.140014ca0
nop
mov r8, rax
lea rdx, str.Failed_to_create_temporary_file._Resource:
lea rcx, [rbp - 0x48]
call fcn.14000f880
nop
lea r8, str._Error_code:
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140012420
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400166f0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140015380
lea rdx, [0x140065118]
lea rcx, [rsp + 0x50]
call fcn.1400249e8
nop
call fcn.14002994c
int3