Function at 0x180029750
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 0x180029789
mov rax, qword [rcx]
lea edx, [r14 + 1]
call qword [rax]
mov qword [rdi + 0x10], r14
mov qword [rdi + 8], r14
mov rcx, qword [0x180153590]
test rcx, rcx
jne 0x1800297ec
lea rcx, [0x180141938]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x180153590], r14
jne 0x1800297d8
mov ecx, 0x90
call fcn.180050ac4
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1800297c9
mov rcx, rax
call fcn.180021430
jmp 0x1800297cc
mov rax, r14
lock or dword [rsp], 0
mov qword [0x180153590], rax
lea rcx, [0x180141938]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x180153590]
call fcn.180021bf0
mov ecx, r14d
test rax, rax
je 0x180029803
mov rcx, rax
call fcn.18001fec0
mov ecx, eax
mov rsi, qword [0x180153c80]
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 0x180029835
mov rbx, r14
jmp 0x18002995d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
jne 0x18002984f
mov rbx, r14
jmp 0x18002995d
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 0x180029874
mov rbx, r14
jmp 0x18002995d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
jne 0x180029897
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, r14
jmp 0x18002995d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x1800298bf
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, r14
jmp 0x18002995d
mov r8, rbx
mov rdx, rbp
mov rcx, rax
call fcn.18009b300
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 0x1800298ee
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 0x180029944
mov rbp, qword [rsp + 0x78]
lea ecx, [rax + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x180029941
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 0x180029944
mov rbx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18002995d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rdi + 0x10], rbx
test rbx, rbx
jne 0x180029973
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 0x18002998d
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 0x1800299b2
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.1800296d0