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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485df1
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x4c0e0c]
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
mov ebx, ecx
mov dword [ebp - 0x128], ebx
call sub.mfc140.dll_Ordinal_10421
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x11c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_void_]
push str.Devices_
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], 0
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_char_const__]
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x15c]
call sub.mfc140.dll_Ordinal_503
push 0
push 0x496c18
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 1
call sub.mfc140.dll_Ordinal_4705
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x42c76a
mov edi, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
lea ecx, [ebp - 0x15c]
call sub.mfc140.dll_Ordinal_4725
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x140], eax
call sub.mfc140.dll_Ordinal_8140
test eax, eax
jne 0x42c757
mov edx, dword [ebp - 0x15c]
lea ecx, [ebp - 0x15c]
push 0x10
call dword [edx + 0x40]
test eax, eax
je 0x42c757
lea ecx, [ebp - 0x194]
call sub.mfc140.dll_Ordinal_503
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x15c]
call sub.mfc140.dll_Ordinal_5562
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 3
push eax
call fcn.00403190
push str.Presets.xml
push eax
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 4
push eax
call fcn.00403100
add esp, 0x18
push 0
mov ecx, eax
mov byte [ebp - 4], 5
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
lea ecx, [ebp - 0x194]
call sub.mfc140.dll_Ordinal_4705
lea ecx, [ebp - 0x12c]
mov esi, eax
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x130]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140.dll_Ordinal_1044]
test esi, esi
je 0x42c748
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x15c]
call sub.mfc140.dll_Ordinal_5562
mov ecx, eax
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x118]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_void_]
mov esi, dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_char_const__]
lea ecx, [ebp - 0x118]
push str.Devices
mov byte [ebp - 4], 9
call esi
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x118]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_class_AString_const__]
push str.Presets
lea ecx, [ebp - 0x118]
call esi
push str..xml
lea ecx, [ebp - 0x118]
call esi
lea ecx, [ebp - 0x178]
call sub.mfc140.dll_Ordinal_503
push 0
push dword [ebp - 0x118]
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 0xa
call sub.mfc140.dll_Ordinal_4705
xor esi, esi
test eax, eax
je 0x42c729
test esi, esi
jne 0x42c702
lea ecx, [ebp - 0x178]
call sub.mfc140.dll_Ordinal_4725
mov edx, dword [ebp - 0x178]
lea ecx, [ebp - 0x178]
push 0x10
mov ebx, eax
call dword [edx + 0x40]
test eax, eax
jne 0x42c6f6
lea ecx, [ebp - 0x178]
call sub.mfc140.dll_Ordinal_8140
test eax, eax
jne 0x42c6f6
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x178]
call sub.mfc140.dll_Ordinal_5562
mov ecx, eax
mov byte [ebp - 4], 0xb
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
lea ecx, [ebp - 0x120]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0xa
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 0x120]
mov eax, str._Default_Job_Properties_.xml
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x42c6e0
test dl, dl
je 0x42c6dc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x42c6e0
add ecx, 2
add eax, 2
test dl, dl
jne 0x42c6c0
xor eax, eax
jmp 0x42c6e5
sbb eax, eax
or eax, 1
lea ecx, [ebp - 0x120]
test eax, eax
je 0x42c6f4
mov esi, 1
call edi
test ebx, ebx
jne 0x42c633
test esi, esi
je 0x42c723
push dword [ebp - 0x124]
mov ebx, dword [ebp - 0x128]
push 0
push 0x143
push dword [ebx + 0xe4]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x42c729
mov ebx, dword [ebp - 0x128]
lea ecx, [ebp - 0x178]
call sub.mfc140.dll_Ordinal_1142
lea ecx, [ebp - 0x118]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
lea ecx, [ebp - 0x124]
call edi
lea ecx, [ebp - 0x194]
mov byte [ebp - 4], 1
call sub.mfc140.dll_Ordinal_1142
cmp dword [ebp - 0x140], 0
jne 0x42c4a2
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x14e
push dword [ebx + 0xe4]
call esi
mov ecx, ebx
call fcn.0042cbc0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
push 0
push 0x190
push dword [ebx + 0x164]
call esi
xor edx, edx
mov ecx, ebx
test eax, eax
setg dl
push edx
push 1
call sub.mfc140.dll_Ordinal_5401
mov ecx, eax
call sub.mfc140.dll_Ordinal_4468
lea ecx, [ebp - 0x15c]
call sub.mfc140.dll_Ordinal_1142
lea ecx, [ebp - 0x11c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
mov eax, 1
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.0047ff18
mov esp, ebp
pop ebp
ret