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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x310
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0x300], rax
xor esi, esi
mov rdi, rdx
mov rbx, rcx
cmp rdx, rsi
jne 0x140044d32
xor eax, eax
jmp 0x140044f98
cmp dword [0x1400b3750], 0xffffffff
lea r12, [0x140000000]
jne 0x140044e85
lea rcx, [rsp + 0x90]
lea rdx, str.SoftwareMicrosoftOfficeCommon
mov r8d, 0x42
mov qword [rsp + 0x38], rsi
call fcn.140008ec4
mov rax, qword [r12 + 0x70068]
lea rcx, [rsp + 0x70]
lea r11, [rsp + 0x60]
lea rdx, [rsp + 0x90]
mov qword [r11], rax
movzx eax, word [r12 + 0x70070]
mov r9d, 0x20019
mov word [r11 + 8], ax
mov rax, qword [r12 + 0x70050]
xor r8d, r8d
mov qword [rcx], rax
mov rax, qword [r12 + 0x70058]
mov word [rsp + 0x48], si
mov qword [rcx + 8], rax
mov eax, dword [r12 + 0x70060]
mov dword [rsp + 0x30], 0x16
mov dword [rcx + 0x10], eax
movzx eax, word [r12 + 0x70064]
mov dword [0x1400b3750], esi
mov word [rcx + 0x14], ax
xor eax, eax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x4a], rax
mov qword [rsp + 0x52], rax
mov dword [rsp + 0x5a], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x140044e85
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x140044e75
mov eax, dword [rsp + 0x30]
mov edx, esi
mov rcx, rsi
shr eax, 1
mov r8d, eax
cmp r8, rsi
jle 0x140044e62
movzx eax, word [rsp + rcx*2 + 0x70]
cmp ax, si
je 0x140044e62
cmp ax, word [rsp + rcx*2 + 0x48]
jne 0x140044e62
inc rcx
inc edx
cmp rcx, r8
jl 0x140044e47
mov ecx, esi
movsxd rax, edx
cmp word [rsp + rax*2 + 0x70], si
sete cl
mov dword [0x1400b3750], ecx
mov rcx, qword [rsp + 0x38]
cmp rcx, rsi
je 0x140044e85
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x1400b3750], esi
je 0x140044f49
lea rdx, [rsp + 0xe0]
mov r8d, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140044f49
cdqe
lea rdx, [rsp + rax*2 + 0xe0]
cmp word [rdx], 0x2e
je 0x140044ee4
lea rax, [rsp + 0xe2]
cmp rdx, rax
jbe 0x140044ede
sub rdx, 2
cmp word [rdx], 0x2e
jne 0x140044ec7
cmp word [rdx], 0x2e
jne 0x140044f49
mov rax, qword [r12 + 0x70068]
lea rcx, [rsp + 0x38]
mov r9d, esi
mov qword [rcx], rax
movzx eax, word [r12 + 0x70070]
mov r8, rsi
mov word [rcx + 8], ax
movzx eax, word [rsp + 0x38]
cmp ax, si
je 0x140044f2d
mov rcx, rsi
inc r8
mov word [rcx + rdx + 2], ax
inc r9d
lea rcx, [r8 + r8]
mov ax, word [rsp + rcx + 0x38]
cmp ax, si
jne 0x140044f14
movsxd rcx, r9d
mov word [rdx + rcx*2 + 2], si
lea rdx, [rsp + 0xe0]
mov rcx, rbx
call fcn.140044c54
cmp eax, esi
jne 0x140044f93
mov edx, 1
mov r8d, 0xea
mov rcx, rdi
mov qword [rbx], rsi
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x28], rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
cmp rax, rsi
je 0x140044d2b
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, rsi
je 0x140044d2b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbx + 0x18], rax
mov eax, 1
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140008a98
mov rbx, qword [rsp + 0x340]
add rsp, 0x310
pop r12
pop rdi
pop rsi
ret