Function at 0x140020df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
mov rax, qword [0x14008b048]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r13, r8
mov esi, ecx
xor r14d, r14d
xor r15b, r15b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
movzx edx, si
lea r8, [0x140075d48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x1400210fd
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], r14
lea r8d, [r14 + 2]
lea rdx, [0x14007be1c]
lea rcx, [rbp - 0x21]
call fcn.1400076b0
nop
mov edx, esi
lea rcx, [rbp - 1]
call fcn.1400242b0
nop
lea r9d, [r14 + 0x11]
lea r8, [0x14007be38]
mov rcx, rax
call fcn.1400122b0
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x41], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x31], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea r8d, [r14 + 6]
lea rdx, [0x14007be28]
lea rcx, [rbp - 0x41]
call fcn.1400072f0
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x49], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x61], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x51], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea r8d, [r14 + 6]
lea rdx, [0x140075d48]
lea rcx, [rbp - 0x61]
call fcn.1400072f0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rbp - 0x71], r14
mov qword [rbp - 0x69], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x71], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea r8, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae r8, qword [rbp - 0x21]
lea rdx, [rsp + 0x48]
cmp qword [rbp - 0x69], 8
cmovae rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rbp - 0x69]
cmp rdx, 8
jb 0x140020fb1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020fac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021218
call fcn.140041390
mov qword [rbp - 0x71], r14
mov qword [rbp - 0x69], 7
mov word [rsp + 0x48], r14w
mov rdx, qword [rbp - 0x49]
cmp rdx, 8
jb 0x140021003
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020ffe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002121e
call fcn.140041390
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x49], 7
mov word [rbp - 0x61], r14w
mov rdx, qword [rbp - 0x29]
cmp rdx, 8
jb 0x140021054
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002104f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021224
call fcn.140041390
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r14w
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x1400210a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400210a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002122a
call fcn.140041390
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], 7
mov word [rbp - 1], r14w
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x1400210f6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400210f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021212
call fcn.140041390
xor al, al
jmp 0x1400211eb
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
test r12, r12
je 0x1400211e7
test eax, eax
je 0x1400211e7
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140021177
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
sete al
jmp 0x1400211eb
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
test rax, rax
je 0x1400211d5
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
je 0x1400211d5
mov r8, r14
mov rdx, r12
mov rcx, rax
call fcn.1400438c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov r15b, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, r15b
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140041370
mov rbx, qword [rsp + 0x138]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140047fbc
nop
call fcn.140047fbc
nop
call fcn.140047fbc
nop
call fcn.140047fbc
nop
call fcn.140047fbc
int3