Function at 0x14001dac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], r9
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rbx, rdx
mov rdi, rcx
movzx edx, r8w
xor r12d, r12d
lea r8, [0x140285ed0]
mov qword [rax + 0x20], r12
mov rcx, rbx
mov esi, r12d
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14001dc42
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
test eax, eax
je 0x14001dc42
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14001dc42
mov edx, r14d
lea ecx, [r12 + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x14001dc42
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14001dcc4
mov r8d, r14d
mov rdx, rbp
mov rcx, rax
call fcn.1401e6370
lea r8, [rsp + 0xb8]
mov qword [rsp + 0xb8], r12
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x14001dc42
mov r15, qword [rsp + 0xb8]
call fcn.140005800
mov rbx, rax
cmp dword [rax + 0x34], r12d
jne 0x14001dc42
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bpl, 1
cmp qword [rbx], r12
jne 0x14001dbfb
lea r8, [rsp + 0x28]
mov dword [rsp + 0x38], 1
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], r12
mov rcx, rbx
mov qword [rsp + 0x48], r12
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
movzx ebp, bpl
cmovne ebp, r12d
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bpl, bpl
je 0x14001dc42
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rsp + 0x20], r12
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rcx, r15
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x60], r12d
test eax, eax
je 0x14001dc8f
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x14001dc5d
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0xb8], r12
test rsi, rsi
je 0x14001dc74
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14001d4a0
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
test ebx, ebx
js 0x14001dc42
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rsp + 0xc0], r12d
je 0x14001dd8d
cmp dword [rdi + 0x24], 0x20
jne 0x14001dd8d
movsxd rax, dword [rdi + 0x20]
mov r9, qword [rdi + 0x10]
mov esi, eax
shr esi, 0x1f
test esi, esi
je 0x14001dd02
shr rax, 2
not eax
cdqe
lea r9, [r9 + rax*4]
mov r11d, r12d
cmp dword [rdi + 0x18], r12d
jle 0x14001dd8d
nop
mov r10d, r12d
cmp dword [rdi + 0x1c], r12d
jle 0x14001dd84
mov eax, esi
xor rax, 1
lea rbx, [rax*8 - 4]
nop word [rax + rax]
movzx ecx, byte [r9]
mov eax, 0x80808081
movzx r8d, byte [r9 + 3]
inc r10d
imul ecx, r8d
mul ecx
movzx ecx, byte [r9 + 1]
mov eax, 0x80808081
shr edx, 7
mov byte [r9], dl
imul ecx, r8d
mul ecx
movzx ecx, byte [r9 + 2]
mov eax, 0x80808081
shr edx, 7
mov byte [r9 + 1], dl
imul ecx, r8d
mul ecx
shr edx, 7
mov byte [r9 + 2], dl
add r9, rbx
cmp r10d, dword [rdi + 0x1c]
jl 0x14001dd30
inc r11d
cmp r11d, dword [rdi + 0x18]
jl 0x14001dd10
mov eax, 1
jmp 0x14001dc76