Function at 0x1800291a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rbx, r8
mov ebp, edx
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
xor r14d, r14d
test rcx, rcx
je 0x1800291d9
mov rax, qword [rcx]
lea edx, [r14 + 1]
call qword [rax]
mov qword [rdi + 0x10], r14
mov qword [rdi + 8], r14
mov rcx, qword [0x180153190]
test rcx, rcx
jne 0x18002923c
lea rcx, [0x1801417f8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x180153190], r14
jne 0x180029228
mov ecx, 0x90
call fcn.180050604
mov qword [rsp + 0x60], rax
test rax, rax
je 0x180029219
mov rcx, rax
call fcn.180020e80
jmp 0x18002921c
mov rax, r14
lock or dword [rsp], 0
mov qword [0x180153190], rax
lea rcx, [0x1801417f8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x180153190]
call fcn.180021640
mov ecx, r14d
test rax, rax
je 0x180029253
mov rcx, rax
call fcn.18001f910
mov ecx, eax
mov rsi, qword [0x180153880]
neg ecx
sbb ax, ax
and ax, 0x3e8
add ax, bp
movzx edx, ax
mov r8, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x180029285
mov rbx, r14
jmp 0x1800293ad
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
jne 0x18002929f
mov rbx, r14
jmp 0x1800293ad
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
jne 0x1800292c4
mov rbx, r14
jmp 0x1800293ad
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
jne 0x1800292e7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, r14
jmp 0x1800293ad
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x18002930f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, r14
jmp 0x1800293ad
mov r8, rbx
mov rdx, rbp
mov rcx, rax
call fcn.18009ad00
mov qword [rsp + 0x78], r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rbx, r14
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18002933e
mov rax, qword [rcx]
call qword [rax + 0x10]
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x180029394
mov rbp, qword [rsp + 0x78]
lea ecx, [rax + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x180029391
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rbx], rax
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x20]
mov rcx, rbp
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [rbx + 0x10], eax
mov rcx, qword [rsp + 0x20]
mov qword [rbx + 8], rcx
jmp 0x180029394
mov rbx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1800293ad
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rdi + 0x10], rbx
test rbx, rbx
jne 0x1800293c3
xor al, al
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [rsp + 0x68], r14d
lea rdx, [rsp + 0x68]
mov rcx, qword [rbx + 8]
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x1800293dd
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x68]
mov dword [rdi + 8], eax
mov rbx, qword [rdi + 0x10]
mov dword [rsp + 0x60], r14d
lea rdx, [rsp + 0x60]
mov rcx, qword [rbx + 8]
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x180029402
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x60]
mov dword [rdi + 0xc], eax
mov rcx, rdi
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.180029120