Function at 0x100022020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r11, rsp
sub rsp, 0x2e8
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 - 8], rdi
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov rax, qword [0x1000a81b8]
mov qword [rsp + 0x2b0], rax
mov rbp, rcx
mov qword [rsp + 0x38], rcx
xor r12d, r12d
mov dword [r11 - 0x238], r12d
xor edx, edx
mov r8d, 0x1f0
lea rcx, [r11 - 0x234]
call sub.msvcrt.dll_memset
lea rcx, [0x1000a9318]
mov rax, qword [0x1000a9318]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [0x1000a9318]
mov rax, qword [0x1000a9318]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x28], rdi
lea rcx, [0x1000a9318]
mov rax, qword [0x1000a9318]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x30], rsi
mov qword [rbp], r12
mov rbp, r12
xor edx, edx
lea rcx, [0x1000a92a0]
call fcn.100047064
mov r12, rax
lea r15d, [rbp + 1]
test rax, rax
je 0x10002229c
lea r14d, [rbp + 8]
nop
test rbp, rbp
jne 0x10002229c
xor r9d, r9d
lea edx, [rbp + 6]
mov r8d, 0x13d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov r13, rax
test rax, rax
jne 0x10002212b
mov rbp, rax
jmp 0x100022198
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x100022141
mov rbp, rax
jmp 0x100022193
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x100022193
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
add rdx, rbp
mov ecx, r14d
cmp rbp, rdx
jae 0x10002217e
movzx eax, word [rbp]
lea rbp, [rbp + rax*2 + 2]
add ecx, 0xffffffff
jne 0x100022166
cmp rbp, rdx
jb 0x100022185
xor eax, eax
mov rbp, rax
jmp 0x100022193
cmp word [rbp], 0
mov eax, 0
cmove rbp, rax
test rbp, rbp
jne 0x1000221bb
mov edx, r15d
lea rcx, [0x1000a92a0]
call fcn.100047064
mov r12, rax
inc r15d
test rax, rax
jne 0x100022100
jmp 0x10002229c
test r12, r12
je 0x10002229c
mov edx, 0x13d
mov r8d, 6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r13, rax
test rax, rax
je 0x10002229c
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x10002229c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x10002229c
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbp
nop
cmp rbp, rcx
jae 0x10002229c
movzx eax, word [rbp]
lea rbp, [rbp + rax*2 + 2]
add r14d, 0xffffffff
jne 0x100022220
cmp rbp, rcx
jae 0x10002229c
movzx eax, word [rbp]
test ax, ax
je 0x10002229c
movzx r12d, ax
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r12d
or eax, ecx
jge 0x10002226a
mov edx, r12d
lea rcx, [rsp + 0x20]
call fcn.1000140c0
mov rbx, qword [rsp + 0x20]
lea r13, [r12 + r12]
lea rdx, [rbp + 2]
mov r8, r13
mov rcx, rbx
call sub.msvcrt.dll_memcpy
test r12d, r12d
js 0x100022789
cmp r12d, dword [rbx - 0xc]
jg 0x100022789
mov dword [rbx - 0x10], r12d
mov word [r13 + rbx], 0
xor eax, eax
mov rbp, rax
xor edx, edx
lea rcx, [0x1000a92a0]
call fcn.100047064
mov r12, rax
lea r14d, [rbp + 1]
test rax, rax
je 0x10002246c
lea r15d, [rbp + 9]
test rbp, rbp
jne 0x10002246c
xor r9d, r9d
lea edx, [rbp + 6]
mov r8d, 0x13d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov r13, rax
test rax, rax
jne 0x1000222ee
mov rbp, rax
jmp 0x100022362
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x100022304
mov rbp, rax
jmp 0x10002235d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x10002235d
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
add rdx, rbp
mov ecx, r15d
nop
nop
cmp rbp, rdx
jae 0x100022348
movzx eax, word [rbp]
lea rbp, [rbp + rax*2 + 2]
add ecx, 0xffffffff
jne 0x100022330
cmp rbp, rdx
jb 0x10002234f
xor eax, eax
mov rbp, rax
jmp 0x10002235d
cmp word [rbp], 0
mov eax, 0
cmove rbp, rax
test rbp, rbp
jne 0x100022385
mov edx, r14d
lea rcx, [0x1000a92a0]
call fcn.100047064
mov r12, rax
inc r14d
test rax, rax
jne 0x1000222c3
jmp 0x10002246c
test r12, r12
je 0x10002246c
mov edx, 0x13d
mov r8d, 6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r13, rax
test rax, rax
je 0x10002246c
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x10002246c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x10002246c
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbp
nop
nop
cmp rbp, rcx
jae 0x10002246c
movzx eax, word [rbp]
lea rbp, [rbp + rax*2 + 2]
add r15d, 0xffffffff
jne 0x1000223f0
cmp rbp, rcx
jae 0x10002246c
movzx eax, word [rbp]
test ax, ax
je 0x10002246c
movzx r12d, ax
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, r12d
or eax, ecx
jge 0x10002243a
mov edx, r12d
lea rcx, [rsp + 0x30]
call fcn.1000140c0
mov rsi, qword [rsp + 0x30]
lea r13, [r12 + r12]
lea rdx, [rbp + 2]
mov r8, r13
mov rcx, rsi
call sub.msvcrt.dll_memcpy
test r12d, r12d
js 0x10002277e
cmp r12d, dword [rsi - 0xc]
jg 0x10002277e
mov dword [rsi - 0x10], r12d
mov word [r13 + rsi], 0
xor eax, eax
mov rbp, rax
xor edx, edx
lea rcx, [0x1000a92a0]
call fcn.100047064
mov r12, rax
lea r15d, [rbp + 1]
test rax, rax
je 0x10002263c
lea r14d, [rbp + 0xa]
test rbp, rbp
jne 0x10002263c
xor r9d, r9d
lea edx, [rbp + 6]
mov r8d, 0x13d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov r13, rax
test rax, rax
jne 0x1000224be
mov rbp, rax
jmp 0x100022532
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1000224d4
mov rbp, rax
jmp 0x10002252d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x10002252d
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
add rdx, rbp
mov ecx, r14d
nop
nop
cmp rbp, rdx
jae 0x100022518
movzx eax, word [rbp]
lea rbp, [rbp + rax*2 + 2]
add ecx, 0xffffffff
jne 0x100022500
cmp rbp, rdx
jb 0x10002251f
xor eax, eax
mov rbp, rax
jmp 0x10002252d
cmp word [rbp], 0
mov eax, 0
cmove rbp, rax
test rbp, rbp
jne 0x100022555
mov edx, r15d
lea rcx, [0x1000a92a0]
call fcn.100047064
mov r12, rax
inc r15d
test rax, rax
jne 0x100022493
jmp 0x10002263c
test r12, r12
je 0x10002263c
mov edx, 0x13d
mov r8d, 6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r13, rax
test rax, rax
je 0x10002263c
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x10002263c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x10002263c
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbp
nop
nop
cmp rbp, rcx
jae 0x10002263c
movzx eax, word [rbp]
lea rbp, [rbp + rax*2 + 2]
add r14d, 0xffffffff
jne 0x1000225c0
cmp rbp, rcx
jae 0x10002263c
movzx eax, word [rbp]
test ax, ax
je 0x10002263c
movzx r12d, ax
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, r12d
or eax, ecx
jge 0x10002260a
mov edx, r12d
lea rcx, [rsp + 0x28]
call fcn.1000140c0
mov rdi, qword [rsp + 0x28]
lea r13, [r12 + r12]
lea rdx, [rbp + 2]
mov r8, r13
mov rcx, rdi
call sub.msvcrt.dll_memcpy
test r12d, r12d
js 0x100022773
cmp r12d, dword [rdi - 0xc]
jg 0x100022773
mov dword [rdi - 0x10], r12d
mov word [r13 + rdi], 0
mov dword [rsp + 0xb0], 0x1f4
xor r9d, r9d
lea r8, [rsp + 0xb0]
xor edx, edx
lea ecx, [rdx + 0x29]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x248]
mov r8d, 0x5c
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wtol]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x6c]
mov edx, 0x20
lea rcx, [rsp + 0x6c]
sub rbx, rcx
movzx ecx, word [rax + rbx]
test cx, cx
je 0x1000226ab
mov word [rax], cx
add rax, 2
dec rdx
jne 0x100022694
jmp 0x1000226b0
test rdx, rdx
jne 0x1000226b4
sub rax, 2
mov word [rax], 0
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
mov edx, 0x5a
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wtol]
imul ebx, eax
mov eax, 0xc71c71c7
imul ebx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [rsp + 0x50], edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov rcx, qword [rsp + 0x38]
mov qword [rcx], rax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
nop
lea rdx, [rsi - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100022734
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100022754
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x100022794
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x100022794
mov ecx, 0x80070057
call fcn.100013860
int3
mov ecx, 0x80070057
call fcn.100013860
int3
mov ecx, 0x80070057
call fcn.100013860
nop
mov rcx, qword [rsp + 0x2b0]
call fcn.100087ed0
mov rbx, qword [rsp + 0x2f8]
mov rbp, qword [rsp + 0x300]
mov rsi, qword [rsp + 0x308]
mov rdi, qword [rsp + 0x2e0]
mov r12, qword [rsp + 0x2d8]
mov r13, qword [rsp + 0x2d0]
mov r14, qword [rsp + 0x2c8]
mov r15, qword [rsp + 0x2c0]
add rsp, 0x2e8
ret