Function at 0x14004c4c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x140
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x20], rdi
je 0x14004c504
lea eax, [rdi + 1]
jmp 0x14004c6c6
movzx edx, word [rcx + 0x10]
mov r8d, 5
mov rcx, qword [0x14022a9d8]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x14004c545
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.FindResource_failed__RT_DIALOG_u
mov r8d, dword [rbx + 0x10]
lea rcx, [rsp + 0x40]
mov esi, eax
call fcn.140003ab0
jmp 0x14004c695
mov rcx, qword [0x14022a9d8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
jne 0x14004c56c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.LoadResource_failed__RT_DIALOG_u
jmp 0x14004c530
mov rcx, qword [0x14022a9d8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbx + 0x28], eax
test eax, eax
jne 0x14004c592
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.SizeofResource_failed__RT_DIALOG_u
jmp 0x14004c530
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
jne 0x14004c5b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.LockResource_failed__RT_DIALOG_u
jmp 0x14004c530
mov r15d, 0xffff
mov esi, 1
cmp word [rax + 2], r15w
jne 0x14004c5fb
cmp word [rax], si
je 0x14004c5fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r9d, word [r14]
lea rdx, str.Unsupported_dialog_resource_type__RT_DIALOG_u__verx_04X__signx_04X
mov r8d, dword [rbx + 0x10]
lea rcx, [rsp + 0x40]
mov esi, eax
movzx eax, word [r14 + 2]
mov dword [rsp + 0x20], eax
call fcn.140003ab0
jmp 0x14004c695
mov ecx, dword [rbx + 0x28]
mov rdx, rsi
call fcn.140113de8
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x14004c624
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, dword [rbx + 0x28]
lea rdx, str.Resource_data_allocation_failed__RT_DIALOG_u__size_u
mov esi, eax
jmp 0x14004c687
mov r8d, dword [rbx + 0x28]
mov rdx, r14
mov rcx, rax
call fcn.14012d940
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x30], rax
cmp word [r14 + 2], r15w
jne 0x14004c663
cmp word [r14], si
jne 0x14004c663
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14004c958
test al, al
jne 0x14004c6c0
lea rdx, str.Parse_DialogEx_failed__RT_DIALOG_u__pos_u
jmp 0x14004c67b
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14004c85c
test al, al
jne 0x14004c6c0
lea rdx, str.Parse_Dialog_failed__RT_DIALOG_u__pos_u
mov r9d, dword [rsp + 0x30]
or esi, 0xffffffff
sub r9d, dword [rbx + 0x20]
mov r8d, dword [rbx + 0x10]
lea rcx, [rsp + 0x40]
call fcn.140003ab0
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea rcx, [rsp + 0x40]
mov edx, esi
call fcn.140113304
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14004c6c3
call fcn.140113e18
mov qword [rbx + 0x20], rdi
jmp 0x14004c6c3
mov dil, sil
mov al, dil
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14012bda0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret