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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521699
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.0044f4f0
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 0x455cc3
push 0x104
lea ecx, [ebp - 0x138]
call fcn.00406e00
mov edi, dword [ebp - 0x138]
mov eax, 0x104
cmp dword [edi - 8], eax
jge 0x455cd7
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.004eb8eb
add esp, 8
cmp eax, ebx
jl 0x455ccd
cmp eax, dword [edi - 8]
jg 0x455ccd
mov dword [edi - 0xc], eax
xor edx, edx
mov word [edi + eax*2], dx
lea eax, [ebp - 0x130]
push eax
call fcn.00455380
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x134]
push edx
call fcn.0041f010
add esp, 0x10
mov byte [ebp - 4], 0x14
push eax
lea ecx, [esi + 0x5c]
call fcn.00411920
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 0x455d64
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 0x455d8a
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.00422780
mov byte [ebp - 4], 0x17
push eax
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x130]
push eax
call fcn.0041f010
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 0x455de9
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 0x455e0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x74
call fcn.004eb841
add esp, 4
cmp eax, ebx
je 0x455e26
mov ecx, eax
call fcn.0047bb30
jmp 0x455e28
xor eax, eax
push 0xc
mov dword [esi + 0x40], eax
call fcn.004eb841
add esp, 4
cmp eax, ebx
je 0x455e42
mov ecx, eax
call fcn.0048a6b0
jmp 0x455e44
xor eax, eax
push 0x2dc
mov dword [esi + 0x44], eax
call fcn.004eb841
add esp, 4
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 0x1b
cmp eax, ebx
je 0x455e6b
mov ecx, eax
call fcn.00469d70
jmp 0x455e6d
xor eax, eax
mov byte [ebp - 4], 0x12
push 0x228
mov dword [esi + 0x48], eax
call fcn.004eb841
add esp, 4
cmp eax, ebx
je 0x455e8e
mov ecx, eax
call fcn.00445a40
jmp 0x455e90
xor eax, eax
push 0x3c
mov dword [esi + 0x4c], eax
call fcn.004eb841
add esp, 4
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 0x1c
cmp eax, ebx
je 0x455eb4
mov ecx, eax
call fcn.00483b90
jmp 0x455eb6
xor eax, eax
mov byte [ebp - 4], 0x12
push 0xc0
mov dword [esi + 0x50], eax
call fcn.004eb841
add esp, 4
cmp eax, ebx
je 0x455edb
push 0xa
push 5
mov ecx, eax
call fcn.00452660
jmp 0x455edd
xor eax, eax
push 0x38
mov dword [esi + 0x54], eax
call fcn.004eb841
add esp, 4
cmp eax, ebx
je 0x455ef7
mov ecx, eax
call fcn.00432990
jmp 0x455ef9
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.00454e80
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.0041d8b0
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 0x455f6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esi + 0x60], bl
je 0x455f7a
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 0x455fbb
mov byte [esi + 0x63], 1
lea ecx, [ebp - 0x130]
push ecx
call fcn.00453ab0
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.0040f630
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 0x456006
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 0x45603f
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 0x45605a
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 0x456080
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.004eaf3b
mov esp, ebp
pop ebp
ret