Function at 0x14000520c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x60
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rbp + 0x60], rbx
mov qword [rbp + 0x68], rsi
mov qword [rbp + 0x70], rdi
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x20], rax
mov rdi, r9
mov rsi, r8
mov rax, rdx
xor r13d, r13d
mov ebx, r13d
mov qword [rbp], rbx
mov qword [rbp + 0x10], rcx
mov qword [rbp + 8], r13
xor edx, edx
lea r8d, [r13 + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov r15, rax
test rax, rax
jne 0x14000528c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14000545c
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov rdi, rax
test rax, rax
jne 0x1400052bf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140005452
mov rdx, rax
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x1400052a6
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov rdi, r14
mov r12d, eax
cmp byte [r12 + r14], r13b
je 0x140005377
lea edi, [rax + 1]
cmp edi, 0x400
ja 0x14000532d
mov esi, edi
mov ecx, edi
call fcn.140004270
test al, al
je 0x14000532d
lea rax, [rdi + 0xf]
cmp rax, rsi
ja 0x14000531a
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000e5b0
sub rsp, rax
lea rdi, [rsp + 0x30]
jmp 0x140005356
mov esi, edi
lea rcx, [rdi + 0x10]
cmp rcx, rsi
jae 0x14000533d
mov rdi, r13
jmp 0x140005356
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x140005338
mov qword [rax], r13
mov rbx, rax
mov qword [rbp], rax
lea rdi, [rax + 0x10]
test rdi, rdi
jne 0x140005365
mov edi, 0x8007000e
jmp 0x140005452
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call sub.msvcrt.dll_memcpy
mov byte [r12 + rdi], r13b
test rdi, rdi
je 0x140005423
or r12, 0xffffffffffffffff
mov r14, r12
inc r14
cmp byte [rdi + r14], r13b
jne 0x140005387
inc r14d
movsxd rsi, r14d
add rsi, rsi
cmp rsi, 0x400
ja 0x1400053d4
mov rcx, rsi
call fcn.140004270
test al, al
je 0x1400053d4
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x1400053c1
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000e5b0
sub rsp, rax
lea rsi, [rsp + 0x30]
jmp 0x1400053f6
lea rcx, [rsi + 0x10]
cmp rcx, rsi
jb 0x140005423
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x140005423
mov qword [rax], rbx
mov rbx, rax
mov qword [rbp], rax
lea rsi, [rax + 0x10]
test rsi, rsi
je 0x140005423
mov word [rsi], r13w
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rsi
mov r9d, r12d
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
neg eax
sbb rdi, rdi
and rdi, rsi
jmp 0x140005426
mov rdi, r13
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x14000535b
mov r9, rax
mov r8d, dword [rbp + 0x80]
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.140005080
mov edi, eax
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop
jmp 0x14000546a
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x14000545e
mov eax, edi
mov rcx, qword [rbp + 0x20]
xor rcx, rbp
call fcn.14000d6c0
mov rbx, qword [rbp + 0x60]
mov rsi, qword [rbp + 0x68]
mov rdi, qword [rbp + 0x70]
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret