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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7bf9
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x52de08]
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.0044fcf0
mov dword [ebp - 4], 1
mov dword [esi], vtable.ATL::CComModule.0
mov dword [0x52f45c], 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 [0x52ddd4]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x5c]
mov ecx, 0x52ddd4
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 [0x52ddd4]
mov edx, dword [eax + 0xc]
mov ecx, 0x52ddd4
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 0x456473
push 0x104
lea ecx, [ebp - 0x138]
call fcn.00406e80
mov edi, dword [ebp - 0x138]
mov eax, 0x104
cmp dword [edi - 8], eax
jge 0x456487
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.004ab44b
add esp, 8
cmp eax, ebx
jl 0x45647d
cmp eax, dword [edi - 8]
jg 0x45647d
mov dword [edi - 0xc], eax
xor edx, edx
mov word [edi + eax*2], dx
lea eax, [ebp - 0x130]
push eax
call fcn.00455b30
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x134]
push edx
call fcn.004225e0
add esp, 0x10
mov byte [ebp - 4], 0x14
push eax
lea ecx, [esi + 0x5c]
call fcn.00412bf0
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 0x456514
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 0x45653a
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.00425980
mov byte [ebp - 4], 0x17
push eax
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x130]
push eax
call fcn.004225e0
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 0x456599
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 0x4565bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x40
call fcn.004ab3a1
add esp, 4
cmp eax, ebx
je 0x4565d6
mov ecx, eax
call fcn.0047ae60
jmp 0x4565d8
xor eax, eax
push 0xc
mov dword [esi + 0x40], eax
call fcn.004ab3a1
add esp, 4
cmp eax, ebx
je 0x4565f2
mov ecx, eax
call fcn.0048bea0
jmp 0x4565f4
xor eax, eax
push 0x2dc
mov dword [esi + 0x44], eax
call fcn.004ab3a1
add esp, 4
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 0x1b
cmp eax, ebx
je 0x45661b
mov ecx, eax
call fcn.0046b200
jmp 0x45661d
xor eax, eax
mov byte [ebp - 4], 0x12
push 0x228
mov dword [esi + 0x48], eax
call fcn.004ab3a1
add esp, 4
cmp eax, ebx
je 0x45663e
mov ecx, eax
call fcn.004469c0
jmp 0x456640
xor eax, eax
push 0x3c
mov dword [esi + 0x4c], eax
call fcn.004ab3a1
add esp, 4
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 0x1c
cmp eax, ebx
je 0x456664
mov ecx, eax
call fcn.00482b40
jmp 0x456666
xor eax, eax
mov byte [ebp - 4], 0x12
push 0xc0
mov dword [esi + 0x50], eax
call fcn.004ab3a1
add esp, 4
cmp eax, ebx
je 0x45668b
push 0xa
push 5
mov ecx, eax
call fcn.00452e70
jmp 0x45668d
xor eax, eax
push 0x38
mov dword [esi + 0x54], eax
call fcn.004ab3a1
add esp, 4
cmp eax, ebx
je 0x4566a7
mov ecx, eax
call fcn.00434210
jmp 0x4566a9
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.00455630
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.0040b7a0
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 0x45671b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esi + 0x60], bl
je 0x45672a
mov dword [0x52bd38], 2
lea ecx, [ebp - 0x12c]
push ecx
mov dword [ebp - 0x12c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
call eax
add eax, 0x10
mov dword [ebp - 0x134], eax
mov byte [ebp - 4], 0x21
cmp dword [ebp - 0x128], 6
jb 0x45676b
mov byte [esi + 0x63], 1
lea ecx, [ebp - 0x130]
push ecx
call fcn.004542c0
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.004104a0
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 0x4567b6
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 0x4567ef
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 0x45680a
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 0x456830
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.004aaa9b
mov esp, ebp
pop ebp
ret