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

Disassembly:
mov eax, 0x45edc0
call fcn.0045e9d0
push ecx
mov eax, 0xbc98
call fcn.0045e9a0
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 0x411786
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp eax, ebx
jl 0x411786
cmp dword [ebp - 0x1c], ebx
je 0x411786
mov esi, 0x103
lea eax, [ebp - 0x338]
push esi
push eax
push dword [ebp - 0x1c]
call fcn.0042523f
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 0x411640
cmp cx, 0x23
je 0x411640
add eax, edx
jmp 0x41162e
cmp word [eax], 0x23
jne 0x4116bf
mov word [eax], bx
add eax, edx
mov dword [ebp + 0xc], eax
mov cx, word [eax]
cmp cx, bx
je 0x411660
cmp cx, 0x3d
je 0x411660
add eax, edx
jmp 0x41164e
cmp word [eax], bx
je 0x4116bf
mov word [eax], bx
lea ecx, [ebp - 0xc60]
add eax, edx
push 0x823
push ecx
push eax
call fcn.0042523f
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 0x4116a5
push 0x40a0a4
push dword [ebp + 0xc]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4116bc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc60]
push eax
call fcn.0041179e
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 0x460a68
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x411783
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
add ecx, eax
test ecx, ecx
jbe 0x411786
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 0x411783
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 0x411783
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 0x411783
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x411783
mov eax, dword [ecx + 8]
cmp eax, dword [ebp - 0x18]
jb 0x411783
jne 0x411786
mov eax, dword [ecx + 0xc]
cmp eax, dword [ebp - 0x20]
jae 0x411786
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