Function at 0x48f5e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x334], 0x10
lea ebx, [esi + 0x320]
push edi
jb 0x48f60c
mov eax, dword [ebx]
jmp 0x48f60e
mov eax, ebx
push 0x14
push str.Connect
push eax
push str.DestkopChannel
push 0x70
push str.RIMDesktopChannel.cpp
lea ecx, [ebp - 0xa0]
call fcn.004371e0
lea edi, [esi + 0x74]
push edi
mov dword [ebp - 0xb8], vtable.CAutoUnlock.0
mov byte [ebp - 0xb4], 1
mov dword [ebp - 0xb0], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x94], 0
je 0x48f7d0
cmp dword [esi + 0xc], 0
je 0x48f7d0
cmp dword [esi + 0x90], 1
jne 0x48f7d0
cmp dword [0x632b0c], 0
je 0x48f6e1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x632b0c]
cmp eax, ecx
jbe 0x48f68f
sub eax, ecx
jmp 0x48f692
sub eax, ecx
dec eax
cmp eax, 0x1f4
jae 0x48f6e1
cmp dword [ebx + 0x14], 0x10
jb 0x48f6a3
mov ecx, dword [ebx]
jmp 0x48f6a5
mov ecx, ebx
mov edi, 0x1f4
sub edi, eax
push edi
push ecx
push str._s_Delay__d_ms
push 0x14
push str.DestkopChannel
push 0x7d
push str.RIMDesktopChannel.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esi - 4]
mov dword [0x632b0c], eax
call fcn.0048f3e0
lea eax, [esi + 0x30]
push eax
mov dword [eax + 0x20], 0x1388
call fcn.00509db0
add esp, 4
cmp dword [ebx + 0x14], 0x10
jb 0x48f711
mov eax, dword [ebx]
jmp 0x48f713
mov eax, ebx
mov ecx, dword [esi + 0x90]
push str.PS_CONNECTING
shl ecx, 6
add ecx, str.PS_INVALID
push ecx
push eax
push str._s_PROTOCOLSTATE:__s_____s
push 0x14
push str.DestkopChannel
push 0x8b
push str.RIMDesktopChannel.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
mov ecx, dword [esi + 0x94]
add esp, 0x1c
mov dword [esi + 0x90], 3
mov byte [esi + 0x11e], 0
call fcn.00496600
mov ecx, dword [esi + 0x94]
push 1
lea edx, [ebp - 0xa8]
push edx
mov dword [esi + 0x98], eax
mov dword [ebp - 0xa8], 0
call fcn.00492f90
test al, al
jne 0x48f7fa
cmp dword [ebx + 0x14], 0x10
jb 0x48f79e
mov ebx, dword [ebx]
push ebx
push str._s_lockPassword_failed
push 1
push str.DestkopChannel
push 0x94
push str.RIMDesktopChannel.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
mov eax, dword [esi]
mov ecx, dword [eax + 0x30]
add esp, 0x14
push esi
call ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0xa0]
call fcn.004372a0
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [esi - 4]
test edx, edx
je 0x48f80d
lea eax, [esi + 0x2c]
jmp 0x48f80f
xor eax, eax
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edx + 0x1c]
call eax
mov ecx, dword [ebp - 0xb0]
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0xb4], 1
test edi, edi
jne 0x48fac3
cmp dword [esi + 0x90], 3
jne 0x48fac3
lea edi, [esi + 0x11f]
mov eax, edi
mov byte [esi + 0x11e], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48f860
sub eax, edx
je 0x48f887
mov ecx, dword [esi + 0x94]
push edi
call fcn.0049a260
push 0x200
push 0
push edi
call fcn.0055aed0
add esp, 0xc
mov edx, dword [ebp - 0xa8]
mov ecx, dword [esi + 0x94]
push edx
call fcn.004930c0
cmp dword [ebx + 0x14], 0x10
jb 0x48f8a3
mov eax, dword [ebx]
jmp 0x48f8a5
mov eax, ebx
mov ecx, dword [esi + 0x90]
push str.PS_CONNECTED
shl ecx, 6
add ecx, str.PS_INVALID
push ecx
push eax
push str._s_PROTOCOLSTATE:__s_____s
push 0x14
push str.DestkopChannel
push 0xb4
push str.RIMDesktopChannel.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x1c
mov edi, 5
push str.Service_Book
lea ecx, [ebp - 0xbc]
mov dword [esi + 0x90], edi
call fcn.00445ed0
mov eax, dword [eax]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
lea ecx, [ebp - 0xa9]
push ecx
push eax
push esi
call edx
test eax, eax
mov eax, dword [ebp - 0xbc]
push eax
sets byte [ebp - 0xa1]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp byte [ebp - 0xa1], 0
je 0x48f9d5
mov edi, 0x10
cmp dword [ebx + 0x14], edi
jb 0x48f942
mov eax, dword [ebx]
jmp 0x48f944
mov eax, ebx
push eax
push str.Unable_to_locate_service_book_protocol
push 1
push str.DestkopChannel
push 0xb9
push str.RIMDesktopChannel.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x30]
add esp, 0x14
push esi
call edx
cmp dword [ebx + 0x14], edi
jb 0x48f97d
mov ebx, dword [ebx]
mov eax, dword [esi + 0x90]
push str.PS_DISCONNECTED
shl eax, 6
add eax, str.PS_INVALID
push eax
push ebx
push str._s_PROTOCOLSTATE:__s_____s
push 0x14
push str.DestkopChannel
push 0xbb
push str.RIMDesktopChannel.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x1c
lea ecx, [ebp - 0xb8]
mov dword [esi + 0x90], 1
call fcn.00442940
jmp 0x48f7d7
cmp dword [ebx + 0x14], 0x10
jb 0x48f9df
mov eax, dword [ebx]
jmp 0x48f9e1
mov eax, ebx
mov ecx, dword [esi + 0x90]
push str.PS_CONNECTED
shl ecx, 6
add ecx, str.PS_INVALID
push ecx
push eax
push str._s_PROTOCOLSTATE:__s_____s
push 0x14
push str.DestkopChannel
push 0xbf
push str.RIMDesktopChannel.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
mov ecx, dword [esi + 0x98]
mov dword [esi + 0x90], edi
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x1c
call eax
mov ecx, dword [str.VERSION]
push eax
push ecx
mov ecx, dword [esi + 0x94]
call fcn.004908c0
mov ecx, dword [esi + 0x98]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [0x619428]
push eax
push ecx
lea ecx, [esi + 0x9c]
call fcn.0048b200
cmp dword [ebx + 0x14], 0x10
jb 0x48fa6e
mov ebx, dword [ebx]
push ebx
push str._s_Device_Connection_Acquired
push 0xa
push str.DestkopChannel
push 0xc5
push str.RIMDesktopChannel.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x14
lea ecx, [ebp - 0xb8]
call fcn.00442940
lea ecx, [ebp - 0xa0]
call fcn.004372a0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0xa8]
mov ecx, dword [esi + 0x94]
push edx
call fcn.004930c0
cmp dword [ebx + 0x14], 0x10
jb 0x48fadf
mov eax, dword [ebx]
jmp 0x48fae1
mov eax, ebx
push edi
push eax
push str._s_Connect_failed._Error:__X
push 1
push str.DestkopChannel
push 0xa2
push str.RIMDesktopChannel.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x18
cmp dword [ebx + 0x14], 0x10
jb 0x48fb14
mov ebx, dword [ebx]
mov eax, dword [esi + 0x90]
push str.PS_DISCONNECTED
shl eax, 6
add eax, str.PS_INVALID
push eax
push ebx
push str._s_PROTOCOLSTATE:__s_____s
push 0x14
push str.DestkopChannel
push 0xa4
push str.RIMDesktopChannel.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x30]
add esp, 0x1c
push esi
mov dword [esi + 0x90], 1
call edx
mov eax, dword [ebp - 0xb0]
dec edi
neg edi
sbb edi, edi
push eax
and edi, 0x3ffb
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0xa0]
call fcn.004372a0
mov ecx, dword [ebp - 4]
lea eax, [edi - 0x7ffffff6]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00558b78
mov esp, ebp
pop ebp
ret 4