Function at 0x140022000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x480
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1400625e0]
xor rax, rbp
mov qword [rbp + 0x450], rax
mov r12, r9
mov r15, r8
mov rsi, rdx
xor ebx, ebx
mov qword [rbp + 8], rbx
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rbx
mov ecx, ebx
mov qword [rbp + 0x40], rbx
test rdx, rdx
je 0x14002229f
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140022060
inc eax
movsxd rdi, eax
add rdi, rdi
mov eax, 0x80000000
add rax, rdi
mov edx, 0xffffffff
cmp rax, rdx
ja 0x14002229f
cmp edi, 0x400
jg 0x1400220c5
movsxd r14, edi
mov rcx, r14
call fcn.140025000
test al, al
je 0x1400220c5
lea rax, [r14 + 0xf]
cmp rax, r14
ja 0x1400220b2
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14002c240
sub rsp, rax
lea rcx, [rsp + 0x20]
jmp 0x1400220fa
movsxd rcx, edi
or rax, 0xffffffffffffffff
sub rax, rcx
cmp rax, 0x10
jb 0x140022294
add rcx, 0x10
call fcn.14002c82c
test rax, rax
jne 0x1400220ec
mov rcx, rbx
jmp 0x1400220fa
mov qword [rax], rbx
mov rbx, rax
mov qword [rbp + 8], rax
lea rcx, [rax + 0x10]
mov r9d, 3
mov r8d, edi
mov rdx, rsi
call fcn.14001b2d0
mov rdi, rax
test rax, rax
jne 0x14002211c
mov rcx, qword [rbp + 0x40]
jmp 0x14002229f
xor edx, edx
lea r8d, [rdx + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
mov qword [rbp + 0x10], rax
test rax, rax
jne 0x14002215e
xor edx, edx
lea r8d, [rax + 2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
mov qword [rbp + 0x10], rax
test rax, rax
jne 0x14002215e
call fcn.14001af20
mov edi, eax
jmp 0x14002225e
mov r8, r12
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x14002217f
call fcn.14001af20
jmp 0x14002224d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rbp + 0x18], rax
test rax, rax
jne 0x1400221a1
call fcn.14001af20
jmp 0x14002224d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rbp], edi
lea eax, [rdi + 1]
cmp eax, edi
jae 0x1400221c3
mov edi, 0x8007000e
jmp 0x14002224f
mov ecx, eax
test eax, eax
je 0x1400221f8
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jb 0x1400221ee
cmp rcx, 0x400
jbe 0x1400221f8
mov edx, ecx
lea rcx, [rbp + 0x40]
call fcn.14001a380
jmp 0x140022200
mov ecx, 0x80070216
call fcn.140001850
lea rax, [rbp + 0x48]
mov qword [rbp + 0x40], rax
jmp 0x140022211
cmp qword [rbp + 0x40], 0
jne 0x14002221f
mov edi, 0x8007000e
jmp 0x14002224f
mov r9, rdi
mov r8, r14
mov rdx, rdi
mov rcx, qword [rbp + 0x40]
call fcn.140003670
mov rax, qword [rbp + 0x40]
mov byte [rdi + rax], 0
mov r8d, dword [rbp + 0x4c0]
mov rdx, qword [rbp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.140021dc0
mov edi, eax
test rsi, rsi
je 0x14002225e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rbp + 0x48]
cmp qword [rbp + 0x40], rax
je 0x140022272
lea rcx, [rbp + 0x40]
call fcn.14001c970
nop
test rbx, rbx
je 0x140022290
nop word [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.140029424
test rbx, rbx
jne 0x140022280
mov eax, edi
jmp 0x1400222d5
mov ecx, 0x80070216
call fcn.140001850
nop
lea rax, [rbp + 0x48]
cmp rcx, rax
je 0x1400222b2
lea rcx, [rbp + 0x40]
call fcn.14001c970
nop
test rbx, rbx
je 0x1400222d0
nop word [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.140029424
test rbx, rbx
jne 0x1400222c0
mov eax, 0x8007000e
mov rcx, qword [rbp + 0x450]
xor rcx, rbp
call fcn.14002b2c0
lea rsp, [rbp + 0x460]
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret