Function at 0x4076d0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4117e7
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x41a014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_8182]
movzx eax, al
test eax, eax
jne 0x407726
cmp dword [ebp + 0xc], 0
jne 0x407751
mov dword [ebp - 0x18], 0x57
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x34]
jmp 0x407b41
lea ecx, [ebp - 0xb0]
call dword [sym.imp.mfc140u.dll_CFileFind::CFileFind]
mov byte [ebp - 4], 1
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x24], 1
push 0x415518
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
mov byte [ebp - 4], 2
push 0x41551c
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
mov byte [ebp - 4], 3
push 1
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
push 0x415520
call fcn.004086a0
add esp, 8
mov byte [ebp - 0x12], al
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
movzx edx, byte [ebp - 0x12]
test edx, edx
je 0x4077df
mov eax, dword [ebp + 8]
push eax
push 0x415524
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
add esp, 0xc
jmp 0x4077f5
mov edx, dword [ebp + 8]
push edx
push 0x415534
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
add esp, 0xc
mov byte [ebp - 4], 4
push 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
lea ecx, [ebp - 0xb0]
call dword [sym.imp.mfc140u.dll_CFileFind::FindFile]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jne 0x407841
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x11], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x44], edx
push 0x418038
lea eax, [ebp - 0x44]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
cmp dword [ebp - 0x24], 0
je 0x407aab
lea ecx, [ebp - 0xb0]
call dword [sym.imp.mfc140u.dll_CFileFind::FindNextFileW]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0xb0]
call fcn.00409430
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x4079ea
push 0x41553c
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb0]
call dword [sym.imp.mfc140u.dll_CFileFind::IsDots]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x4078b4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x407841
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0xb0]
call dword [sym.imp.mfc140u.dll_CFileFind::GetFileName]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
push edx
push 0x415540
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x415548
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x74]
push edx
call fcn.004086d0
add esp, 0xc
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.00408790
add esp, 0xc
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x70]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xb0]
call fcn.00409410
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x4079aa
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x4079aa
mov eax, dword [ebp - 0x28]
and eax, 0xfffffffe
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x11]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0xb8], esp
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0x30]
call fcn.004076d0
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x407aa6
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0xb0]
call dword [sym.imp.mfc140u.dll_CFileFind::GetFilePath]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
push edx
push 0x41554c
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xb0]
call fcn.00409410
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x407a76
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ecx
mov ecx, esp
mov dword [ebp - 0xbc], esp
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0x30]
call fcn.00407b60
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x18], eax
jmp 0x407841
lea ecx, [ebp - 0xb0]
call dword [sym.imp.mfc140u.dll_CFileFind::Close]
jmp 0x407abf
mov dword [ebp - 4], 3
jmp 0x407acf
push ecx
mov ecx, esp
mov dword [ebp - 0xc4], esp
lea edx, [ebp + 8]
push edx
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0x30]
call fcn.00407c70
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x11]
mov byte [eax], cl
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb0]
call dword [0x412370]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8