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

Disassembly:
push 0xffffffffffffffff
push 0x411dfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x18c], 0
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
push 0
mov byte [esp + 0x194], 1
call edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, eax
push esi
push 8
push ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
push ebp
push esi
mov dword [esp + 0x34], ebp
call edi
mov edi, dword [esp + 0x194]
mov esi, ebp
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40cf68
test cl, cl
je 0x40cf64
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40cf68
add eax, 2
add esi, 2
test cl, cl
jne 0x40cf44
xor eax, eax
jmp 0x40cf6d
sbb eax, eax
sbb eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40cf82
push edi
call esi
test eax, eax
je 0x40d2b4
lea eax, [esp + 0x44]
push eax
push 0x4172e8
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edi
call sub.MFC42.DLL_CString::CString_2
cmp edi, 0xffffffff
mov byte [esp + 0x18c], 2
je 0x40d296
mov edi, dword [esp + 0x19c]
mov ebp, dword [esp + 0x198]
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x10]
mov esi, 0x4172e4
mov ecx, eax
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x40cffd
test dl, dl
je 0x40cff9
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x40cffd
add ecx, 2
add esi, 2
test dl, dl
jne 0x40cfd9
xor ecx, ecx
jmp 0x40d002
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x40d221
mov esi, 0x4172e0
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40d037
test cl, cl
je 0x40d033
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40d037
add eax, 2
add esi, 2
test cl, cl
jne 0x40d00f
xor eax, eax
jmp 0x40d03c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d221
mov eax, dword [esp + 0x44]
and eax, 0x10
cmp al, 0x10
mov eax, dword [esp + 0x194]
mov ecx, dword [eax - 8]
mov dl, byte [ecx + eax - 1]
jne 0x40d17e
cmp dl, 0x5c
je 0x40d119
lea ecx, [esp + 0x194]
push 0x4172d8
lea edx, [esp + 0x24]
push ecx
push edx
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push ecx
mov bl, 3
push eax
push edx
mov byte [esp + 0x198], bl
call sub.MFC42.DLL_operator_1
mov ecx, dword [edi + 8]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x194], 4
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x38]
mov byte [esp + 0x18c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x18c], 2
call sub.MFC42.DLL_CString::CString
push edi
push ebp
lea eax, [esp + 0x19c]
push 0x5c
lea ecx, [esp + 0x4c]
push eax
push ecx
call sub.MFC42.DLL_operator
push ecx
lea ecx, [esp + 0x1c]
mov edx, esp
mov dword [esp + 0x48], esp
push ecx
push eax
push edx
mov byte [esp + 0x1a4], 5
call sub.MFC42.DLL_operator_1
call fcn.0040ced0
add esp, 0xc
mov byte [esp + 0x18c], 2
lea ecx, [esp + 0x40]
jmp 0x40d21c
lea edx, [esp + 0x10]
lea eax, [esp + 0x194]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call sub.MFC42.DLL_operator_1
mov ecx, dword [edi + 8]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x194], 6
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x28]
mov byte [esp + 0x18c], 2
call sub.MFC42.DLL_CString::CString
push edi
push ebp
push ecx
lea eax, [esp + 0x1c]
mov edx, esp
mov dword [esp + 0x48], esp
lea ecx, [esp + 0x1a0]
push eax
push ecx
push edx
call sub.MFC42.DLL_operator_1
call fcn.0040ced0
add esp, 0xc
jmp 0x40d221
cmp dl, 0x5c
je 0x40d1e5
lea edx, [esp + 0x194]
push 0x4172d8
lea eax, [esp + 0x34]
push edx
push eax
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
mov bl, 7
push eax
push edx
mov byte [esp + 0x198], bl
call sub.MFC42.DLL_operator_1
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x194], 8
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x18]
mov byte [esp + 0x18c], bl
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x18c], 2
lea ecx, [esp + 0x30]
jmp 0x40d21c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x194]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call sub.MFC42.DLL_operator_1
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x194], 9
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov byte [esp + 0x18c], 2
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40cfc0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x34]
push esi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x10]
mov byte [esp + 0x18c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x18c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x194]
mov dword [esp + 0x18c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
jmp 0x40d2de
push ebp
call esi
push ebp
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x10]
mov byte [esp + 0x18c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x18c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x194]
mov dword [esp + 0x18c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x180
ret