Function at 0x14000dd6c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [rcx + 8]
xor r12d, r12d
mov r15d, r9d
mov rsi, r8
mov rbx, rcx
test rax, rax
je 0x14000deda
mov rcx, qword [rcx + 8]
lea edx, [r12 + 7]
lea r8d, [r12 + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000df27
mov rcx, qword [rbx + 8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
mov rdx, rdi
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
test rax, rax
je 0x14000df8f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rdx, rax
lea rcx, [rax + r14]
test rax, rax
je 0x14000dff7
movzx eax, word [rax]
lea r8d, [r12 + 0xf]
add rdx, 2
dec r8d
cmp rdx, rcx
jae 0x14000de94
movzx eax, ax
lea rdx, [rdx + rax*2]
movzx eax, word [rdx]
add rdx, 2
test r8d, r8d
jne 0x14000de27
cmp rdx, rcx
jae 0x14000de94
cmp r12w, ax
je 0x14000e05f
lea ebx, [rax + 1]
test rsi, rsi
je 0x14000de73
cmp r15d, ebx
jb 0x14000e0a5
lea r8, [rax + rax]
mov rcx, rsi
mov word [r8 + rsi], r12w
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [0x14001a028]
lea rax, [0x14001a028]
cmp rcx, rax
je 0x14000debb
test byte [rcx + 0x1c], 1
je 0x14000debb
mov rcx, qword [rcx + 0x10]
mov edx, 0x18
call fcn.14000e434
mov edx, 0x80070490
lea rcx, [rbp - 0x20]
call fcn.14000e558
lea rdx, [0x140017780]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
mov rcx, qword [0x14001a028]
lea rax, [0x14001a028]
cmp rcx, rax
je 0x14000df08
test byte [rcx + 0x1c], 1
je 0x14000df08
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015048]
mov edx, 0x14
call fcn.1400056b4
mov edx, 0x8000ffff
lea rcx, [rbp - 0x20]
call fcn.14000e558
lea rdx, [0x140017780]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000df42
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14001a028]
lea rax, [0x14001a028]
cmp rcx, rax
je 0x14000df73
test byte [rcx + 0x1c], 1
je 0x14000df73
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015048]
mov edx, 0x15
mov r9d, ebx
call fcn.1400036a4
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.14000e558
lea rdx, [0x140017780]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000dfaa
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14001a028]
lea rax, [0x14001a028]
cmp rcx, rax
je 0x14000dfdb
test byte [rcx + 0x1c], 1
je 0x14000dfdb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015048]
mov edx, 0x16
mov r9d, ebx
call fcn.1400036a4
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.14000e558
lea rdx, [0x140017780]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000e012
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14001a028]
lea rax, [0x14001a028]
cmp rcx, rax
je 0x14000e043
test byte [rcx + 0x1c], 1
je 0x14000e043
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015048]
mov edx, 0x17
mov r9d, ebx
call fcn.1400036a4
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.14000e558
lea rdx, [0x140017780]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
mov rcx, qword [0x14001a028]
lea rax, [0x14001a028]
cmp rcx, rax
je 0x14000e086
test byte [rcx + 0x1c], 1
je 0x14000e086
mov rcx, qword [rcx + 0x10]
mov edx, 0x19
call fcn.14000e434
mov edx, 0x80070490
lea rcx, [rbp - 0x20]
call fcn.14000e558
lea rdx, [0x140017780]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
mov rcx, qword [0x14001a028]
lea rax, [0x14001a028]
cmp rcx, rax
je 0x14000e0d3
test byte [rcx + 0x1c], 1
je 0x14000e0d3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140015048]
mov edx, 0x1a
call fcn.1400056b4
mov edx, 0x8007007a
lea rcx, [rbp - 0x20]
call fcn.14000e558
lea rdx, [0x140017780]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3