Function at 0x100002134
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 [0x100007110]
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 0x1000021a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
jmp 0x100002391
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
cmp rax, r15
jne 0x1000021da
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
jmp 0x100002375
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r13, rax
cmp rax, r15
je 0x1000021c0
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 0x1000022a6
lea edi, [rax + 1]
cmp edi, 0x400
ja 0x100002252
mov ecx, edi
mov esi, edi
call fcn.100001c38
test al, al
je 0x100002252
lea rax, [rdi + 0xf]
cmp rax, rsi
ja 0x10000223f
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.100005700
sub rsp, rax
lea r12, [rsp + 0x30]
jmp 0x100002277
lea rcx, [rdi + 0x10]
mov esi, edi
cmp rcx, rsi
jae 0x100002262
xor r12d, r12d
jmp 0x100002277
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x10000225d
and qword [rax], rbx
lea r12, [rax + 0x10]
mov rbx, rax
test r12, r12
jne 0x100002289
mov edi, 0x8007000e
xor r15d, r15d
jmp 0x100002375
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 0x100002346
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r13d, [rax + 1]
movsxd rdi, r13d
add rdi, rdi
cmp rdi, 0x400
ja 0x1000022fa
mov rcx, rdi
call fcn.100001c38
cmp al, r15b
je 0x1000022fa
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x1000022e7
mov rax, rsi
and rax, 0xfffffffffffffff0
call fcn.100005700
sub rsp, rax
lea rsi, [rsp + 0x30]
jmp 0x100002318
lea rcx, [rdi + 0x10]
cmp rcx, rdi
jb 0x100002346
call qword [sym.imp.msvcrt.dll_malloc]
cmp rax, r15
je 0x100002346
mov qword [rax], rbx
lea rsi, [rax + 0x10]
mov rbx, rax
cmp rsi, r15
je 0x100002346
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 0x100002349
mov rdi, r15
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
cmp rax, r15
jne 0x100002360
mov edi, 0x8007000e
jmp 0x100002375
mov r8d, dword [rbp + 0x70]
lea rcx, [rbp]
mov r9, rax
mov rdx, rdi
call fcn.100002ed4
mov edi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10000238c
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
cmp rbx, r15
jne 0x100002380
mov eax, edi
mov rcx, qword [rbp + 0x10]
xor rcx, rbp
call fcn.100005150
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