Function at 0x100020ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rdx
mov rax, rsp
sub rsp, 0x118
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov qword [rax - 8], rsi
mov qword [rax - 0x10], rdi
mov qword [rax - 0x18], r12
mov qword [rax - 0x20], r13
mov qword [rax - 0x28], r14
mov r13, rdx
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.100043a10
nop
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.100043ac0
test eax, eax
jne 0x100020b59
lea rcx, [rsp + 0x30]
call fcn.100043a70
nop
mov rdx, qword [r13]
sub rdx, 0x18
mov ebx, 0xffffffff
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x100020b52
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x100020dc2
lea rcx, [0x1000a9318]
mov rax, qword [0x1000a9318]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
xor r14d, r14d
mov rbx, r14
xor edx, edx
lea rcx, [0x1000a92a0]
call fcn.100047064
mov rsi, rax
lea r12d, [r14 + 1]
test rax, rax
je 0x100020d3c
lea ebp, [r14 + 0xb]
nop
nop
test rbx, rbx
jne 0x100020d3c
xor r9d, r9d
lea edx, [rbx + 6]
mov r8d, 0x13d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
test rax, rax
jne 0x100020bcb
mov rbx, r14
jmp 0x100020c39
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x100020be1
mov rbx, r14
jmp 0x100020c34
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x100020bf7
mov rbx, r14
jmp 0x100020c34
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
add rdx, rbx
mov ecx, ebp
nop
nop
cmp rbx, rdx
jae 0x100020c27
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
add ecx, 0xffffffff
jne 0x100020c10
cmp rbx, rdx
jb 0x100020c2c
mov rbx, r14
jmp 0x100020c34
cmp word [rbx], r14w
cmove rbx, r14
test rbx, rbx
jne 0x100020c5c
mov edx, r12d
lea rcx, [0x1000a92a0]
call fcn.100047064
mov rsi, rax
inc r12d
test rax, rax
jne 0x100020ba0
jmp 0x100020d3c
test rsi, rsi
je 0x100020d3c
mov edx, 0x13d
mov r8d, 6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x100020d3c
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x100020d3c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x100020d3c
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
cmp rbx, rcx
jae 0x100020d3c
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
add ebp, 0xffffffff
jne 0x100020cc0
cmp rbx, rcx
jae 0x100020d3c
movzx eax, word [rbx]
test ax, ax
je 0x100020d3c
movzx edi, ax
mov rcx, qword [rsp + 0x20]
mov edx, 1
sub edx, dword [rcx - 8]
mov eax, dword [rcx - 0xc]
sub eax, edi
or eax, edx
jge 0x100020d09
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.1000140c0
mov rcx, qword [rsp + 0x20]
lea rsi, [rdi + rdi]
lea rdx, [rbx + 2]
mov r8, rsi
call sub.msvcrt.dll_memcpy
test edi, edi
js 0x100020db7
mov rax, qword [rsp + 0x20]
cmp edi, dword [rax - 0xc]
jg 0x100020db7
mov dword [rax - 0x10], edi
mov rax, qword [rsp + 0x20]
mov word [rsi + rax], r14w
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.100043be0
mov rdx, r13
lea rcx, [rsp + 0x30]
call fcn.100043c80
lea rcx, [rsp + 0x30]
call fcn.100043bb0
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100020d88
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x30]
call fcn.100043a70
nop
mov rdx, qword [r13]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x100020db0
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
jmp 0x100020dc2
mov ecx, 0x80070057
call fcn.100013860
nop
mov rbx, qword [rsp + 0x130]
mov rbp, qword [rsp + 0x138]
mov rsi, qword [rsp + 0x110]
mov rdi, qword [rsp + 0x108]
mov r12, qword [rsp + 0x100]
mov r13, qword [rsp + 0xf8]
mov r14, qword [rsp + 0xf0]
add rsp, 0x118
ret