Function at 0x4a2450
Capabilities:
Accept command line arguments
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
push 0
mov ebx, eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov eax, dword [ebp + 8]
push 0x5c5bb4
push eax
push 0x619d90
mov ecx, 0x632b68
call fcn.0049cb00
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5c6484]
mov dx, word [0x5c6488]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x5c6464
mov dword [0x632b98], eax
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], dx
call esi
push 0x4a15c0
mov dword [0x632aec], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x20019
mov dword [0x632b60], eax
mov eax, dword [str.SoftwareResearch_In_MotionCommonInstallationsDesktop]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
call fcn.004e4a10
mov edx, dword [str.PrimaryLangID]
lea ecx, [ebp - 0x18]
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004e4910
test al, al
jne 0x4a250e
call fcn.004e6620
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x618498]
push ecx
lea edx, [ebp - 0x10]
push str.DeviceManagerRes_i.dll
push edx
mov dword [ebp - 0x10], eax
call fcn.004a1b00
mov edi, dword [ebp - 0x10]
add esp, 0xc
push edi
call esi
test eax, eax
je 0x4a254a
push eax
push 0x635994
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 0x18]
push eax
call sub.COMCTL32.dll_InitMUILanguage
lea ecx, [edi - 0xc]
cmp ecx, dword [0x618494]
je 0x4a256c
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a256c
push edi
call fcn.0055a04a
add esp, 4
lea edx, [ebp - 0xc]
push edx
push ebx
mov byte [0x632ba0], 1
mov dword [ebp - 0x10], 0
call fcn.0049d060
mov esi, eax
xor ebx, ebx
add esp, 8
cmp esi, ebx
je 0x4a2626
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea esp, [esp]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x4a25d9
push str.RegServer
push esi
call edi
test eax, eax
je 0x4a25fc
push str.RunServer
push esi
call edi
test eax, eax
je 0x4a2620
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.0049d060
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x4a25a0
jmp 0x4a2626
push ebx
push ebx
push 0x64
push 0x632b68
call fcn.004a2130
push ebx
push 1
mov ecx, 0x632b68
call fcn.004a1520
mov dword [ebp - 0x10], eax
jmp 0x4a2815
push ebx
push 1
push 0x64
push 0x632b68
call fcn.004a2130
push ebx
push 1
mov ecx, 0x632b68
call fcn.004a1480
mov dword [ebp - 0x10], eax
jmp 0x4a2815
mov byte [0x632ba0], bl
push 4
lea ecx, [ebp - 0x14]
push ecx
push str.RimDeviceManagerSharedMem
push 4
mov ecx, 0x632ba4
mov dword [ebp - 0x14], ebx
call fcn.0049de20
cmp byte [0x632ba0], bl
jne 0x4a26e4
mov eax, dword [0x632bb4]
cmp eax, ebx
je 0x4a265e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x632bac]
cmp eax, ebx
ja 0x4a266f
mov dword [0], ebx
jmp 0x4a268d
cmp eax, 4
jbe 0x4a2679
mov eax, 4
mov edx, dword [0x632ba8]
push eax
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.005592a0
add esp, 0xc
mov esi, 1
cmp dword [ebp - 0x14], esi
je 0x4a26d4
push 0x632b70
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x632bac]
mov dword [ebp - 0x14], esi
cmp eax, ebx
ja 0x4a26b6
mov dword [0], ebx
jmp 0x4a26d4
cmp eax, 4
jbe 0x4a26c0
mov eax, 4
mov edx, dword [0x632ba8]
push eax
lea ecx, [ebp - 0x14]
push ecx
push edx
call fcn.005592a0
add esp, 0xc
mov eax, dword [0x632bb4]
cmp eax, ebx
je 0x4a26e4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [0x632bb8], bl
je 0x4a283e
mov ecx, 0x632b68
call fcn.0049e030
push 5
push 4
mov ecx, 0x632b68
call fcn.0049dd00
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov dword [ebp - 0x1c], ebx
cmp byte [0x632ba0], bl
jne 0x4a276a
lea eax, [ebp - 0x1c]
push eax
push 0x5c5f64
push 0x17
push ebx
push 0x5c5bd4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, 0x632b68
mov esi, eax
call fcn.0049cf00
cmp esi, ebx
jge 0x4a276a
push esi
push str.Create_RIMDeviceManager_failed.__X
push 1
push str.MODULE
push 0x127
push str.RIMDeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x14
push str.Start_Msg_Loop
push 0x14
push str.MODULE
push 0x12b
push str.RIMDeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
add esp, 0x10
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x48]
push ecx
call esi
cmp eax, ebx
je 0x4a27c8
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea esp, [esp]
cmp eax, 0xffffffff
je 0x4a27c8
lea edx, [ebp - 0x48]
push edx
call edi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x48]
push eax
call esi
cmp eax, ebx
jne 0x4a27b0
push str.Exit_Msg_Loop
push 1
push str.MODULE
push 0x133
push str.RIMDeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x10
mov ecx, 0x632b68
call fcn.0049dd90
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4a2815
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push str.Exiting
push 1
push str.MODULE
push 0x139
push str.RIMDeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x10
mov ecx, 0x632b68
call fcn.0049dc10
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x632aec]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x4a2861
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x2c]
call fcn.004e4860
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret 0x10