Function at 0x140040280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov rdi, rsp
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x100]
cmp qword [rsp + 0x100], 0
jne 0x1400402cb
mov edx, 0x398
lea rcx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
call fcn.140004f20
test eax, eax
je 0x1400402cb
int3
call fcn.140041650
mov qword [rsp + 0x30], rax
mov r8d, 5
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400403d0
cmp qword [rsp + 0x100], 0xffff
jbe 0x140040361
lea rcx, [0x140a4cbd0]
call fcn.140006610
mov dword [rsp + 0xc8], eax
mov r8d, 0x39e
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0x58]
call fcn.1400046b0
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x20], rcx
lea r9, str.ERROR:_Cannot_find_dialog_template_named__Ts._n
xor r8d, r8d
mov ecx, dword [rsp + 0xc8]
mov edx, ecx
mov rcx, rax
call fcn.140004fd0
jmp 0x1400403c9
mov rax, qword [rsp + 0x100]
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0xcc], eax
lea rcx, [0x140a4cbd0]
call fcn.140006610
mov dword [rsp + 0xd0], eax
mov r8d, 0x3a1
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0x68]
call fcn.1400046b0
mov ecx, dword [rsp + 0xcc]
mov dword [rsp + 0x20], ecx
lea r9, str.ERROR:_Cannot_find_dialog_template_with_IDD_0x_04X._n
xor r8d, r8d
mov ecx, dword [rsp + 0xd0]
mov edx, ecx
mov rcx, rax
call fcn.140006670
xor eax, eax
jmp 0x140040670
cmp dword [rsp + 0x108], 0
jne 0x1400403e4
mov eax, 1
jmp 0x140040670
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140040450
lea rcx, [0x140a4cbd0]
call fcn.140006610
mov dword [rsp + 0xd4], eax
mov r8d, 0x3ae
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0x78]
call fcn.1400046b0
lea r9, str.Warning:_LoadResource_failed_for_dialog_template._n
xor r8d, r8d
mov ecx, dword [rsp + 0xd4]
mov edx, ecx
mov rcx, rax
call fcn.140006670
mov eax, 1
jmp 0x140040670
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 2]
cmp eax, 0xffff
jne 0x14004047e
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x50], eax
jmp 0x140040489
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x40]
call fcn.1401cc310
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [rsp + 0x50]
and eax, 0x10000000
test eax, eax
je 0x140040586
cmp qword [rsp + 0x100], 0xffff
jbe 0x140040514
lea rcx, [0x140a4cbd0]
call fcn.140006610
mov dword [rsp + 0xd8], eax
mov r8d, 0x3be
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0x88]
call fcn.1400046b0
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x20], rcx
lea r9, str.ERROR:_Dialog_named__Ts_must_be_invisible._n
xor r8d, r8d
mov ecx, dword [rsp + 0xd8]
mov edx, ecx
mov rcx, rax
call fcn.140004fd0
jmp 0x14004057f
mov rax, qword [rsp + 0x100]
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0xdc], eax
lea rcx, [0x140a4cbd0]
call fcn.140006610
mov dword [rsp + 0xe0], eax
mov r8d, 0x3c1
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0x98]
call fcn.1400046b0
mov ecx, dword [rsp + 0xdc]
mov dword [rsp + 0x20], ecx
lea r9, str.ERROR:_Dialog_with_IDD_0x_04X_must_be_invisible._n
xor r8d, r8d
mov ecx, dword [rsp + 0xe0]
mov edx, ecx
mov rcx, rax
call fcn.140006670
xor eax, eax
jmp 0x140040670
mov eax, dword [rsp + 0x50]
and eax, 0x40000000
test eax, eax
jne 0x14004066b
cmp qword [rsp + 0x100], 0xffff
jbe 0x1400405fc
lea rcx, [0x140a4cbd0]
call fcn.140006610
mov dword [rsp + 0xe4], eax
mov r8d, 0x3c8
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0xa8]
call fcn.1400046b0
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x20], rcx
lea r9, str.ERROR:_Dialog_named__Ts_must_have_the_child_style._n
xor r8d, r8d
mov ecx, dword [rsp + 0xe4]
mov edx, ecx
mov rcx, rax
call fcn.140004fd0
jmp 0x140040667
mov rax, qword [rsp + 0x100]
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0xe8], eax
lea rcx, [0x140a4cbd0]
call fcn.140006610
mov dword [rsp + 0xec], eax
mov r8d, 0x3cb
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0xb8]
call fcn.1400046b0
mov ecx, dword [rsp + 0xe8]
mov dword [rsp + 0x20], ecx
lea r9, str.ERROR:_Dialog_with_IDD_0x_04X_must_have_the_child_style._n
xor r8d, r8d
mov ecx, dword [rsp + 0xec]
mov edx, ecx
mov rcx, rax
call fcn.140006670
xor eax, eax
jmp 0x140040670
mov eax, 1
add rsp, 0xf0
pop rdi
ret