Function at 0x1400f1850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1401aa010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r13, r9
mov r15, r8
mov word [rsp + 0x50], dx
mov qword [rsp + 0x60], r8
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x58], rax
xor edi, edi
mov r14d, edi
mov ebp, edi
mov r12d, edi
lea esi, [rdi + 0x22]
lea rbx, [0x1401aa4b8]
cmp word [0x1401aa4b8], di
jne 0x1400f18dc
mov word [0x1401aa4b8], si
mov r8d, 0xfe
lea rdx, [0x1401aa4ba]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
movsxd rcx, eax
mov word [rbx + rcx*2], si
call fcn.14000cd60
mov rcx, rax
test rax, rax
je 0x1400f1bb0
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14005eeb3.0]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.14000c4c0
mov rsi, 0xffffffffffffffff
test al, al
jne 0x1400f193b
mov rax, rsi
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400f1920
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.14000c750
nop
lea r8, str.RtkAudUServiceRes64.dll
lea rdx, str.RtkAudUService64.exe
lea rcx, [rsp + 0x68]
call fcn.140014b20
lea r8, [0x14011c160]
lea rdx, [0x14013d38c]
lea rcx, [rsp + 0x68]
call fcn.140014b20
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call fcn.1400f25e0
test eax, eax
jne 0x1400f1a94
mov dword [rsp + 0x20], edi
lea r9, str.RtkAudUServiceRes64.dll
mov r8d, 0x314
lea rdx, str.CWin32AppMgr::ExtractResource
lea rcx, str._s__d_sFileName_s_IsRealtekSignedFile_d
call fcn.140075db0
mov r8d, 0x316
lea rdx, str.CWin32AppMgr::ExtractResource
lea rcx, str._s__d_EXIT_ON_FALSE
call fcn.140075db0
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400f19e1
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
mov rbx, qword [rsp + 0x58]
movzx ecx, word [rsp + 0x50]
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], ebp
mov eax, dword [rbx]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
lea r9, str.RtkAudUServiceRes64.dll
mov r8d, 0x333
lea rdx, str.CWin32AppMgr::ExtractResource
lea rcx, str._s__d_sFileName_s_Section_s_ResId_d_BufSize_d_ResSize_d_bSuccess_d
call fcn.140075db0
mov dword [rbx], ebp
test r14, r14
je 0x1400f1a36
mov rcx, r14
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeResource]
test rdi, rdi
je 0x1400f1a45
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x1400f1a69
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14005eeb3.0]
mov eax, r12d
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400f4410
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
lea r8d, [rdx + 0x22]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x1400f1ad8
mov r8d, 0x31a
lea rdx, str.CWin32AppMgr::ExtractResource
lea rcx, str._s__d_EXIT_ON_FALSE
call fcn.140075db0
nop
lea rdx, [rbx - 0x18]
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jmp 0x1400f19cc
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400f1afb
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
movzx edx, word [rsp + 0x50]
mov r8, qword [r15]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400f1b32
mov r8d, 0x31e
lea rdx, str.CWin32AppMgr::ExtractResource
lea rcx, str._s__d_EXIT_ON_FALSE
call fcn.140075db0
jmp 0x1400f19e1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ebp, eax
test eax, eax
jne 0x1400f1b4c
mov r8d, 0x322
jmp 0x1400f1b1a
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov r14, rax
test rax, rax
jne 0x1400f1b68
mov r8d, 0x325
jmp 0x1400f1b1a
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
test rax, rax
jne 0x1400f1b7e
mov r8d, 0x329
jmp 0x1400f1b1a
test r13, r13
je 0x1400f19e1
mov rbx, qword [rsp + 0x58]
cmp dword [rbx], ebp
jb 0x1400f19e6
lfence
mov r8, rbp
mov rdx, rax
mov rcx, r13
call fcn.1400faeb0
mov r12d, 1
jmp 0x1400f19e6
mov ecx, 0x80004005
call fcn.14000ce90
int3