Function at 0x7ff71cd7400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x7ff71cee2b0]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov r11d, 0
mov rbp, rdx
lea rax, [rsp + 0x68]
test rbp, 0xffffffffffff0000
mov ebx, r11d
mov dword [rsp + 0x48], r8d
sete bl
mov rdx, rcx
mov qword [rsp + 0x40], rcx
mov rdi, r11
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x38], rax
cmp dword [0x7ff71cf0e30], r11d
jne 0x7ff71cd7479
call fcn.7ff71cd8c7c
xor r11d, r11d
cmp eax, r11d
jne 0x7ff71cd7474
or eax, 0xffffffff
jmp 0x7ff71cd7822
mov rdx, qword [rsp + 0x40]
or esi, 0xffffffff
cmp dword [0x7ff71cf0e2c], r11d
jne 0x7ff71cd751f
mov dword [0x7ff71cf0e2c], 1
cmp ebx, r11d
je 0x7ff71cd74ae
mov rcx, qword [0x7ff71cee2c8]
cmp rdx, rcx
jne 0x7ff71cd74d6
cmp ebp, 0xc8
je 0x7ff71cd751f
jmp 0x7ff71cd74d6
lea rcx, str.core
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor r11d, r11d
cmp eax, r11d
mov ecx, r11d
setne cl
cmp ecx, r11d
je 0x7ff71cd7528
mov rcx, qword [0x7ff71cee2c8]
xor r8d, r8d
mov edx, 0xc8
call sym.WINMM.dll_mciLoadCommandResource
cmp eax, esi
jne 0x7ff71cd751c
mov rcx, qword [0x7ff71cee2c0]
lea rax, [0x7ff71cee2c0]
cmp rcx, rax
je 0x7ff71cd751c
bt dword [rcx + 0x1c], 0x16
jae 0x7ff71cd751c
cmp byte [rcx + 0x19], 1
jb 0x7ff71cd751c
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff71ce9580]
mov edx, 0x11
call fcn.7ff71cc12c0
xor r11d, r11d
cmp ebx, r11d
jne 0x7ff71cd7614
lea r8, [rbp + 0x10]
mov r10d, 0xd
cmp rbp, r8
jae 0x7ff71cd7570
mov rcx, r11
mov r9, rbp
movzx edx, word [r9]
cmp dx, r11w
je 0x7ff71cd7570
mov rax, rcx
sar rax, 1
cmp rax, r10
jae 0x7ff71cd7570
mov rax, qword [rsp + 0x38]
add r9, 2
add rcx, 2
mov word [rax], dx
add rax, 2
mov qword [rsp + 0x38], rax
cmp r9, r8
jb 0x7ff71cd753d
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x68]
lea r8, str..mci
mov rax, rcx
sub rax, rdx
sar rax, 1
sub r10, rax
mov rdx, r10
call fcn.7ff71cc4024
lea r11, [rsp + 0x60]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], r11
lea rdx, [rsp + 0x68]
mov r9d, 0x104
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x7ff71cd7614
mov edi, 1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [rsp + 0x90]
mov r8d, edi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test rdi, rdi
je 0x7ff71cd7614
mov r8d, 0xa
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x7ff71cd7614
mov rcx, rdi
jmp 0x7ff71cd762d
mov rcx, qword [rsp + 0x40]
mov r8d, 0xa
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, qword [rsp + 0x40]
test rax, rax
jne 0x7ff71cd7647
test rdi, rdi
je 0x7ff71cd7640
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x7ff71cd7822
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x7ff71cd7632
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x7ff71cd76ab
mov rcx, qword [0x7ff71cee2c0]
lea rax, [0x7ff71cee2c0]
cmp rcx, rax
je 0x7ff71cd76a0
bt dword [rcx + 0x1c], 0x16
jae 0x7ff71cd76a0
cmp byte [rcx + 0x19], 1
jb 0x7ff71cd76a0
mov edx, 0x16
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff71ce9580]
call fcn.7ff71cc12c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x7ff71cd7632
mov ebp, dword [rsp + 0x30]
mov r11, rax
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, r11
call fcn.7ff71cd726c
mov edx, eax
mov eax, dword [rsp + 0x38]
add r11, rdx
test eax, eax
jne 0x7ff71cd76d2
inc ebp
jmp 0x7ff71cd76b2
cmp eax, 6
jne 0x7ff71cd76b2
mov eax, ebp
mov dword [rsp + 0x30], ebp
mov rbp, qword [rsp + 0x50]
test eax, eax
jne 0x7ff71cd770d
mov rcx, qword [0x7ff71cee2c0]
lea rax, [0x7ff71cee2c0]
cmp rcx, rax
je 0x7ff71cd76a0
bt dword [rcx + 0x1c], 0x16
jae 0x7ff71cd76a0
cmp byte [rcx + 0x19], 1
jb 0x7ff71cd76a0
mov edx, 0x17
jmp 0x7ff71cd7690
mov rcx, qword [0x7ff71cee2c0]
lea rdx, [0x7ff71cee2c0]
cmp rcx, rdx
je 0x7ff71cd7749
bt dword [rcx + 0x1c], 0x16
jae 0x7ff71cd7749
cmp byte [rcx + 0x19], 3
jb 0x7ff71cd7749
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff71ce9580]
mov edx, 0x18
mov r9d, eax
call fcn.7ff71cc3dd4
mov eax, dword [rsp + 0x30]
lea ecx, [rax*4 + 4]
call fcn.7ff71cdf53c
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x7ff71cd7795
mov rcx, qword [0x7ff71cee2c0]
lea rax, [0x7ff71cee2c0]
cmp rcx, rax
je 0x7ff71cd76a0
bt dword [rcx + 0x1c], 0x16
jae 0x7ff71cd76a0
cmp byte [rcx + 0x19], 1
jb 0x7ff71cd76a0
mov edx, 0x19
jmp 0x7ff71cd7690
mov r9d, dword [rsp + 0x30]
mov rcx, rbp
mov r11, rax
lea ebp, [r9*4 + 4]
mov qword [rsp + 0x40], rcx
shr rbp, 1
test rbp, rbp
jle 0x7ff71cd780d
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x38]
xor edx, edx
call fcn.7ff71cd726c
mov ecx, dword [rsp + 0x38]
test ecx, ecx
jne 0x7ff71cd77e6
mov ecx, dword [rsp + 0x40]
sub ecx, dword [rsp + 0x50]
mov dword [r11], ecx
add r11, 4
add qword [rsp + 0x30], 4
jmp 0x7ff71cd77eb
cmp ecx, 6
je 0x7ff71cd780a
mov rcx, qword [rsp + 0x40]
mov eax, eax
add rcx, rax
mov rax, qword [rsp + 0x30]
sar rax, 2
mov qword [rsp + 0x40], rcx
cmp rax, rbp
jl 0x7ff71cd77bb
jmp 0x7ff71cd780d
mov dword [r11], esi
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
mov r9, rdi
mov rcx, rbx
call fcn.7ff71cd7300
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.7ff71cc11f0
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2b0
pop rdi
pop rsi
pop rbp
ret