Function at 0x180052c50
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 0x180052c8b
xor al, al
jmp 0x180052eb4
xor r12d, r12d
mov qword [rsp + 0x30], r12
lea rbx, [rcx + 0x48]
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x180052cb0
mov rcx, qword [rbx]
test rcx, rcx
je 0x180052cb0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov eax, dword [rdi + 8]
cmp eax, 1
jne 0x180052d54
cmp qword [rdi + 0x20], 0
je 0x180052cdc
mov r8, r15
mov edx, r14d
mov rcx, rdi
call fcn.180053220
movzx edi, al
test al, al
jne 0x180052e98
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x28], rbx
test rbx, rbx
je 0x180052cfa
mov rcx, qword [rbx]
test rcx, rcx
je 0x180052cfa
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
call fcn.18000ef10
mov rcx, qword [rax]
mov rax, qword [rcx + 0x78]
lea rdi, [0x180000000]
test rax, rax
cmovne rdi, rax
movzx edx, r14w
lea r8, [0x180221cc0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x180052e1b
test rbx, rbx
je 0x180052d4c
mov rcx, qword [rbx]
test rcx, rcx
je 0x180052d47
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], r12
xor dil, dil
jmp 0x180052e98
cmp eax, 2
jne 0x180052cdc
cmp qword [rdi + 0x40], 0
je 0x180052cdc
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x28], rbx
test rbx, rbx
je 0x180052d82
mov rcx, qword [rbx]
test rcx, rcx
je 0x180052d82
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
movzx edx, r14w
lea r8, [0x180221cc0]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x180052dc0
test rbx, rbx
je 0x180052cdc
mov rcx, qword [rbx]
test rcx, rcx
je 0x180052db6
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], r12
jmp 0x180052cdc
mov rdx, rsi
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x180052d9f
mov rdx, rsi
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x180052d9f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x180052e01
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x180052d9f
mov r8, rbp
mov rdx, rax
mov rcx, r15
call fcn.180009710
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
jmp 0x180052e7d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x180052d34
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x180052d34
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x180052e65
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x180052d34
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 0x180052e95
mov rcx, qword [rbx]
test rcx, rcx
je 0x180052e90
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], r12
mov dil, 1
test rbx, rbx
je 0x180052eb0
mov rcx, qword [rbx]
test rcx, rcx
je 0x180052eab
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