Function at 0x1800a7110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180268080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, r9
mov r13, r8
mov r12d, edx
mov rdi, rcx
test edx, edx
jne 0x1800a7150
xor al, al
jmp 0x1800a7428
xor r14d, r14d
mov qword [rsp + 0x30], r14
lea rbx, [rcx + 0x48]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x1800a7175
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a7175
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov eax, dword [rdi + 8]
cmp eax, 1
jne 0x1800a71a9
cmp qword [rdi + 0x20], 0
je 0x1800a72af
mov r9, rsi
mov r8, r13
mov edx, r12d
mov rcx, rdi
call fcn.1800a7880
movzx edi, al
test al, al
jne 0x1800a740c
jmp 0x1800a72af
cmp eax, 2
jne 0x1800a72af
cmp qword [rdi + 0x40], 0
je 0x1800a72af
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x28], rbx
test rbx, rbx
je 0x1800a71db
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a71db
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x1800a71e8
mov r8, qword [rsi]
movzx edx, r12w
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x1800a721f
test rbx, rbx
je 0x1800a72af
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a7215
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], r14
jmp 0x1800a72af
mov rdx, rbp
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r15d, eax
test eax, eax
je 0x1800a71fe
mov rdx, rbp
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x1800a71fe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
jne 0x1800a7280
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
test rbx, rbx
je 0x1800a72ac
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a7276
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r14d, r14d
mov qword [rsp + 0x28], r14
jmp 0x1800a72af
mov rdi, r15
mov rdx, r15
mov rcx, r13
call fcn.18009efa0
mov r8, r15
mov rdx, r14
mov rcx, qword [r13 + 0x10]
call fcn.180180990
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
jmp 0x1800a73e9
xor r14d, r14d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x28], rbx
test rbx, rbx
je 0x1800a72cd
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a72cd
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov eax, dword [0x1802719c0]
test al, 1
jne 0x1800a72f9
or eax, 1
mov dword [0x1802719c0], eax
mov qword [0x1802719c8], r14
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
cmp qword [rsi + 0x18], 8
jb 0x1800a731c
mov rsi, qword [rsi]
movzx edx, r12w
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x1800a7354
test rbx, rbx
je 0x1800a734c
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a7347
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], r14
xor dil, dil
jmp 0x1800a740c
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
test eax, eax
jne 0x1800a7392
test rbx, rbx
je 0x1800a738a
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a737a
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r14d, r14d
mov qword [rsp + 0x28], r14
xor dil, dil
jmp 0x1800a740c
xor r14d, r14d
xor dil, dil
jmp 0x1800a740c
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1800a7367
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
jne 0x1800a73c2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1800a7367
mov rdi, r14
mov rdx, r14
mov rcx, r13
call fcn.18009efa0
mov r8, r14
mov rdx, rbp
mov rcx, qword [r13 + 0x10]
call fcn.180180990
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
test rbx, rbx
je 0x1800a7406
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a73fc
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r14d, r14d
mov qword [rsp + 0x28], r14
jmp 0x1800a7409
xor r14d, r14d
mov dil, 1
test rbx, rbx
je 0x1800a7424
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800a741f
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x30], r14
movzx eax, dil
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18017e6e0
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret