Function at 0x1400516a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4e8
mov rax, qword [0x1400ced18]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov dword [rsp + 0x70], 3
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x4f0]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xc0], 0
mov rax, qword [rsp + 0x4f8]
mov qword [rsp + 0x60], rax
mov r8d, 0x60
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14005174b
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140051761
call fcn.14004e7a0
mov dword [rsp + 0x30], eax
jmp 0x1400518e0
mov r8, qword [rsp + 0x508]
mov rdx, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140051797
call fcn.14004e7a0
mov dword [rsp + 0x30], eax
jmp 0x1400518e0
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1400517c2
call fcn.14004e7a0
mov dword [rsp + 0x30], eax
jmp 0x1400518e0
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x34]
inc eax
cmp eax, dword [rsp + 0x34]
jae 0x1400517fc
mov dword [rsp + 0x30], 0x8007000e
jmp 0x1400518e0
mov eax, dword [rsp + 0x34]
inc eax
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.14004e360
nop
jmp 0x140051816
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140051838
mov dword [rsp + 0x30], 0x8007000e
jmp 0x1400518e0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x88]
xor edx, edx
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x14005188d
call fcn.14004e7a0
mov dword [rsp + 0x30], eax
jmp 0x1400518e0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x40]
xor ecx, ecx
mov rdx, qword [rsp + 0x90]
mov word [rdx + rax*2], cx
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x98], rax
mov r8d, dword [rsp + 0x510]
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0xa8]
call fcn.140051490
mov dword [rsp + 0x30], eax
cmp qword [rsp + 0x38], 0
je 0x1400518f3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0xc8]
cmp qword [rsp + 0xc0], rax
je 0x14005191b
lea rcx, [rsp + 0xc0]
call fcn.14004ee90
nop
cmp qword [rsp + 0x48], 0
je 0x14005194d
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14005191b
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140082550
add rsp, 0x4e8
ret