Function at 0x180024aa0
Capabilities:
Get file version info
Set registry value

Disassembly:
mov rax, rsp
push r13
sub rsp, 0xb70
mov qword [rsp + 0x100], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x1800a7b78]
xor rax, rsp
mov qword [rsp + 0xb60], rax
cmp qword [0x1800a9578], 0
jne 0x180025071
cmp qword [0x1800a9548], 0
jne 0x180024b06
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x1800a9548], rax
lea rcx, [rsp + 0xc0]
call qword [0x1800a9468]
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov r8d, 0x104
lea rdx, [rsp + 0x350]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r11, [rsp + 0x960]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x150]
lea r8, [rsp + 0x760]
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x350]
call fcn.18005a9cc
mov edx, 0x7e
lea rcx, [rsp + 0x150]
call fcn.180059e74
test rax, rax
je 0x180024c30
lea rcx, [rsp + 0x78]
call qword [0x1800a9420]
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x350]
call fcn.18001ce40
test al, al
je 0x180024c1c
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call qword [0x1800a9438]
mov r8d, 0x208
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x350]
call fcn.18005b348
xor ebx, ebx
mov word [rsp + 0x75e], bx
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call qword [0x1800a9438]
lea rax, [rsp + 0x960]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x150]
lea r8, [rsp + 0x760]
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x58]
call fcn.18005a9cc
jmp 0x180024c1e
xor ebx, ebx
lea rcx, [rsp + 0x78]
call qword [0x1800a9430]
nop
jmp 0x180024c32
xor ebx, ebx
lea rcx, [rsp + 0xe0]
call qword [0x1800a9420]
nop
or r8d, 0xffffffff
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0xe0]
call qword [0x1800a9450]
lea r8, [rsp + 0xc0]
xor edx, edx
lea rcx, [rsp + 0xe0]
call qword [0x1800a94b8]
cmp qword [0x1800a9550], 0
jne 0x180024cae
call fcn.18001fec0
cmp qword [0x1800a9550], 0
jne 0x180024cae
lea rcx, [rsp + 0xe0]
call qword [0x1800a9430]
nop
lea rcx, [rsp + 0xc0]
call qword [0x1800a9478]
jmp 0x180025071
lea rcx, [0x1800aa810]
call fcn.1800538f0
cmp qword [0x1800a9578], 0
jne 0x180025053
lea rcx, [rsp + 0x78]
call qword [0x1800a9468]
or r8d, 0xffffffff
lea rdx, str.SoftwareDownloadManagerIDMBI_
lea rcx, [rsp + 0x78]
call qword [0x1800a9498]
nop
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xc0]
call qword [0x1800a9480]
mov dword [rsp + 0x20], 0xffffffff
mov r9, qword [rsp + 0x58]
xor r8d, r8d
or edx, 0xffffffff
lea rcx, [rsp + 0x78]
call qword [0x1800a94a0]
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call qword [0x1800a9480]
lea r13, [0x1800a9578]
mov qword [rsp + 0x20], r13
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [0x1800a9578]
test eax, eax
cmovne rcx, rbx
mov qword [0x1800a9578], rcx
lea rcx, [rsp + 0x78]
call qword [0x1800a9478]
cmp qword [0x1800a9578], 0
jne 0x180025053
lea rcx, [rsp + 0x98]
call qword [0x1800a9468]
nop
mov dword [rsp + 0x60], ebx
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x350]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x180024e8c
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r12, rax
mov r9, rax
mov r8d, edi
mov edx, dword [rsp + 0x60]
lea rcx, [rsp + 0x350]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x180024e7a
mov dword [rsp + 0x68], ebx
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x50]
lea rdx, str.VarFileInfoTranslation
mov rcx, r12
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x180024e7a
mov dword [rsp + 0x68], ebx
mov rax, qword [rsp + 0x50]
movzx ecx, word [rax + 2]
movzx r9d, word [rax]
mov dword [rsp + 0x20], ecx
lea r8, str.StringFileInfo_04x_04xProductName
mov edx, 0x40
lea rcx, [rsp + 0x110]
call fcn.18005ac08
lea r9, [rsp + 0x68]
lea r8, [rsp + 0xb8]
lea rdx, [rsp + 0x110]
mov rcx, r12
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x180024e7a
or r8d, 0xffffffff
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x98]
call qword [0x1800a9498]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x98]
call qword [0x1800a9480]
test eax, eax
jne 0x180024ebc
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x98]
call qword [0x1800a94a8]
lea rcx, [rsp + 0x78]
call qword [0x1800a9468]
or r8d, 0xffffffff
lea rdx, str.SoftwareDownloadManagerIDMBI_
lea rcx, [rsp + 0x78]
call qword [0x1800a9498]
nop
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xc0]
call qword [0x1800a9480]
mov dword [rsp + 0x20], 0xffffffff
mov r9, qword [rsp + 0x50]
xor r8d, r8d
or edx, 0xffffffff
lea rcx, [rsp + 0x78]
call qword [0x1800a94a0]
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call qword [0x1800a9480]
lea r11, [rsp + 0x58]
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
lea r9, [0x180087722]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x180024fa2
lea rcx, [rsp + 0x78]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0x98]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xe0]
call qword [0x1800a9430]
nop
lea rcx, [rsp + 0xc0]
call qword [0x1800a9478]
jmp 0x180025071
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x98]
call qword [0x1800a9480]
mov ebx, eax
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x98]
call qword [0x1800a9480]
lea r11d, [rbx + 1]
mov dword [rsp + 0x28], r11d
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.name
mov rcx, qword [0x1800a9578]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x70], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x180089494]
mov rcx, qword [0x1800a9578]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop
lea rcx, [rsp + 0x78]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0x98]
call qword [0x1800a9478]
nop
lea rcx, [rsp + 0xe0]
call qword [0x1800a9430]
nop
lea rcx, [rsp + 0xc0]
call qword [0x1800a9478]
nop
mov rcx, qword [rsp + 0xb60]
xor rcx, rsp
call fcn.1800590c0
lea r11, [rsp + 0xb70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop r13
ret