Function at 0x140038f90
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 0x140038fc5
mov edx, 0x364
lea rcx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
call fcn.14006ca30
test eax, eax
je 0x140038fc5
int3
call fcn.14006d190
mov qword [rsp + 0x40], rax
mov r8d, 5
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400390a8
cmp qword [rsp + 0xf0], 0xffff
jbe 0x140039051
lea rcx, [0x1402f00f0]
call fcn.140001096
mov rbx, rax
mov r8d, 0x36a
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0x58]
call fcn.140001244
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.1400174f0
jmp 0x1400390a1
mov rax, qword [rsp + 0xf0]
and rax, 0xffff
movzx edi, ax
lea rcx, [0x1402f00f0]
call fcn.140001096
mov rbx, rax
mov r8d, 0x36d
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0x68]
call fcn.140001244
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.1400174f0
xor eax, eax
jmp 0x1400392fa
cmp dword [rsp + 0xf8], 0
jne 0x1400390bc
mov eax, 1
jmp 0x1400392fa
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 0x14003911e
lea rcx, [0x1402f00f0]
call fcn.140001096
mov rbx, rax
mov r8d, 0x37a
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0x78]
call fcn.140001244
lea r9, str.Warning:_LoadResource_failed_for_dialog_template._n
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.1400174f0
mov eax, 1
jmp 0x1400392fa
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 0x14003914c
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x48], eax
jmp 0x140039157
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x30]
call fcn.140033d40
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [rsp + 0x48]
and eax, 0x10000000
test eax, eax
je 0x140039232
cmp qword [rsp + 0xf0], 0xffff
jbe 0x1400391d8
lea rcx, [0x1402f00f0]
call fcn.140001096
mov rbx, rax
mov r8d, 0x38a
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0x88]
call fcn.140001244
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.1400174f0
jmp 0x14003922b
mov rax, qword [rsp + 0xf0]
and rax, 0xffff
movzx edi, ax
lea rcx, [0x1402f00f0]
call fcn.140001096
mov rbx, rax
mov r8d, 0x38d
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0x98]
call fcn.140001244
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.1400174f0
xor eax, eax
jmp 0x1400392fa
mov eax, dword [rsp + 0x48]
and eax, 0x40000000
test eax, eax
jne 0x1400392f5
cmp qword [rsp + 0xf0], 0xffff
jbe 0x14003929e
lea rcx, [0x1402f00f0]
call fcn.140001096
mov rbx, rax
mov r8d, 0x394
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0xa8]
call fcn.140001244
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.1400174f0
jmp 0x1400392f1
mov rax, qword [rsp + 0xf0]
and rax, 0xffff
movzx edi, ax
lea rcx, [0x1402f00f0]
call fcn.140001096
mov rbx, rax
mov r8d, 0x397
lea rdx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0xb8]
call fcn.140001244
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.1400174f0
xor eax, eax
jmp 0x1400392fa
mov eax, 1
add rsp, 0xd8
pop rdi
pop rbx
ret