Function at 0x415120
Capabilities:
Check if file exists
Check os version
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4763e6
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x4a3eb0]
xor eax, esp
mov dword [esp + 0x32c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a3eb0]
xor eax, esp
push eax
lea eax, [esp + 0x344]
mov dword fs:[0], eax
xor ebx, ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0x114
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
xor edi, edi
mov ebp, 0x20019
call fcn.004062c0
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x354], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x4151b4
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4151cf
cmp dword [esp + 0x28], 6
jne 0x4151cf
mov edi, 1
cmp dword [esp + 0x1c], ebx
je 0x4151ec
push str.CDeviceDetect::IsExistWinDevSyncTool
push str._s__kkam__This_is_64bit_OS.
call fcn.00403120
add esp, 8
mov ebp, 0x20119
push str.CDeviceDetect::IsExistWinDevSyncTool
cmp edi, ebx
je 0x41529a
push str._s__kkam__This_is_vista_or_windows7_OS.
call fcn.00403120
add esp, 8
lea ecx, [esp + 0x14]
cmp dword [esp + 0x1c], ebx
je 0x415217
push str.626672CD_BFCF_49A9_AEFE_AB0FED3BFC5B
jmp 0x41521c
push str.904CCF62_818D_4675_BC76_D37EB399F917
call fcn.004053e0
mov edx, dword [esp + 0x14]
push edx
push str.CDeviceDetect::IsExistWinDevSyncTool
push str._s__kkam__WMDC_RegPath_:__s.
call fcn.00403120
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x41526a
push eax
push str.CDeviceDetect::IsExistWinDevSyncTool
push str._s__kkam__Not_Found_ActiveSync_or_WMDC__d_.
call fcn.00403120
add esp, 0xc
xor esi, esi
jmp 0x415282
push ebx
push str.CDeviceDetect::IsExistWinDevSyncTool
push str._s__kkam__Found_ActiveSync_or_WMDC__d_.
call fcn.00403120
add esp, 0xc
mov esi, 1
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x415341
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415341
push str._s__kkam__This_is_XP_OS.
call fcn.00403120
push 0x206
lea eax, [esp + 0x146]
xor edx, edx
push ebx
push eax
mov word [esp + 0x14c], dx
call sub.MSVCR90.dll_memset
add esp, 0x14
lea ecx, [esp + 0x138]
push ecx
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x47ed68
lea ecx, [esp + 0x1c]
call fcn.004062c0
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x1c]
push str._s_rapi.dll
push eax
mov byte [esp + 0x358], 1
call fcn.00402e30
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
add eax, 0xfffffff0
neg esi
mov byte [esp + 0x34c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415341
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x34c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41536c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x344]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.00473c8a
add esp, 0x33c
ret