Function at 0x140006cc0
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x4e0
mov rax, qword [0x14002c040]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov rsi, rcx
mov ebx, 1
nop dword [rax]
movzx edx, bx
mov r8d, 0x18
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x140006d16
inc ebx
cmp ebx, 3
jle 0x140006cf0
jmp 0x140006f23
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140006f5d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140006f5d
test edi, edi
je 0x140006f5d
lea rdx, [rsp + 0x2c0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
movabs rax, 0x455594d84f96ab8e
lea r9, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x20]
movabs rax, 0x84cf3de0121d4c6e
mov qword [rsp + 0x90], rcx
movabs rsi, 0x453c94b64ff7abe3
mov qword [rsp + 0x20], rax
movabs rcx, 0x3dc5c1a1f1e648c2
mov rax, qword [rsp + 0x20]
movabs rdi, 0x84bb3d9312784c08
mov qword [rsp + 0x98], rax
xor r8d, r8d
movabs rax, 0xf16014912d4790eb
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x20], rcx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x20], rsi
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], rdi
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x78], rax
movabs rax, 0xf11014fc2d3390c5
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x2c0]
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x88], rax
vmovdqu ymm0, ymmword [rsp + 0x70]
vpxor ymm1, ymm0, ymmword [rsp + 0x90]
vmovdqu ymmword [rsp + 0x90], ymm1
vzeroupper
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140006f5d
movabs rax, 0x453c94b64ff7ab94
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0xb0]
mov rax, qword [rsp + 0x20]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], rdi
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x20], rsi
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x20], rdi
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x98], rax
movdqa xmm0, xmmword [rsp + 0x90]
xorps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
cmp qword [rsp + 0x28], 0
je 0x140006f5d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0
jne 0x140006f5d
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
call fcn.140001040
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 0x38
xor eax, eax
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x64], eax
lea rax, [rsp + 0xb0]
movups xmmword [rsp + 0x34], xmm0
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x44], xmm0
movups xmmword [rsp + 0x54], xmm0
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
jmp 0x140006f5f
xor eax, eax
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.14001e770
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret