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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
mov ebp, edx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x80], 1
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, str.DropResourceFile_0_
mov edx, 0x80
lea rcx, [0x140090f60]
call fcn.14001b57c
movzx edx, bp
lea r8, [0x140039bf8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x140001574
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.FindResource
lea rdx, [0x140090f60]
lea rcx, str.error______s___s_failed._ErrorCode__d__n
call fcn.140001030
mov eax, 0x65b
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rdx, rsi
mov qword [rsp + 0x88], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
jne 0x1400015bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [0x140039c20]
lea rdx, [0x140090f60]
lea rcx, str.error______s___s_failed._ErrorCode__d__n
call fcn.140001030
mov eax, 0x65b
jmp 0x1400017ae
mov rcx, r14
mov qword [rsp + 0x40], r15
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
test rax, rax
jne 0x1400015ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [0x140039c40]
lea rdx, [0x140090f60]
lea rcx, str.error______s___s_failed._ErrorCode__d__n
call fcn.140001030
mov ebx, 0x65b
jmp 0x14000179e
mov rdx, rsi
mov qword [rsp + 0x70], r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r12d, eax
test eax, eax
jne 0x140001643
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140039c60]
lea rdx, [0x140090f60]
mov r9d, eax
lea rcx, str.error______s___s_failed._ErrorCode__d__n
call fcn.140001030
mov ebx, 0x65b
jmp 0x140001799
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400016ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140039c80]
lea rdx, [0x140090f60]
test rdi, rdi
je 0x14000162a
mov r9, rdi
mov dword [rsp + 0x20], eax
lea rcx, str.error______s___s___s__failed._ErrorCode__d__n
call fcn.140001030
mov ebx, 0x65b
jmp 0x140001799
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbx
mov r8d, r12d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140001715
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140039c98]
lea rdx, [0x140090f60]
test rdi, rdi
je 0x1400016ff
mov r9, rdi
mov dword [rsp + 0x20], eax
lea rcx, str.error______s___s___s__failed._ErrorCode__d__n
call fcn.140001030
mov ebx, 0x65b
jmp 0x140001790
mov r9d, eax
lea rcx, str.error______s___s_failed._ErrorCode__d__n
call fcn.140001030
mov ebx, 0x65b
jmp 0x140001790
lea eax, [rbp - 0x6d]
test eax, 0xfffffffa
jne 0x14000177c
cmp ebp, 0x71
je 0x14000177c
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbx
mov r8d, 4
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000177c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.AppendFile
lea rdx, [0x140090f60]
test rdi, rdi
je 0x1400016ff
mov r9, rdi
mov dword [rsp + 0x20], eax
lea rcx, str.error______s___s___s__failed._ErrorCode__d__n
call fcn.140001030
mov ebx, 0x65b
jmp 0x140001790
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r15, qword [rsp + 0x40]
mov eax, ebx
mov r14, qword [rsp + 0x88]
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret