Function at 0x1800a7450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180268080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r15, r8
mov r14d, edx
mov rdi, rcx
test edx, edx
jne 0x1800a748b
xor al, al
jmp 0x1800a76e3
xor r12d, r12d
mov qword [rsp + 0x30], r12
lea rbx, [rcx + 0x48]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x1800a74b0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a74b0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov eax, dword [rdi + 8]
cmp eax, 1
jne 0x1800a757f
cmp qword [rdi + 0x20], 0
je 0x1800a74dc
mov r8, r15
mov edx, r14d
mov rcx, rdi
call fcn.1800a7a70
movzx edi, al
test al, al
jne 0x1800a76c7
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x28], rbx
test rbx, rbx
je 0x1800a74fa
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a74fa
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov eax, dword [0x1802719c0]
test al, 1
jne 0x1800a7526
or eax, 1
mov dword [0x1802719c0], eax
mov qword [0x1802719c8], r12
call fcn.180089790
lea rcx, [0x1801c3c40]
call fcn.18017ebe4
nop
mov rax, qword [0x1802719c8]
mov rcx, qword [rax + 0x78]
lea rdi, [0x180000000]
test rcx, rcx
cmovne rdi, rcx
movzx edx, r14w
lea r8, [0x1801e5bb0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x1800a764a
test rbx, rbx
je 0x1800a7577
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a7572
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], r12
xor dil, dil
jmp 0x1800a76c7
cmp eax, 2
jne 0x1800a74dc
cmp qword [rdi + 0x40], 0
je 0x1800a74dc
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x28], rbx
test rbx, rbx
je 0x1800a75b1
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a75b1
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
movzx edx, r14w
lea r8, [0x1801e5bb0]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x1800a75ef
test rbx, rbx
je 0x1800a74dc
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a75e5
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], r12
jmp 0x1800a74dc
mov rdx, rsi
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x1800a75ce
mov rdx, rsi
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x1800a75ce
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x1800a7630
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1800a75ce
mov r8, rbp
mov rdx, rax
mov rcx, r15
call fcn.180009bb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
jmp 0x1800a76ac
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x1800a755f
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x1800a755f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x1800a7694
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1800a755f
mov r8, rbp
mov rdx, rax
mov rcx, r15
call fcn.180009bb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
test rbx, rbx
je 0x1800a76c4
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a76bf
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], r12
mov dil, 1
test rbx, rbx
je 0x1800a76df
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a76da
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x30], r12
movzx eax, dil
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18017e6e0
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret