Function at 0x140008df0
Capabilities:
Check if file exists
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
lea rcx, [rbp + 0xf]
call fcn.14001f040
nop
lea r8, str.SysWOW64_setupapi.dll
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x11]
call fcn.140009640
nop
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor r12d, r12d
test eax, eax
jne 0x140008ed5
lea r8, str._system32_setupapi.dll
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x31]
call fcn.140009640
mov rbx, rax
lea rax, [rbp - 0x11]
cmp rax, rbx
je 0x140008ebb
mov r8, qword [rbp + 7]
cmp r8, 8
jb 0x140008e9d
inc r8
mov rdx, qword [rbp - 0x11]
lea rcx, [rbp - 0x11]
call fcn.1400037a0
mov qword [rbp + 7], 7
mov qword [rbp - 1], r12
mov word [rbp - 0x11], r12w
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.140003cb0
nop
mov r8, qword [rbp - 0x19]
cmp r8, 8
jb 0x140008ed5
inc r8
mov rdx, qword [rbp - 0x31]
lea rcx, [rbp - 0x31]
call fcn.1400037a0
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
jne 0x140008ef9
or ebx, 0xffffffff
jmp 0x1400090f7
mov rsi, r12
mov r14, r12
mov rbx, r12
mov edx, 0x14c2
mov r8d, 5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r13d, 0xffff
test rax, rax
jne 0x140008f38
mov edx, 0x90a
lea r8d, [rax + 5]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140008f75
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
test rax, rax
je 0x140008f75
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rcx, r15
cmp word [rax + 2], r13w
jne 0x140008f6b
call qword [sym.imp.KERNEL32.dll_LockResource]
lea rsi, [rax + 0x1e]
jmp 0x140008f75
call qword [sym.imp.KERNEL32.dll_LockResource]
lea rsi, [rax + 0x16]
mov edx, 0x14c4
mov r8d, 5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
jne 0x140008fa5
mov edx, 0x90c
lea r8d, [rax + 5]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140008fe2
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
test rax, rax
je 0x140008fe2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rcx, r15
cmp word [rax + 2], r13w
jne 0x140008fd8
call qword [sym.imp.KERNEL32.dll_LockResource]
lea r14, [rax + 0x1e]
jmp 0x140008fe2
call qword [sym.imp.KERNEL32.dll_LockResource]
lea r14, [rax + 0x16]
mov edx, 0x910
mov r8d, 5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140009038
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140009038
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rcx, rdi
cmp word [rax + 2], r13w
jne 0x14000902e
call qword [sym.imp.KERNEL32.dll_LockResource]
lea rbx, [rax + 0x1e]
jmp 0x140009038
call qword [sym.imp.KERNEL32.dll_LockResource]
lea rbx, [rax + 0x16]
test rsi, rsi
je 0x140009051
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [0x1402e89b8], rax
jmp 0x140009058
mov rax, qword [0x1402e89b8]
test rax, rax
jne 0x140009095
test r14, r14
je 0x140009079
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [0x1402e89b8], rax
test rax, rax
jne 0x140009095
test rbx, rbx
je 0x1400090f2
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [0x1402e89b8], rax
test rax, rax
je 0x1400090f2
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400090eb
nop dword [rax]
nop word [rax + rax]
xor edx, edx
mov rcx, qword [0x1402e89b8]
call qword [sym.imp.USER32.dll_ShowWindow]
xor r9d, r9d
mov edx, 0x111
mov r8d, 0x14b7
mov rcx, qword [0x1402e89b8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1402e89b8]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1400090b0
mov qword [0x1402e89b8], r12
mov ebx, 1
mov r8, qword [rbp + 7]
cmp r8, 8
jb 0x140009111
inc r8
mov rdx, qword [rbp - 0x11]
lea rcx, [rbp - 0x11]
call fcn.1400037a0
mov qword [rbp + 7], 7
mov qword [rbp - 1], r12
mov word [rbp - 0x11], r12w
mov r8, qword [rbp + 0x27]
cmp r8, 8
jb 0x14000913c
inc r8
mov rdx, qword [rbp + 0xf]
lea rcx, [rbp + 0xf]
call fcn.1400037a0
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401e30a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret