Function at 0x14005174c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rbx, rdx
mov r13, rcx
mov esi, 2
mov edx, esi
mov rcx, rbx
call sub.mfc140u.dll_AfxCriticalNewHandler
mov rdi, rax
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
test rax, rax
je 0x14005197f
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14005197f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14005197f
mov cl, byte [rax + 0xe]
lea esi, [rbx + 1]
mov ebp, esi
shl ebp, cl
mov ecx, dword [rax]
lea edx, [rcx + rbp*4]
mov r15d, edx
mov ecx, edx
call sub.mfc140u.dll_operator_1
mov rdi, rax
test rax, rax
je 0x14005197f
mov r8d, r15d
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov r15d, dword [rdi]
add r15, rdi
movsxd r12, ebp
test ebp, ebp
jle 0x140051868
mov ebp, ebx
lea r8, [0x140143940]
mov ecx, ebx
mov rax, rbx
mov edx, dword [r15 + rbp*4]
cmp edx, dword [r8 + rax*8]
je 0x14005182b
add ecx, esi
add rax, rsi
cmp ecx, 4
jb 0x140051819
jmp 0x140051860
mov ecx, dword [r8 + rax*8 + 4]
call qword [sym.imp.USER32.dll_GetSysColor]
movzx r8d, ax
and r8d, 0xffffff00
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
or r8d, edx
movzx eax, al
shl eax, 0x10
or r8d, eax
mov dword [r15 + rbp*4], r8d
lea r8, [0x140143940]
add rbp, rsi
cmp rbp, r12
jl 0x140051810
mov r15d, dword [rdi + 4]
mov r12d, dword [rdi + 8]
xor edx, edx
lea rcx, [rsp + 0x90]
call sub.mfc140u.dll_CToolTipCtrl::CToolTipCtrl
nop
lea rcx, [rsp + 0x70]
call sub.mfc140u.dll_CDaoRecordView::CDaoRecordView
nop
mov r8d, r12d
mov edx, r15d
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
mov rcx, r13
call sub.mfc140u.dll_CRecordset::AppendFilterAndSortSQL
test eax, eax
je 0x140051959
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdx, rax
lea rcx, [rsp + 0x70]
call sub.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::AppendChar
test eax, eax
je 0x140051959
test r13, r13
mov rdx, rbx
je 0x1400518db
mov rdx, qword [r13 + 8]
mov rcx, qword [rsp + 0x78]
call sub.mfc140u.dll_CMFCTasksPane::RemoveTask
mov rbp, rax
mov cl, byte [rdi + 0xe]
mov rdx, rsi
shl rdx, cl
lea rcx, [rdx + 0xa]
lea rcx, [r14 + rcx*4]
mov dword [rsp + 0x60], 0xcc0020
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r12d
mov r9d, r15d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.GDI32.dll_StretchDIBits]
test rbp, rbp
je 0x140051942
mov rbx, qword [rbp + 8]
mov rdx, rbx
mov rcx, qword [rsp + 0x78]
call sub.mfc140u.dll_CMFCTasksPane::RemoveTask
mov rcx, rdi
call sub.mfc140u.dll_operator
jmp 0x140051963
mov rcx, rdi
call sub.mfc140u.dll_operator
mov esi, ebx
lea rcx, [rsp + 0x70]
call sub.mfc140u.dll_CD2DLinearGradientBrush::CD2DLinearGradientBrush
nop
lea rcx, [rsp + 0x90]
call sub.mfc140u.dll_CSyncObject::CSyncObject
mov eax, esi
jmp 0x140051981
xor eax, eax
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret