Function at 0x50df10
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524a47
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x53120c]
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 dword [ebp - 0x228], 0
lea eax, [ebp - 0x218]
mov ecx, 0x208
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x50df53
push ecx
push 0x2a
lea eax, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x50e17d
call fcn.005048a0
mov ecx, eax
test ecx, ecx
je 0x50e19f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.00506850
test al, al
jne 0x50dfe2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50dfc0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00504b10
push str.VAIOVAIO_Control_CenterVAIO_Control_Center.exe
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 1
call fcn.00504e60
call fcn.005048a0
mov ecx, eax
test ecx, ecx
je 0x50e1a9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x220]
call fcn.00506850
test al, al
jne 0x50e062
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50e040
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.00504b10
push str.VAIOVAIO_Control_CenterVESMgr.exe
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00504e60
call fcn.005048a0
mov ecx, eax
test ecx, ecx
je 0x50e1b3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x224]
call fcn.00506850
test al, al
jne 0x50e0d8
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50e0b6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.00504b10
push str.VAIOVAIO_Control_CenterCommonSetting.dll
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 5
call fcn.00504e60
push dword [ebp - 0x21c]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
mov edi, dword [ebp - 0x220]
mov esi, dword [ebp - 0x224]
test eax, eax
jne 0x50e118
push edi
call ebx
test eax, eax
jne 0x50e118
push esi
call ebx
test eax, eax
je 0x50e122
mov dword [ebp - 0x228], 1
lea edx, [esi - 0x10]
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50e140
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x50e15b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x50e17d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x228]
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.0050f225
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.005046e0
push 0x80004005
call fcn.005046e0
push 0x80004005
call fcn.005046e0
int3