Function at 0x455d80
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592b63
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x62d12c]
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
push 4
mov esi, ecx
call fcn.0051ff80
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x455dc5
lea eax, [esi + 0x60]
jmp 0x455dc7
xor eax, eax
push eax
call fcn.0051dc80
push 0x98
call fcn.00559a21
mov edi, eax
add esp, 8
mov dword [ebp - 0x19c], edi
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x455df8
mov ecx, edi
call fcn.00450ae0
mov dword [edi], vtable.ATL::CComObjectNoLock_class_RIMDeviceManagerSettings_.0
jmp 0x455dfa
xor edi, edi
mov dword [ebp - 4], 0xffffffff
cmp dword [esi + 0x10c], edi
je 0x455e2d
cmp edi, ebx
je 0x455e15
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov eax, dword [esi + 0x10c]
cmp eax, ebx
je 0x455e27
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi + 0x10c], edi
push 0x44
call fcn.00559a21
mov edi, eax
add esp, 4
mov dword [ebp - 0x19c], edi
mov dword [ebp - 4], 1
cmp edi, ebx
je 0x455e59
mov ecx, edi
call fcn.00452b20
mov dword [edi], vtable.ATL::CComObjectNoLock_class_LoggingController_.0
jmp 0x455e5b
xor edi, edi
mov dword [ebp - 4], 0xffffffff
cmp dword [esi + 0x110], edi
je 0x455e8e
cmp edi, ebx
je 0x455e76
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov eax, dword [esi + 0x110]
cmp eax, ebx
je 0x455e88
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x110], edi
push str.DEVICE_CONNECTION
mov ecx, 0x632598
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], ebx
mov dword [esi + 0xcc], ebx
call fcn.004e2880
mov edi, 0xa
cmp dword [0x6327ec], ebx
jne 0x455f3a
push ebx
push 1
push str.SOFTWAREResearch_In_MotionDevice_Manager
lea ecx, [ebp - 0x198]
call fcn.0050e6a0
push ebx
lea ecx, [ebp - 0x198]
mov dword [ebp - 4], 2
mov dword [ebp - 0x1ac], edi
call fcn.0050ef60
test al, al
je 0x455f07
lea eax, [ebp - 0x1ac]
push eax
push str.LogLevel
lea ecx, [ebp - 0x198]
call fcn.0050dd90
test al, al
jne 0x455f0d
mov dword [ebp - 0x1ac], edi
mov ecx, dword [ebp - 0x1ac]
push 0x5dc
push ecx
push 0x5c0494
mov ecx, 0x632598
call fcn.004e3240
lea ecx, [ebp - 0x198]
mov dword [ebp - 4], 0xffffffff
call fcn.0050e450
call fcn.004dd620
test al, al
jne 0x4560fe
lea edx, [ebp - 0x114]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor edx, edx
mov eax, 0xf
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x140], edx
mov byte [ebp - 0x150], dl
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], edx
mov byte [ebp - 0x134], dl
mov byte [ebp - 0x118], dl
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x19c], esp
push 7
mov ebx, 3
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], edx
push 0x5c048c
mov dword [ebp - 4], ebx
mov byte [ecx], dl
call fcn.00422130
lea eax, [ebp - 0x150]
push eax
push 7
call fcn.004f1030
add esp, 0x24
test al, al
jne 0x456004
push str.Error_locating_desktop_installation_directory.__Unable_to_initialize_CE.DLL
push 1
push str.DeviceManager
push 0xd8
push str.DeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x10
lea ecx, [ebp - 0x150]
call fcn.0044bd50
mov eax, 0x80004005
jmp 0x4567e7
mov edx, dword [0x62c680]
mov eax, dword [edx + 0xc]
mov ecx, 0x62c680
call eax
add eax, 0x10
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x120], 0x10
mov eax, dword [ebp - 0x134]
mov byte [ebp - 4], 4
jae 0x456036
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x1a8]
call fcn.0044e3d0
lea ecx, [ebp - 0x1a8]
call fcn.0044e460
mov edi, dword [ebp - 0x1a8]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.004dd620
test al, al
jne 0x4560c0
push str.Error._Unable_to_initialize_CE.DLL_from_desktop_directory.
push 1
push str.DeviceManager
push 0xe5
push str.DeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
lea eax, [edi - 0x10]
add esp, 0x10
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4560ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x150]
call fcn.0044bd50
mov eax, 0x80004005
jmp 0x4567e7
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4560ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x150]
mov dword [ebp - 4], 0xffffffff
call fcn.0044bd50
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x94]
push eax
call ebx
mov dword [esi + 0xc4], 0
mov byte [esi + 0xbc], 1
mov dword [0x63258c], esi
push 0x24
mov dword [0x632588], 0xa
call fcn.00559a21
mov edi, eax
add esp, 4
test edi, edi
je 0x456160
lea ecx, [edi + 8]
push ecx
mov dword [edi], vtable.IManagedObjectImpl_class_IGITService_.0
mov dword [edi + 4], 1
call ebx
mov dword [edi], vtable.CDeviceManager::GITService.0
mov dword [edi + 0x20], 0
jmp 0x456162
xor edi, edi
mov ecx, dword [esi + 0x114]
test ecx, ecx
je 0x456173
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
push edi
mov dword [esi + 0x114], edi
call fcn.004a51d0
lea eax, [esi + 0x64]
push eax
call fcn.004a51d0
call fcn.004aa1c0
call fcn.00484140
call fcn.004a5250
push 0xbc
call fcn.00559a21
add esp, 0xc
mov dword [ebp - 0x19c], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x4561c0
mov ecx, eax
call fcn.00468260
mov edi, eax
jmp 0x4561c2
xor edi, edi
or ebx, 0xffffffff
mov dword [ebp - 4], ebx
cmp dword [esi + 0x108], edi
je 0x4561f4
test edi, edi
je 0x4561dc
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov eax, dword [esi + 0x108]
test eax, eax
je 0x4561ee
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x108], edi
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx + 4]
mov edx, dword [eax + 4]
add ecx, 4
call edx
push 0x30
call fcn.00559a21
add esp, 4
mov dword [ebp - 0x19c], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x456233
xor edx, edx
push edx
mov ecx, 0x448b10
push ecx
push esi
mov ecx, eax
call fcn.00449640
jmp 0x456235
xor eax, eax
push eax
mov dword [ebp - 4], ebx
call fcn.00447960
mov ecx, eax
call fcn.0044ff70
mov ecx, eax
call fcn.0044f2d0
push 0x30
call fcn.00559a21
add esp, 4
mov dword [ebp - 0x19c], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x45627a
xor edx, edx
push edx
mov ecx, 0x448b80
push ecx
push esi
mov ecx, eax
call fcn.00449640
jmp 0x45627c
xor eax, eax
push eax
mov dword [ebp - 4], ebx
call fcn.00447960
mov ecx, eax
call fcn.00450180
mov ecx, eax
call fcn.0044f2d0
call fcn.00443250
mov byte [esi + 0x118], al
test al, al
je 0x456396
push 0x443220
call sub.TunnelDeviceMonitor.dll_desktop_tunnel_device_monitor_create
add esp, 4
mov dword [esi + 0xcc], eax
test eax, eax
jne 0x4562eb
push str.Unable_to_create_Tunnel_Device_Manager_instance
push 1
push str.DeviceManager
push 0x106
push str.DeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x10
jmp 0x456396
lea edi, [esi + 0x11c]
push edi
mov dword [ebp - 0x19c], str.tunnel
call fcn.00455b70
add esp, 4
push edi
lea ecx, [ebp - 0x1b8]
call fcn.0044bc60
mov ecx, dword [esi + 0xcc]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esi + 0x68]
push eax
mov eax, dword [ebp - 0x1b8]
push eax
mov eax, dword [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x19c]
push eax
push 1
mov dword [ebp - 4], 8
call edx
test eax, eax
je 0x456388
push str.Unable_to_start_Tunnel_Device_Manager_instance
push 1
push str.DeviceManager
push 0x115
push str.DeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
mov ecx, dword [esi + 0xcc]
add esp, 0x10
test ecx, ecx
je 0x45637e
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0xcc], 0
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 4], ebx
call fcn.00443120
push str.Create_BlackBerry_Device_Manager_instance
push 0xa
push str.DeviceManager
push 0x11d
push str.DeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x10
lea edi, [esi + 0x8c]
push edi
push 0x5beff4
push 0x17
push 0
push 0x5be448
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, 0x632598
test eax, eax
jns 0x45640c
push str.Unable_to_create_BlackBerry_Device_Manager_instance
push 1
push str.DeviceManager
push 0x121
push str.DeviceManager.cpp
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x10
jmp 0x45660c
push str.Create_BlackBerry_Device_Manager_instance__FINISHED
push 0xa
push str.DeviceManager
push 0x125
push str.DeviceManager.cpp
call fcn.004deb10
push eax
call fcn.004e2af0
mov ecx, dword [0x632aec]
lea eax, [esi + 0x18]
push ecx
push eax
call fcn.00471620
add esp, 0x18
mov dword [esi + 0xc4], eax
test eax, eax
je 0x456499
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
test al, al
jne 0x4564c2
push str.Error_starting_modem_controller
push 1
push str.DeviceManager
push 0x12d
push str.DeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
mov ecx, dword [esi + 0xc4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esp, 0x10
call eax
mov dword [esi + 0xc4], 0
jmp 0x4564c2
push str.Error_creating_modem_controller
push 1
push str.DeviceManager
push 0x134
push str.DeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x10
lea ebx, [esi + 0x94]
push ebx
mov dword [ebp - method.CAutoCriticalSection.virtual_0], vtable.CAutoCriticalSection.0
mov dword [ebp - 0x1bc], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [esi + 0x90]
push edx
push 0x6171f8
push eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 4], 9
call eax
mov dword [ebp - 0x1a0], 0
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [ebp - 0x1a0]
push edx
push eax
mov eax, dword [ecx + 0xc]
mov byte [ebp - 4], 0xa
call eax
test eax, eax
mov eax, dword [ebp - 0x1a0]
jns 0x456541
mov byte [ebp - 4], 9
test eax, eax
je 0x456535
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4567e5
mov ecx, dword [eax]
lea edx, [ebp - 0x1b0]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
xor edi, edi
cmp dword [ebp - 0x1b0], edi
jbe 0x4565e5
mov edi, edi
mov dword [ebp - 0x1a4], 0
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax]
lea edx, [ebp - 0x1a4]
push edx
push edi
push eax
mov eax, dword [ecx + 0x10]
mov byte [ebp - 4], 0xb
call eax
test eax, eax
jns 0x4565b4
push eax
push str.COM_ERROR:_CODE:__X
push 1
push str.DeviceManager
push 0x14a
push str.DeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x14
jmp 0x4565c2
mov eax, dword [ebp - 0x1a4]
push eax
mov ecx, esi
call fcn.00453a20
mov eax, dword [ebp - 0x1a4]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x4565d8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
inc edi
cmp edi, dword [ebp - 0x1b0]
jb 0x456560
mov eax, dword [ebp - 0x1a0]
mov byte [ebp - 4], 9
test eax, eax
je 0x4565fb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or ebx, 0xffffffff
push str.Create_Bluetooth_Manager_instance
push 0xa
push str.DeviceManager
push 0x152
push str.DeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x10
mov dword [esi + 0xf8], 0
call fcn.004e6650
test al, al
jne 0x45675f
push str.Creating_bluetooth_manager.
push 0xa
push str.DeviceManager
push 0x158
push str.DeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x10
push str.desktop_bluetooth.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0xf8], eax
test eax, eax
je 0x45675f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.initialize_logger
push eax
call edi
test eax, eax
je 0x4566aa
push 0x6171fc
call eax
add esp, 4
mov eax, dword [esi + 0xf8]
push str.create_bluetooth_manager
push eax
call edi
test eax, eax
je 0x45675f
lea edi, [esi + 0xc8]
lea ecx, [esi + 0x40]
push edi
push ecx
call eax
add esp, 8
test eax, eax
je 0x456700
push eax
push str.Error_creating_bluetooth_manager._Error:__X
push 1
push str.DeviceManager
push 0x16a
push str.DeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x14
jmp 0x45675f
mov ecx, dword [esi + 0x10c]
mov word [ecx + 0x24], bx
mov ecx, esi
call fcn.00446630
test al, al
je 0x45675f
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
je 0x45675f
push eax
push str.Error_starting_bluetooth_manager._Error:__X
push 1
push str.DeviceManager
push 0x174
push str.DeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
mov ecx, dword [edi]
add esp, 0x14
test ecx, ecx
je 0x45675f
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov dword [edi], 0
push str.Create_Bluetooth_Manager_instance_FINISHED
push 0xa
push str.DeviceManager
push 0x17d
push str.DeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x10
mov ecx, 0x632a90
call fcn.004f3b20
test al, al
jne 0x4567bf
push str.User_Activity_Monitor_startup_failed.
push 1
push str.DeviceManager
push 0x182
push str.DeviceManager.cpp
mov ecx, 0x632598
call fcn.004deb10
push eax
call fcn.004e2af0
add esp, 0x10
call fcn.004434c0
mov byte [esi + 0xd0], al
lea eax, [esi + 0x1c]
push eax
mov dword [eax + 0x20], 0x1388
call fcn.00509db0
add esp, 4
lea ecx, [esi + 0x44]
call fcn.0050a3f0
xor eax, eax
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.00558b78
mov esp, ebp
pop ebp
ret