Function at 0x422140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x128
cmp qword [rsp + 0x130], 0
jne 0x422173
mov edx, 0x33a
lea rcx, [0x005a7cc8]
call fcn.00422700
test eax, eax
je 0x422173
int3
call fcn.00459300
mov qword [rsp + 0x40], rax
mov r8d, 5
mov rdx, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x42227e
cmp qword [rsp + 0x130], 0xffff
jbe 0x42220c
lea rcx, [0x00688c10]
call fcn.00406080
mov qword [rsp + 0xc8], rax
mov r8d, 0x340
lea rdx, [0x005a7d00]
lea rcx, [rsp + 0x58]
call fcn.00406030
mov rcx, qword [rsp + 0x130]
mov qword [rsp + 0x20], rcx
lea r9, str.ERROR:_Cannot_find_dialog_template_named__s._n
xor r8d, r8d
mov rcx, qword [rsp + 0xc8]
mov rdx, rcx
mov rcx, rax
call fcn.00406040
jmp 0x422277
mov rax, qword [rsp + 0x130]
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0xd0], eax
lea rcx, [0x00688c10]
call fcn.00406080
mov qword [rsp + 0xd8], rax
mov r8d, 0x343
lea rdx, [0x005a7d68]
lea rcx, [rsp + 0x68]
call fcn.00406030
mov ecx, dword [rsp + 0xd0]
mov dword [rsp + 0x20], ecx
lea r9, str.ERROR:_Cannot_find_dialog_template_with_IDD_0x_04X._n
xor r8d, r8d
mov rcx, qword [rsp + 0xd8]
mov rdx, rcx
mov rcx, rax
call fcn.00406040
xor eax, eax
jmp 0x42252d
cmp dword [rsp + 0x138], 0
jne 0x422292
mov eax, 1
jmp 0x42252d
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 0x422301
lea rcx, [0x00688c10]
call fcn.00406080
mov qword [rsp + 0xe0], rax
mov r8d, 0x350
lea rdx, [0x005a7dd8]
lea rcx, [rsp + 0x78]
call fcn.00406030
lea r9, str.Warning:_LoadResource_failed_for_dialog_template._n
xor r8d, r8d
mov rcx, qword [rsp + 0xe0]
mov rdx, rcx
mov rcx, rax
call fcn.00406040
mov eax, 1
jmp 0x42252d
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 0x42232f
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x48], eax
jmp 0x42233a
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x30]
call fcn.0040f370
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [rsp + 0x48]
and eax, 0x10000000
test eax, eax
je 0x42243d
cmp qword [rsp + 0x130], 0xffff
jbe 0x4223c8
lea rcx, [0x00688c10]
call fcn.00406080
mov qword [rsp + 0xe8], rax
mov r8d, 0x360
lea rdx, [0x005a7e48]
lea rcx, [rsp + 0x88]
call fcn.00406030
mov rcx, qword [rsp + 0x130]
mov qword [rsp + 0x20], rcx
lea r9, str.ERROR:_Dialog_named__s_must_be_invisible._n
xor r8d, r8d
mov rcx, qword [rsp + 0xe8]
mov rdx, rcx
mov rcx, rax
call fcn.00406040
jmp 0x422436
mov rax, qword [rsp + 0x130]
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0xf0], eax
lea rcx, [0x00688c10]
call fcn.00406080
mov qword [rsp + 0xf8], rax
mov r8d, 0x363
lea rdx, [0x005a7eb0]
lea rcx, [rsp + 0x98]
call fcn.00406030
mov ecx, dword [rsp + 0xf0]
mov dword [rsp + 0x20], ecx
lea r9, str.ERROR:_Dialog_with_IDD_0x_04X_must_be_invisible._n
xor r8d, r8d
mov rcx, qword [rsp + 0xf8]
mov rdx, rcx
mov rcx, rax
call fcn.00406040
xor eax, eax
jmp 0x42252d
mov eax, dword [rsp + 0x48]
and eax, 0x40000000
test eax, eax
jne 0x422528
cmp qword [rsp + 0x130], 0xffff
jbe 0x4224b6
lea rcx, [0x00688c10]
call fcn.00406080
mov qword [rsp + 0x100], rax
mov r8d, 0x36a
lea rdx, [0x005a7f20]
lea rcx, [rsp + 0xa8]
call fcn.00406030
mov rcx, qword [rsp + 0x130]
mov qword [rsp + 0x20], rcx
lea r9, str.ERROR:_Dialog_named__s_must_have_the_child_style._n
xor r8d, r8d
mov rcx, qword [rsp + 0x100]
mov rdx, rcx
mov rcx, rax
call fcn.00406040
jmp 0x422524
mov rax, qword [rsp + 0x130]
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0x108], eax
lea rcx, [0x00688c10]
call fcn.00406080
mov qword [rsp + 0x110], rax
mov r8d, 0x36d
lea rdx, str.f:_rtm_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
lea rcx, [rsp + 0xb8]
call fcn.00406030
mov ecx, dword [rsp + 0x108]
mov dword [rsp + 0x20], ecx
lea r9, str.ERROR:_Dialog_with_IDD_0x_04X_must_have_the_child_style._n
xor r8d, r8d
mov rcx, qword [rsp + 0x110]
mov rdx, rcx
mov rcx, rax
call fcn.00406040
xor eax, eax
jmp 0x42252d
mov eax, 1
add rsp, 0x128
ret