Function at 0x14004f738
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 [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x20], rdi
je 0x14004f778
lea eax, [rdi + 1]
jmp 0x14004f93a
movzx edx, word [rcx + 0x10]
mov r8d, 5
mov rcx, qword [0x14021c5d0]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x14004f7b9
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.140003da0
jmp 0x14004f909
mov rcx, qword [0x14021c5d0]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
jne 0x14004f7e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.LoadResource_failed__RT_DIALOG_u
jmp 0x14004f7a4
mov rcx, qword [0x14021c5d0]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbx + 0x28], eax
test eax, eax
jne 0x14004f806
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.SizeofResource_failed__RT_DIALOG_u
jmp 0x14004f7a4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
jne 0x14004f829
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.LockResource_failed__RT_DIALOG_u
jmp 0x14004f7a4
mov r15d, 0xffff
mov esi, 1
cmp word [rax + 2], r15w
jne 0x14004f86f
cmp word [rax], si
je 0x14004f86f
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.140003da0
jmp 0x14004f909
mov ecx, dword [rbx + 0x28]
mov rdx, rsi
call fcn.14012005c
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x14004f898
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 0x14004f8fb
mov r8d, dword [rbx + 0x28]
mov rdx, r14
mov rcx, rax
call fcn.14013b6b0
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x30], rax
cmp word [r14 + 2], r15w
jne 0x14004f8d7
cmp word [r14], si
jne 0x14004f8d7
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14004fbcc
test al, al
jne 0x14004f934
lea rdx, str.Parse_DialogEx_failed__RT_DIALOG_u__pos_u
jmp 0x14004f8ef
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14004fad0
test al, al
jne 0x14004f934
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.140003da0
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea rcx, [rsp + 0x40]
mov edx, esi
call fcn.14011f550
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14004f937
call fcn.14012008c
mov qword [rbx + 0x20], rdi
jmp 0x14004f937
mov dil, sil
mov al, dil
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140139b10
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