Function at 0x10002cff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], rdi
mov rax, qword [0x10003d110]
xor rax, rbp
mov qword [rbp + 0x10], rax
xor r15d, r15d
mov rax, rdx
mov rsi, r8
mov qword [rbp + 8], rcx
lea r8d, [r15 + 2]
xor edx, edx
mov rcx, rax
mov rdi, r9
mov rbx, r15
mov qword [rbp], r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r14, rax
cmp rax, r15
jne 0x10002d065
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
jmp 0x10002d24d
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
cmp rax, r15
jne 0x10002d096
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
jmp 0x10002d231
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r13, rax
cmp rax, r15
je 0x10002d07c
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r12, r13
movabs rsi, 0xffffffffffffff0
mov r15d, eax
cmp byte [r15 + r13], bl
je 0x10002d162
lea edi, [rax + 1]
cmp edi, 0x400
ja 0x10002d10e
mov ecx, edi
mov esi, edi
call fcn.10002cc3c
test al, al
je 0x10002d10e
lea rax, [rdi + 0xf]
cmp rax, rsi
ja 0x10002d0fb
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.10003b0a0
sub rsp, rax
lea r12, [rsp + 0x30]
jmp 0x10002d133
lea rcx, [rdi + 0x10]
mov esi, edi
cmp rcx, rsi
jae 0x10002d11e
xor r12d, r12d
jmp 0x10002d133
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x10002d119
and qword [rax], rbx
lea r12, [rax + 0x10]
mov rbx, rax
test r12, r12
jne 0x10002d145
mov edi, 0x8007000e
xor r15d, r15d
jmp 0x10002d231
mov r8, rsi
mov rdx, r13
mov rcx, r12
call sub.msvcrt.dll_memcpy
mov byte [r15 + r12], 0
movabs rsi, 0xffffffffffffff0
xor r15d, r15d
cmp r12, r15
je 0x10002d202
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r13d, [rax + 1]
movsxd rdi, r13d
add rdi, rdi
cmp rdi, 0x400
ja 0x10002d1b6
mov rcx, rdi
call fcn.10002cc3c
cmp al, r15b
je 0x10002d1b6
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x10002d1a3
mov rax, rsi
and rax, 0xfffffffffffffff0
call fcn.10003b0a0
sub rsp, rax
lea rsi, [rsp + 0x30]
jmp 0x10002d1d4
lea rcx, [rdi + 0x10]
cmp rcx, rdi
jb 0x10002d202
call qword [sym.imp.msvcrt.dll_malloc]
cmp rax, r15
je 0x10002d202
mov qword [rax], rbx
lea rsi, [rax + 0x10]
mov rbx, rax
cmp rsi, r15
je 0x10002d202
or r9d, 0xffffffff
mov r8, r12
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r13d
mov word [rsi], r15w
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb rdi, rdi
and rdi, rsi
jmp 0x10002d205
mov rdi, r15
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
cmp rax, r15
jne 0x10002d21c
mov edi, 0x8007000e
jmp 0x10002d231
mov r8d, dword [rbp + 0x70]
lea rcx, [rbp]
mov r9, rax
mov rdx, rdi
call fcn.10002dd90
mov edi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10002d248
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
cmp rbx, r15
jne 0x10002d23c
mov eax, edi
mov rcx, qword [rbp + 0x10]
xor rcx, rbp
call fcn.10003a9b0
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
mov rdi, qword [rbp + 0x60]
lea rsp, [rbp + 0x20]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret