Function at 0x140002260
Capabilities:
Delete file
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140033040]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov edi, r8d
mov ebx, edx
mov rsi, rcx
mov qword [rsp + 0x68], 0
lea r8, [rsp + 0x68]
lea rdx, [fcn.140002260]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
movzx r8d, di
movzx edx, bx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x1400022cf
call fcn.140001520
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x1400022ea
call fcn.140001520
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
jne 0x140002303
call fcn.140001520
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x140002319
call fcn.140001520
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call fcn.140020fd0
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140003520
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x80], 6
je 0x14000234e
call fcn.140001520
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400038e0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov ebx, 6
lea edi, [rbx - 4]
test byte [rbp + rcx - 0x80], bl
je 0x1400023bd
lea rcx, [rsp + 0x78]
call fcn.140003fa0
test rax, rax
jne 0x1400023af
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov eax, ebx
cmp qword [rbp + rcx - 0x48], 0
cmovne eax, edi
or eax, dword [rbp + rcx - 0x80]
and eax, 0x17
mov dword [rbp + rcx - 0x80], eax
mov edx, dword [rbp + rcx - 0x7c]
and edx, eax
jne 0x1400024d6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.140001520
lea rcx, [rsp + 0x78]
call fcn.140003fa0
test rax, rax
jne 0x1400023f5
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
cmp qword [rbp + rcx - 0x48], 0
cmovne ebx, edi
or ebx, dword [rbp + rcx - 0x80]
and ebx, 0x17
mov dword [rbp + rcx - 0x80], ebx
mov eax, dword [rbp + rcx - 0x7c]
and eax, ebx
jne 0x140002483
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.140003260
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.140006270
nop
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140004e10
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret
test al, 4
je 0x140002490
lea rbx, str.ios_base::badbit_set
jmp 0x1400024a5
test dil, al
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140001840
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140002100
lea rdx, [0x1400319e8]
lea rcx, [rsp + 0x40]
call fcn.140007d10
int3
test dl, 4
je 0x1400024e4
lea rbx, str.ios_base::badbit_set
jmp 0x1400024f9
test dil, dl
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140001840
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140002100
lea rdx, [0x1400319e8]
lea rcx, [rsp + 0x40]
call fcn.140007d10
int3