Function at 0x455ac0
Capabilities:
Check os version
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521849
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x587978]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x148], esi
call fcn.0044f2e0
mov dword [ebp - 4], 1
mov dword [esi], vtable.ATL::CComModule.0
mov dword [0x588fd8], esi
mov dword [ebp - 4], 2
mov dword [esi], vtable.WTL::CAppModule.0
mov dword [ebp - 4], 3
xor ebx, ebx
mov dword [esi], vtable.install_module.0
mov dword [esi + 0x3c], ebx
mov byte [ebp - 4], 4
mov dword [esi + 0x40], ebx
mov byte [ebp - 4], 5
mov dword [esi + 0x44], ebx
mov byte [ebp - 4], 6
mov dword [esi + 0x48], ebx
mov byte [ebp - 4], 7
mov dword [esi + 0x4c], ebx
mov byte [ebp - 4], 8
mov dword [esi + 0x50], ebx
mov byte [ebp - 4], 9
mov dword [esi + 0x54], ebx
mov byte [ebp - 4], 0xa
mov dword [esi + 0x58], ebx
mov byte [ebp - 4], 0xb
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x5c]
mov ecx, 0x587944
mov dword [ebp - 0x130], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xd
lea eax, [esi + 0x64]
mov dword [esi + 0x60], 1
mov dword [ebp - 0x130], eax
mov dword [eax], ebx
mov byte [ebp - 4], 0xf
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov byte [ebp - 4], 0x10
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x138], edi
mov byte [ebp - 4], 0x12
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x455bf3
push 0x104
lea ecx, [ebp - 0x138]
call fcn.00406d20
mov edi, dword [ebp - 0x138]
mov eax, 0x104
cmp dword [edi - 8], eax
jge 0x455c07
push 0x80070057
call fcn.00406170
push edi
xor ecx, ecx
mov dword [edi - 0xc], eax
push eax
mov word [edi + 0x208], cx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004ebabf
add esp, 8
cmp eax, ebx
jl 0x455bfd
cmp eax, dword [edi - 8]
jg 0x455bfd
mov dword [edi - 0xc], eax
xor edx, edx
mov word [edi + eax*2], dx
lea eax, [ebp - 0x130]
push eax
call fcn.004552b0
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x134]
push edx
call fcn.0041f300
add esp, 0x10
mov byte [ebp - 4], 0x14
push eax
lea ecx, [esi + 0x5c]
call fcn.00411c00
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455c94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x130]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455cba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x134]
push ecx
call fcn.00422a20
mov byte [ebp - 4], 0x17
push eax
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x130]
push eax
call fcn.0041f300
add esp, 0x10
mov byte [ebp - 4], 0x18
mov eax, dword [eax]
push eax
push str.GUI_DIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x130]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455d19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455d3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x74
call fcn.004eba15
add esp, 4
cmp eax, ebx
je 0x455d56
mov ecx, eax
call fcn.0047be40
jmp 0x455d58
xor eax, eax
push 0xc
mov dword [esi + 0x40], eax
call fcn.004eba15
add esp, 4
cmp eax, ebx
je 0x455d72
mov ecx, eax
call fcn.0048ac10
jmp 0x455d74
xor eax, eax
push 0x2dc
mov dword [esi + 0x44], eax
call fcn.004eba15
add esp, 4
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 0x1b
cmp eax, ebx
je 0x455d9b
mov ecx, eax
call fcn.00469d10
jmp 0x455d9d
xor eax, eax
mov byte [ebp - 4], 0x12
push 0x228
mov dword [esi + 0x48], eax
call fcn.004eba15
add esp, 4
cmp eax, ebx
je 0x455dbe
mov ecx, eax
call fcn.00445940
jmp 0x455dc0
xor eax, eax
push 0x3c
mov dword [esi + 0x4c], eax
call fcn.004eba15
add esp, 4
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 0x1c
cmp eax, ebx
je 0x455de4
mov ecx, eax
call fcn.00483ef0
jmp 0x455de6
xor eax, eax
mov byte [ebp - 4], 0x12
push 0xc0
mov dword [esi + 0x50], eax
call fcn.004eba15
add esp, 4
cmp eax, ebx
je 0x455e0b
push 0xa
push 5
mov ecx, eax
call fcn.00452450
jmp 0x455e0d
xor eax, eax
push 0x38
mov dword [esi + 0x54], eax
call fcn.004eba15
add esp, 4
cmp eax, ebx
je 0x455e27
mov ecx, eax
call fcn.00432a60
jmp 0x455e29
xor eax, eax
mov dword [esi + 0x58], eax
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x130]
push ecx
call fcn.00454db0
add esp, 4
mov byte [ebp - 4], 0x1e
mov eax, dword [eax]
push 0xf003f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x144]
call fcn.0041dc50
test eax, eax
sete dl
mov byte [esi + 0x60], dl
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp - 0x130]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455e9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esi + 0x60], bl
je 0x455eaa
mov dword [0x584d38], 2
lea ecx, [ebp - 0x12c]
push ecx
mov dword [ebp - 0x12c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
add eax, 0x10
mov dword [ebp - 0x134], eax
mov byte [ebp - 4], 0x21
cmp dword [ebp - 0x128], 6
jb 0x455eeb
mov byte [esi + 0x63], 1
lea ecx, [ebp - 0x130]
push ecx
call fcn.004538a0
add esp, 4
mov byte [ebp - 4], 0x22
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x134]
call fcn.0040f910
mov byte [ebp - 4], 0x21
mov eax, dword [ebp - 0x130]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x455f36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x134]
push ecx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x64], eax
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x455f6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x144]
cmp eax, ebx
je 0x455f8a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x140], ebx
mov byte [ebp - 4], 0x10
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455fb0
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004eb16b
mov esp, ebp
pop ebp
ret