Function at 0x140002720
Capabilities:
Extract resource via kernel32 functions
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov r15d, edx
lea rax, [rsp + 0x30]
mov r12d, ecx
mov qword [rsp + 0x20], rax
lea rdx, [0x140008010]
mov rcx, 0xffffffff80000001
mov r9d, 0x20019
xor r8d, r8d
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400027c4
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x1d8]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1d0]
lea rax, [rsp + 0x70]
mov dword [rbp + 0x1d0], edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140005420]
mov dword [rbp + 0x1d8], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400027c4
cmp dword [rbp + 0x1d0], 1
jne 0x1400027c4
lea rax, [rsp + 0x70]
jmp 0x1400027e2
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov r8d, r15d
mov qword [rsp + 0x2c0], rsi
mov edx, r12d
mov rcx, rax
call fcn.140001190
movzx edx, ax
lea r8, [0x140005600]
xor ecx, ecx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
mov r13d, 1
test rax, rax
je 0x1400028a8
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
xor ecx, ecx
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400028a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1400028a8
mov edx, r14d
lea ecx, [r13 + 1]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x1400028a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14000289f
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
call fcn.140004580
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea r8, [rsp + 0x38]
mov edx, r13d
mov rcx, rbx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jns 0x1400028a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r14, qword [rsp + 0x38]
test r14, r14
je 0x1400029da
mov r8d, r15d
mov edx, r12d
mov rcx, r14
call fcn.1400024b0
mov rsi, rax
test rax, rax
je 0x1400029d1
mov r9, qword [rax]
lea r8, [rbp + 0x1d8]
lea rdx, [rbp + 0x1d0]
mov dword [rbp + 0x1d0], edi
mov rcx, rax
mov dword [rbp + 0x1d8], edi
mov r15, rdi
call qword [r9 + 0x18]
test eax, eax
js 0x1400029c5
mov ecx, dword [rbp + 0x1d0]
test ecx, ecx
je 0x1400029c5
mov eax, dword [rbp + 0x1d8]
test eax, eax
je 0x1400029c5
xorps xmm0, xmm0
mov dword [rsp + 0x44], ecx
neg eax
mov qword [rsp + 0x64], rdi
xor ecx, ecx
mov dword [rsp + 0x48], eax
movdqu xmmword [rsp + 0x54], xmm0
mov dword [rsp + 0x40], 0x28
mov qword [rsp + 0x4c], 0x200001
mov qword [rsp + 0x30], rdi
call qword [sym.imp.USER32.dll_GetDC]
mov dword [rsp + 0x28], edi
lea r9, [rsp + 0x30]
mov rcx, rax
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.GDI32.dll_CreateDIBSection]
mov rdx, rbx
xor ecx, ecx
mov r15, rax
call qword [sym.imp.USER32.dll_ReleaseDC]
test r15, r15
je 0x1400029c5
mov ecx, dword [rbp + 0x1d0]
xor edx, edx
mov r10, qword [rsi]
lea r8d, [rcx*4]
mov rcx, qword [rsp + 0x30]
mov r9d, r8d
mov qword [rsp + 0x20], rcx
imul r9d, dword [rbp + 0x1d8]
mov rcx, rsi
call qword [r10 + 0x38]
test eax, eax
jns 0x1400029c5
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r15, rdi
mov rdx, qword [rsi]
mov rcx, rsi
mov rdi, r15
call qword [rdx + 0x10]
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x10]
mov rax, rdi
mov rsi, qword [rsp + 0x2c0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret