Function at 0x455ba0
Capabilities:
Check os version
Get common file path
Get file version info
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46b386
push eax
mov eax, dword [0x47cffc]
mov dword fs:[0], esp
sub esp, 0x348
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
jne 0x45606c
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push ebp
push edi
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x40]
mov dword [esp + 0x3c], 0x114
mov dword [0x47cffc], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push eax
call esi
test eax, eax
je 0x455cad
lea ecx, [esp + 0x44]
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.004560b0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov dword [0x47d004], eax
mov eax, dword [esp + 0x54]
add esp, 8
cmp eax, 2
mov dword [0x47d000], ecx
mov dword [0x47d008], edx
mov dword [0x47d00c], eax
jne 0x455cad
cmp ecx, 4
jb 0x455cad
mov ecx, 0x46
xor eax, eax
lea edi, [esp + 0x154]
mov dword [esp + 0x150], 0x11c
rep stosd dword es:[edi], eax
lea eax, [esp + 0x150]
push eax
call esi
test eax, eax
je 0x455cad
mov cx, word [esp + 0x264]
mov dx, word [esp + 0x266]
mov ax, word [esp + 0x26a]
mov word [0x47d110], cx
mov cx, word [esp + 0x268]
mov word [0x47d112], dx
mov byte [0x47d116], al
mov word [0x47d114], cx
mov byte [0x47d117], ah
push 0x104
push 0x47d118
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x47d118
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 4
test eax, eax
jbe 0x455e84
mov edi, dword [sym.imp.MSVCRT.dll_wcscpy]
push 0x47d118
push 0x47d320
call edi
mov esi, dword [sym.imp.MSVCRT.dll_wcsrchr]
push 0x5c
push 0x47d320
call esi
add esp, 0x10
cmp eax, ebx
je 0x455d04
mov word [eax], bx
push 0x47d320
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x455e84
push 0x47d320
push 0x47d938
call edi
push 0x5c
push 0x47d938
call esi
add esp, 0x10
cmp eax, ebx
je 0x455d39
mov word [eax], bx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push edx
push 0x20019
push ebx
push 0x476f50
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x455e24
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x455e24
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push ebx
push edx
push ebx
push 0x47a3ec
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call ebp
test eax, eax
mov esi, 0x102
jne 0x455dc7
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x455da9
cmp eax, 2
je 0x455da9
cmp eax, 6
je 0x455da9
cmp eax, 7
jne 0x455dc7
cmp dword [esp + 0x18], esi
ja 0x455dc7
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x47d528
push ebx
push ebx
push 0x47a3ec
push ecx
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push 0x476f2c
push ecx
call ebp
test eax, eax
jne 0x455e19
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x455dfb
cmp eax, 2
je 0x455dfb
cmp eax, 6
je 0x455dfb
cmp eax, 7
jne 0x455e19
cmp dword [esp + 0x18], esi
ja 0x455e19
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x47d730
push ebx
push ebx
push 0x476f2c
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x47d528
call dword [sym.imp.MSVCRT.dll_wcslen]
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 4
test eax, eax
jne 0x455e57
push 0x47d938
push 0x47d528
call edi
push 0x47a3cc
push 0x47d528
call esi
add esp, 0x10
push 0x47d730
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jne 0x455e84
push 0x47d528
push 0x47d730
call edi
push 0x47a3b0
push 0x47d730
call esi
add esp, 0x10
xor esi, esi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x360], ebx
call sub.MFC42u.DLL_CString::CString_3
lea edx, [esp + 0x10]
mov byte [esp + 0x360], 1
push edx
push 0x20019
push ebx
push 0x47a354
push SysFreeString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x455f2f
xor eax, eax
mov esi, dword [esp + 0x10]
mov dword [esp + 0x26], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2a], eax
lea edx, [esp + 0x24]
mov dword [esp + 0x2e], eax
push ecx
mov dword [esp + 0x36], eax
push edx
mov dword [esp + 0x3e], eax
lea eax, [esp + 0x18]
push eax
push ebx
push 0x47a334
push esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], 0xa
mov word [esp + 0x3c], bx
mov dword [esp + 0x28], ebx
call ebp
cmp eax, ebx
jne 0x455f1e
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::operator
cmp esi, ebx
je 0x455f2f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x20]
cmp dword [eax - 8], ebx
jle 0x455f51
push 0x47db40
push 0x47a32c
push eax
call dword [sym.imp.MSVCRT.dll_swscanf]
add esp, 0xc
jmp 0x45604f
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x152]
mov word [esp + 0x150], bx
rep stosd dword es:[edi], eax
push 0x47d118
lea edx, [esp + 0x154]
push 0x47a314
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x150]
mov dword [esp + 0x18], ebx
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
push eax
mov dword [esp + 0x14], eax
call sub.MFC42u.DLL_operatornew
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x45604f
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
lea edx, [esp + 0x154]
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x456046
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0x477320
push ebp
mov dword [esp + 0x2c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x456046
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov ax, word [edx]
mov word [0x47db40], ax
mov edx, dword [0x47db40]
mov eax, 0x47a27a
mov di, word [eax + 2]
and edi, edx
cmp di, word [eax]
je 0x456034
add eax, 6
inc ecx
cmp eax, 0x47a316
jb 0x45601c
jmp 0x456046
lea ecx, [ecx + ecx*2]
mov dx, word [ecx*2 + 0x47a278]
mov word [0x47db40], dx
push ebp
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x360], bl
call sub.MFC42u.DLL_CString::CString
pop edi
cmp esi, ebx
pop ebp
je 0x45606c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x350]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x354
ret