Function at 0x180052c60
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 [0x18028e088]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r15, r8
mov r14d, edx
mov rdi, rcx
test edx, edx
jne 0x180052c9b
xor al, al
jmp 0x180052ec4
xor r12d, r12d
mov qword [rsp + 0x30], r12
lea rbx, [rcx + 0x48]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x180052cc0
mov rcx, qword [rbx]
test rcx, rcx
je 0x180052cc0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov eax, dword [rdi + 8]
cmp eax, 1
jne 0x180052d64
cmp qword [rdi + 0x20], 0
je 0x180052cec
mov r8, r15
mov edx, r14d
mov rcx, rdi
call fcn.180053230
movzx edi, al
test al, al
jne 0x180052ea8
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x28], rbx
test rbx, rbx
je 0x180052d0a
mov rcx, qword [rbx]
test rcx, rcx
je 0x180052d0a
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
call fcn.18000ef20
mov rcx, qword [rax]
mov rax, qword [rcx + 0x78]
lea rdi, [0x180000000]
test rax, rax
cmovne rdi, rax
movzx edx, r14w
lea r8, [0x1802221a8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x180052e2b
test rbx, rbx
je 0x180052d5c
mov rcx, qword [rbx]
test rcx, rcx
je 0x180052d57
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], r12
xor dil, dil
jmp 0x180052ea8
cmp eax, 2
jne 0x180052cec
cmp qword [rdi + 0x40], 0
je 0x180052cec
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x28], rbx
test rbx, rbx
je 0x180052d92
mov rcx, qword [rbx]
test rcx, rcx
je 0x180052d92
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
movzx edx, r14w
lea r8, [0x1802221a8]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x180052dd0
test rbx, rbx
je 0x180052cec
mov rcx, qword [rbx]
test rcx, rcx
je 0x180052dc6
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], r12
jmp 0x180052cec
mov rdx, rsi
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x180052daf
mov rdx, rsi
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x180052daf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x180052e11
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x180052daf
mov r8, rbp
mov rdx, rax
mov rcx, r15
call fcn.180009710
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
jmp 0x180052e8d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x180052d44
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x180052d44
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x180052e75
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x180052d44
mov r8, rsi
mov rdx, rax
mov rcx, r15
call fcn.180009710
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
test rbx, rbx
je 0x180052ea5
mov rcx, qword [rbx]
test rcx, rcx
je 0x180052ea0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], r12
mov dil, 1
test rbx, rbx
je 0x180052ec0
mov rcx, qword [rbx]
test rcx, rcx
je 0x180052ebb
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.1801ccd30
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret