Function at 0x4108f0
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
mov eax, 0x45c560
call fcn.0045c170
push ecx
mov eax, 0xbc98
call fcn.0045c140
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x1ca6]
mov word [ebp - 0x1ca8], bx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], esp
push 0x40
stosw word es:[edi], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x337]
mov byte [ebp - 0x338], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x208
xor eax, eax
lea edi, [ebp - 0xc5f]
mov byte [ebp - 0xc60], bl
rep stosd dword es:[edi], eax
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x14], ebx
stosw word es:[edi], ax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
stosb byte es:[edi], al
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
je 0x410b76
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp eax, ebx
jl 0x410b76
cmp dword [ebp - 0x1c], ebx
je 0x410b76
mov esi, 0x103
lea eax, [ebp - 0x338]
push esi
push eax
push dword [ebp - 0x1c]
call fcn.00424811
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x233]
mov byte [ebp - 0x234], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x12f]
mov byte [ebp - 0x130], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x338]
pop edi
mov dword [ebp - 0x28], esi
push eax
push 0x40a0d0
lea eax, [ebp - 0x43c]
push 0x104
push eax
mov dword [ebp - 0x2c], edi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x1ca8]
push 0x824
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push 2
lea eax, [ebp - 0x1ca8]
pop edx
mov cx, word [eax]
cmp cx, bx
je 0x410a30
cmp cx, 0x23
je 0x410a30
add eax, edx
jmp 0x410a1e
cmp word [eax], 0x23
jne 0x410aaf
mov word [eax], bx
add eax, edx
mov dword [ebp + 0xc], eax
mov cx, word [eax]
cmp cx, bx
je 0x410a50
cmp cx, 0x3d
je 0x410a50
add eax, edx
jmp 0x410a3e
cmp word [eax], bx
je 0x410aaf
mov word [eax], bx
lea ecx, [ebp - 0xc60]
add eax, edx
push 0x823
push ecx
push eax
call fcn.00424811
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0xc
push 0x40a0c0
push dword [ebp + 0xc]
call edi
pop ecx
test eax, eax
pop ecx
je 0x410a95
push 0x40a0a4
push dword [ebp + 0xc]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x410aac
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc60]
push eax
call fcn.00410b8e
add esp, 0xc
push 1
pop edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x43c]
push 0x45e298
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x410b73
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
add ecx, eax
test ecx, ecx
jbe 0x410b76
lea eax, [ebp - 0x130]
push esi
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x24]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp - 0x130]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp + 0xc], eax
mov eax, 0xa000
cmp dword [ebp + 0xc], eax
ja 0x410b73
lea ecx, [ebp - 0xbca8]
push ecx
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x130]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x410b73
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xbca8]
push 0x40a0a0
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x410b73
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x410b73
mov eax, dword [ecx + 8]
cmp eax, dword [ebp - 0x18]
jb 0x410b73
jne 0x410b76
mov eax, dword [ecx + 0xc]
cmp eax, dword [ebp - 0x20]
jae 0x410b76
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret