Function at 0x4034b0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x417018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x60]
mov dword [esp + 0x54], 1
call sub.MFC42.DLL_CString::MakeUpper
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CString::MakeUpper
push 0x422d40
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x54], 2
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x403705
lea ecx, [esp + 0x30]
call fcn.004160f0
push 0
push 0x421334
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 3
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4036f5
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov edx, dword [esp + 0x30]
push 0x10
lea ecx, [esp + 0x34]
mov ebp, eax
call dword [edx + 0x40]
cmp eax, 1
jne 0x4036ed
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x42128c
push eax
mov byte [esp + 0x5c], 4
call edi
add esp, 8
test eax, eax
je 0x4035ae
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x421330
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4035ae
mov bl, 1
jmp 0x4035b0
xor bl, bl
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 3
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4036ed
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x30]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 5
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
je 0x4036ed
mov ecx, dword [esp + 0x10]
push str.AUTODESK
push ecx
call edi
add esp, 8
test eax, eax
jne 0x4036ab
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [0x422d60]
xor esi, esi
test eax, eax
jle 0x4036ed
push ecx
mov ecx, 0x422d58
mov edx, esp
mov dword [esp + 0x2c], esp
push esi
push edx
call fcn.00403e90
lea eax, [esp + 0x60]
push 0x42108c
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x64], 6
call sub.MFC42.DLL_operator_2
push ecx
lea ecx, [esp + 0x18]
mov edx, esp
mov dword [esp + 0x34], esp
push ecx
push eax
push edx
mov byte [esp + 0x68], 7
call sub.MFC42.DLL_operator
mov byte [esp + 0x5c], 8
call fcn.004034b0
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x422d60]
inc esi
cmp esi, eax
jl 0x403640
jmp 0x4036ed
lea edx, [esp + 0x5c]
push 0x42108c
lea eax, [esp + 0x28]
push edx
push eax
call sub.MFC42.DLL_operator_2
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
push eax
push ecx
mov byte [esp + 0x64], 9
call sub.MFC42.DLL_operator
call fcn.00403960
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], 3
call sub.MFC42.DLL_CString::CString
test ebp, ebp
jne 0x403538
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 2
call sub.MFC42.DLL_CFileFind::CFileFind
jmp 0x40370b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
mov dword [esp + 0x54], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x48
ret