Function at 0x140033d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0xd8
cmp qword [rsp + 0xf0], 0
jne 0x140033d95
mov edx, 0x364
lea rcx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
call fcn.140067860
test eax, eax
je 0x140033d95
int3
call fcn.140067fc0
mov qword [rsp + 0x40], rax
mov r8d, 5
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140033e78
cmp qword [rsp + 0xf0], 0xffff
jbe 0x140033e21
lea rcx, [0x1402e82b0]
call fcn.140001073
mov rbx, rax
mov r8d, 0x36a
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0x58]
call fcn.1400011b3
mov rcx, rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, str.ERROR:_Cannot_find_dialog_template_named__s._n
xor r8d, r8d
mov rdx, rbx
call fcn.140011850
jmp 0x140033e71
mov rax, qword [rsp + 0xf0]
and rax, 0xffff
movzx edi, ax
lea rcx, [0x1402e82b0]
call fcn.140001073
mov rbx, rax
mov r8d, 0x36d
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0x68]
call fcn.1400011b3
mov dword [rsp + 0x20], edi
lea r9, str.ERROR:_Cannot_find_dialog_template_with_IDD_0x_04X._n
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.140011770
xor eax, eax
jmp 0x1400340ca
cmp dword [rsp + 0xf8], 0
jne 0x140033e8c
mov eax, 1
jmp 0x1400340ca
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140033eee
lea rcx, [0x1402e82b0]
call fcn.140001073
mov rbx, rax
mov r8d, 0x37a
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0x78]
call fcn.1400011b3
lea r9, str.Warning:_LoadResource_failed_for_dialog_template._n
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.140011770
mov eax, 1
jmp 0x1400340ca
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 2]
cmp eax, 0xffff
jne 0x140033f1c
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x48], eax
jmp 0x140033f27
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x30]
call fcn.14002eb20
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [rsp + 0x48]
and eax, 0x10000000
test eax, eax
je 0x140034002
cmp qword [rsp + 0xf0], 0xffff
jbe 0x140033fa8
lea rcx, [0x1402e82b0]
call fcn.140001073
mov rbx, rax
mov r8d, 0x38a
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0x88]
call fcn.1400011b3
mov rcx, rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, str.ERROR:_Dialog_named__s_must_be_invisible._n
xor r8d, r8d
mov rdx, rbx
call fcn.140011850
jmp 0x140033ffb
mov rax, qword [rsp + 0xf0]
and rax, 0xffff
movzx edi, ax
lea rcx, [0x1402e82b0]
call fcn.140001073
mov rbx, rax
mov r8d, 0x38d
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0x98]
call fcn.1400011b3
mov dword [rsp + 0x20], edi
lea r9, str.ERROR:_Dialog_with_IDD_0x_04X_must_be_invisible._n
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.140011770
xor eax, eax
jmp 0x1400340ca
mov eax, dword [rsp + 0x48]
and eax, 0x40000000
test eax, eax
jne 0x1400340c5
cmp qword [rsp + 0xf0], 0xffff
jbe 0x14003406e
lea rcx, [0x1402e82b0]
call fcn.140001073
mov rbx, rax
mov r8d, 0x394
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0xa8]
call fcn.1400011b3
mov rcx, rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, str.ERROR:_Dialog_named__s_must_have_the_child_style._n
xor r8d, r8d
mov rdx, rbx
call fcn.140011850
jmp 0x1400340c1
mov rax, qword [rsp + 0xf0]
and rax, 0xffff
movzx edi, ax
lea rcx, [0x1402e82b0]
call fcn.140001073
mov rbx, rax
mov r8d, 0x397
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0xb8]
call fcn.1400011b3
mov dword [rsp + 0x20], edi
lea r9, str.ERROR:_Dialog_with_IDD_0x_04X_must_have_the_child_style._n
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.140011770
xor eax, eax
jmp 0x1400340ca
mov eax, 1
add rsp, 0xd8
pop rdi
pop rbx
ret