Function at 0x18002fe29
Capabilities:
Extract resource via kernel32 functions

Disassembly:
test rcx, rcx
je 0x180030119
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov rsi, rcx
movzx edx, r8w
lea r8, [0x1800e1848]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1800300f6
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
test eax, eax
je 0x1800300f6
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1800300f6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1800300f6
mov edx, r14d
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1800300f6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1800300ed
mov r8d, r14d
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor r13d, r13d
mov qword [rbp - 0x48], r13
lea r8, [rbp - 0x48]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1800300ed
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1800300ed
call fcn.18002aca0
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rbx, rbx
je 0x1800300f6
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x10], r13d
test ecx, ecx
je 0x18002ff6c
mov rax, qword [rbx]
lea edx, [r13 + 1]
mov rcx, rbx
call qword [rax]
mov ebx, r13d
test rbx, rbx
je 0x1800300f6
mov qword [rbp - 0x40], rbx
xor r15b, r15b
mov byte [rbp - 0x38], r15b
mov dword [rbp - 0x50], r13d
lea rdx, [rbp - 0x50]
mov rcx, qword [rbx + 8]
call qword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x18002ff99
mov dword [rbx + 0x10], eax
mov dword [rbp - 0x4c], r13d
lea rdx, [rbp - 0x4c]
mov rcx, qword [rbx + 8]
call qword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x18002ffb2
mov dword [rbx + 0x10], eax
mov ecx, dword [rbp - 0x50]
mov r12d, ecx
mov eax, dword [rbp - 0x4c]
mov r14d, eax
mov edx, dword [rsi + 0x58]
test edx, edx
je 0x18003001b
mov r8d, dword [rsi + 0x5c]
test r8d, r8d
jle 0x18003001b
mov r9d, dword [rsi + 0x60]
test r9d, r9d
jle 0x18003001b
mov r12d, r8d
mov r14d, r9d
mov qword [rbp - 0x28], r13
mov dword [rbp - 0x20], ecx
mov dword [rbp - 0x1c], eax
cmp edx, 1
jne 0x18003000a
cmp r9d, eax
jb 0x180030002
lea rdx, [rbp - 0x28]
mov rcx, rbx
call fcn.18002edb0
mov rdi, rax
jmp 0x180030025
mov rdi, r13
jmp 0x180030099
lea rdx, [rbp - 0x28]
mov rcx, rbx
call fcn.18002f440
mov rdi, rax
jmp 0x180030025
mov rdi, rbx
mov r15b, 1
mov byte [rbp - 0x38], r15b
test rdi, rdi
je 0x180030099
mov dword [rbp - 0x4c], r13d
lea rdx, [rbp - 0x4c]
mov rcx, qword [rdi + 8]
call qword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x180030043
mov dword [rdi + 0x10], eax
mov r13d, dword [rbp - 0x4c]
mov dword [rbp - 0x50], 0
lea rdx, [rbp - 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x180030063
mov dword [rdi + 0x10], eax
lea rcx, [rsi + 0x2c]
mov rax, qword [rcx]
mov dword [rbp - 0x28], eax
mov r8d, dword [rbp - 0x50]
add r8d, eax
mov dword [rbp - 0x20], r8d
mov rdx, rax
shr rdx, 0x20
mov dword [rbp - 0x24], edx
shr rax, 0x20
add eax, r13d
mov dword [rbp - 0x1c], eax
lea rdx, [rbp - 0x28]
call qword [sym.imp.USER32.dll_CopyRect]
xor r13d, r13d
mov rcx, qword [rsi + 0x80]
mov qword [rsi + 0x80], rdi
test rcx, rcx
je 0x1800300b6
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbp - 0x18], 0
mov dword [rbp - 0x10], r12d
mov dword [rbp - 0xc], r14d
lea rcx, [rsi + 0x2c]
lea rdx, [rbp - 0x18]
call qword [sym.imp.USER32.dll_CopyRect]
nop
test r15b, r15b
jne 0x1800300f6
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov qword [rbp - 0x40], r13
jmp 0x1800300f6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800c8510
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret