Function at 0x479ad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5ce0d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x20], 0
push eax
call fcn.00479330
test eax, eax
je 0x479d80
cmp eax, 1
push edi
jne 0x479b53
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x10]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x2c]
add eax, 0xfffffffd
push eax
push edx
call sub.mfc42u.dll_CString::Left
lea edi, [esi + 0x3b8]
push eax
mov ecx, edi
mov byte [esp + 0x28], 1
call sub.mfc42u.dll_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call sub.mfc42u.dll_CString::CString
push 0x61c384
mov ecx, edi
call fcn.005c0e5a
jmp 0x479b63
lea eax, [esp + 0x2c]
lea ecx, [esi + 0x3b8]
push eax
call sub.mfc42u.dll_CString::operator_2
push ebp
lea ecx, [esp + 0xc]
call sub.mfc42u.dll_CString::CString_3
push 0x61cf38
mov byte [esp + 0x2c], 2
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
lea ecx, [esp + 0xc]
push eax
call fcn.005c0e5a
lea ecx, [esi + 0x398]
push ecx
lea ecx, [esp + 0x10]
call sub.mfc42u.dll_CString::operator_1
push 0x61cf28
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
lea ecx, [esp + 0xc]
push eax
call fcn.005c0e5a
lea edx, [esi + 0x39c]
lea ecx, [esp + 0xc]
push edx
call sub.mfc42u.dll_CString::operator_1
push 0x61cf18
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
lea ecx, [esp + 0xc]
push eax
call fcn.005c0e5a
lea eax, [esi + 0x394]
lea ecx, [esp + 0xc]
push eax
call sub.mfc42u.dll_CString::operator_1
push 0x61cf08
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
lea ecx, [esp + 0xc]
push eax
call fcn.005c0e5a
lea ecx, [esi + 0x3ac]
push ecx
lea ecx, [esp + 0x10]
call sub.mfc42u.dll_CString::operator_1
push 0x61cef8
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
lea ecx, [esp + 0xc]
push eax
call fcn.005c0e5a
lea edx, [esi + 0x3a8]
lea ecx, [esp + 0xc]
push edx
call sub.mfc42u.dll_CString::operator_1
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
push 0x510
call sub.mfc42u.dll_CWnd::GetDlgItem
mov ecx, eax
call sub.mfc42u.dll_CWnd::SetWindowTextW
mov ecx, dword [esp + 0x30]
mov edi, dword [esi + 0x3c0]
lea edx, [esp + 0x14]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x30]
add eax, 0xfffffffd
push eax
push edx
call sub.mfc42u.dll_CString::Left
push 0x61cef0
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x30], 3
push eax
call sub.mfc42u.dll_operator
mov byte [esp + 0x28], 5
lea ecx, [esp + 0x14]
call sub.mfc42u.dll_CString::CString
mov ecx, dword [esp + 0x30]
mov ebp, dword [sym.imp.kernel32.dll_GetFileAttributesW]
push ecx
call ebp
cmp eax, 0xffffffff
je 0x479cb5
mov edx, dword [esp + 0x10]
push 0x4bc
push edx
call fcn.00479960
add esp, 8
jmp 0x479d25
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
mov eax, dword [eax - 8]
add eax, 0xfffffffd
push eax
push ecx
lea ecx, [esp + 0x38]
call sub.mfc42u.dll_CString::Left
push 0x61cee8
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x34], 6
call sub.mfc42u.dll_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 7
call sub.mfc42u.dll_CString::operator_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 6
call sub.mfc42u.dll_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 5
call sub.mfc42u.dll_CString::CString
mov eax, dword [esp + 0x10]
push eax
call ebp
cmp eax, 0xffffffff
je 0x479d27
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.gdi32.dll_GetEnhMetaFileW]
mov edi, eax
test edi, edi
pop ebp
jne 0x479d32
mov edi, dword [esi + 0x3c0]
push 0x44d
mov ecx, esi
call sub.mfc42u.dll_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
push edi
push 3
push 0x172
push edx
call dword [sym.imp.user32.dll_SendMessageW]
test eax, eax
pop edi
je 0x479d64
cmp eax, dword [esi + 0x3c0]
je 0x479d64
push eax
call dword [sym.imp.gdi32.dll_DeleteEnhMetaFile]
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call sub.mfc42u.dll_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call sub.mfc42u.dll_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call sub.mfc42u.dll_CString::CString
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4