Function at 0x1400252b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x50
xor r15d, r15d
mov rdi, rcx
cmp word [rcx + 0x112], r15w
jne 0x14002531d
mov rax, qword [rcx + 0x128]
movzx edx, word [rax + 0x200]
mov word [rcx + 0x112], dx
cmp dx, r15w
jne 0x14002531d
lea r8, str.invalid_langid
lea rdx, str._s_failed_n
lea rcx, [0x14010f570]
call fcn.14004b7ec
xor eax, eax
jmp 0x1400255d5
cmp qword [rcx + 0xb0], r15
jne 0x1400255d0
cmp qword [rcx + 0xc8], r15
jne 0x1400255d0
cmp qword [rcx + 0xc0], r15
jne 0x1400255d0
call fcn.1400638e0
cmp qword [rax + 0x10], r15
jne 0x140025368
call fcn.1400638e0
mov rcx, qword [rax + 8]
mov rbx, qword [rcx + 0x88]
call fcn.1400638e0
mov qword [rax + 0x18], rbx
call fcn.1400638e0
mov r12, qword [rax + 0x18]
cmp r12, r15
jne 0x14002539a
mov r9d, dword [rdi + 0xf8]
lea r8, str.Cound_not_find_dialog_resource_in_resource_chain_for_ID__d
lea rcx, [0x14010f570]
mov edx, 8
call fcn.140001000
jmp 0x140025316
movzx r8d, word [rdi + 0xf8]
movzx r9d, word [rdi + 0x112]
mov r13d, 5
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
lea rbx, [0x14010f570]
mov rbp, rax
cmp rax, r15
jne 0x14002546a
movzx r9d, word [rdi + 0x110]
movzx r8d, word [rdi + 0xf8]
mov eax, 0x3ff
lea r14d, [rax + 1]
and r9w, ax
mov rdx, r13
or r9w, r14w
mov rcx, r12
mov word [rdi + 0x112], r9w
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
mov rbp, rax
cmp rax, r15
jne 0x14002546a
movzx r8d, word [rdi + 0xf8]
mov r9d, r14d
mov rdx, r13
mov rcx, r12
mov word [rdi + 0x112], r14w
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
mov rbp, rax
cmp rax, r15
jne 0x14002546a
movzx edx, word [rdi + 0x112]
mov rax, qword [rdi + 0x128]
mov r9d, dword [rdi + 0xf8]
movzx ecx, word [rax + 0x200]
mov dword [rsp + 0x28], edx
lea r8, str.Cound_not_find_dialog_ID__d_resource_by_LangIds__d_and__d
mov dword [rsp + 0x20], ecx
lea edx, [r13 + 3]
mov rcx, rbx
call fcn.140001000
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rdi + 0x100], rax
cmp rax, r15
jne 0x14002549b
lea r8, str.Cound_not_load_dialog_template
mov edx, 8
mov rcx, rbx
call fcn.140001000
jmp 0x140025316
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
cmp rax, r15
jne 0x1400254b5
lea r8, str.Cound_not_lock_dialog_template
jmp 0x140025489
mov eax, 0xffff
cmp word [rbp + 2], ax
jne 0x1400255c4
cmp dword [rdi + 0x118], r15d
je 0x1400254d4
or dword [rbp + 8], 0x402000
movzx r8d, word [rdi + 0xf8]
movzx r9d, word [rdi + 0x112]
mov edx, 0xf0
mov rcx, r12
mov r13, r15
mov qword [rdi + 0x108], r15
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
mov r14, rax
cmp rax, r15
je 0x140025523
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
mov qword [rdi + 0x108], rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r13, rax
lea r8, str.DLGINIT_p
mov r9, r14
mov edx, 0x20
mov rcx, rbx
call fcn.140001000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8, qword [rdi + 0x120]
mov r9, r13
mov rdx, rbp
mov rcx, rdi
cmp dword [rdi + 0x114], r15d
je 0x140025562
call fcn.140061e68
jmp 0x14002556b
mov rax, qword [rdi]
call qword [rax + 0x290]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, word [rdi + 0x112]
mov dword [rsp + 0x48], eax
mov rax, qword [rdi + 0x120]
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], r8d
mov ecx, r12d
neg ecx
lea r8, str.Init_create_dialog_indirect_with___p___p___p__for_langid_d__0x_x_with_result__d_and_error__d_n
mov r9, rbp
sbb edx, edx
mov rcx, rbx
mov qword [rsp + 0x28], r13
and edx, 0x78
mov qword [rsp + 0x20], rax
add edx, 8
call fcn.140001000
mov eax, r12d
jmp 0x1400255d5
lea r8, str.Dialog_template_is_not_DIALOGEX._Please_change_it_for_RTL_language_compatibility.
jmp 0x140025489
mov eax, 1
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret