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

Disassembly:
push 0xffffffffffffffff
push 0x10058867
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x1006e020]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x25c]
mov ecx, dword [ebp + 0x16c]
mov esi, dword [ecx + 0x20c]
mov eax, dword [esp + 0x260]
mov edx, dword [0x1006eb44]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], edx
je 0x10048ec1
mov eax, esi
shr eax, 0x10
jne 0x10048e93
movzx eax, si
push eax
lea ecx, [esp + 0x18]
call fcn.10013a10
jmp 0x10048ec1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, ebx
je 0x10048ec1
mov ecx, edi
lea edx, [esp + 0x14]
call fcn.10011c80
test eax, eax
je 0x10048ec1
mov edx, dword [esp + 0x14]
lea ecx, [edi + edi]
push ecx
push esi
push edx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x1c]
mov dword [esp + 0x254], ebx
mov ecx, dword [esp + 0x14]
push str.ServicePacks
push eax
call fcn.10049e10
add esp, 8
mov edi, eax
lea eax, [esp + 0x14]
mov byte [esp + 0x254], 1
call fcn.10015ac0
mov byte [esp + 0x254], 0
mov eax, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10048f28
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x10048f28
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push str.patchlist.npl
push edx
call fcn.10049e10
add esp, 8
mov edi, eax
lea eax, [esp + 0x14]
mov byte [esp + 0x254], 2
call fcn.10015ac0
mov byte [esp + 0x254], 0
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10048f82
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x10048f82
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp + 0x2c8]
lea edx, [esp + 0x20]
push str.PatchMgr.dll
push edx
call fcn.10049e10
add esp, 8
push 8
mov byte [esp + 0x258], 3
mov eax, dword [esp + 0x24]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [esp + 0x3c], edi
jne 0x10049002
mov eax, dword [esp + 0x20]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10048fe4
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x10048fe4
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x1004934d
lea esi, [eax - 0xc]
push esi
call ebx
jmp 0x10049340
mov edx, dword [ebp + 0x2b8]
cmp dword [edx - 8], 0
lea esi, [ebp + 0x2b8]
jne 0x1004902b
push str.http:__updates.autodesk.com_liveupdate_GetAvailableContent
push str.http:__updates.autodesk.com_liveupdate_GetAvailableContent
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
call fcn.100158a0
mov eax, dword [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp + 0x170]
mov esi, dword [ecx + 0x134]
test esi, esi
mov dword [esp + 0x38], eax
lea edi, [ebp + 0x2c4]
jne 0x10049055
xor eax, eax
jmp 0x1004905c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
mov ebx, eax
mov esi, edi
call fcn.100158a0
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push edx
push eax
call ebx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x2bc]
mov ecx, dword [eax - 8]
push ecx
push eax
call ebx
cmp dword [ebp + 0x2c0], 1
mov dword [esp + 0x34], eax
lea eax, [ebp + 0x2b8]
mov dword [esp + 0x1c], 0
mov esi, 0x100611b8
push eax
jne 0x1004913c
lea edx, [esp + 0x1c]
push edx
call fcn.100170d0
push eax
lea eax, [esp + 0x34]
push eax
mov esi, str.preview1
mov byte [esp + 0x25c], 4
call fcn.100170d0
mov eax, dword [eax]
mov ecx, dword [eax - 8]
push ecx
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x10049109
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10049109
mov eax, dword [esp + 0x30]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov byte [esp + 0x254], 3
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10049186
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10049186
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x10049186
lea eax, [esp + 0x1c]
push eax
call fcn.100170d0
mov eax, dword [eax]
mov ecx, dword [eax - 8]
push ecx
push eax
call ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x10049180
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10049180
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esp + 0x40]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x100492b6
cmp eax, 0x104
ja 0x100492b6
mov eax, dword [ebp + 0x2c8]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call esi
test eax, eax
jne 0x100491ff
mov eax, dword [ebp + 0x16c]
lea ecx, [esp + 0x18]
call fcn.100139b0
mov edx, dword [eax]
mov eax, dword [ebp + 4]
push 0x30
push edx
push str.SetCurrentDirectory_failed
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x18]
call fcn.10015b40
lea esi, [esp + 0x20]
call fcn.10015b40
lea esi, [esp + 0x14]
call fcn.10015b40
jmp 0x1004934d
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10049235
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x34]
push ecx
push 0
call eax
add esp, 0x14
mov edi, eax
jmp 0x10049239
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x40]
push edx
call esi
test eax, eax
jne 0x10049270
mov eax, dword [ebp + 0x16c]
lea ecx, [esp + 0x24]
call fcn.100139b0
mov eax, dword [eax]
mov ecx, dword [ebp + 4]
push 0x30
push eax
push str.SetCurrentDirectory_failed
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x24]
jmp 0x100491e3
mov edx, dword [esp + 0x28]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edx
call esi
mov eax, dword [esp + 0x34]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov edx, dword [esp + 0x2c]
push edx
call esi
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esi, [esp + 0x20]
call fcn.10015b40
lea esi, [esp + 0x14]
call fcn.10015b40
mov eax, edi
jmp 0x1004934f
mov eax, dword [ebp + 0x16c]
lea ecx, [esp + 0x18]
call fcn.100139b0
mov ecx, dword [eax]
mov edx, dword [ebp + 4]
push 0x30
push ecx
push str.GetCurrentDirectory_failed
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10049302
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10049302
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x20]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x1004932b
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x1004932b
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x1004934d
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x1004934d
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.10056d50
add esp, 0x244
ret 8