Function at 0x40164d
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x407918
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x14f8
call fcn.00407200
push ebx
push esi
push edi
mov dword [ebp - 0x28], ecx
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or esi, 0xffffffff
cmp eax, esi
je 0x40174b
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_2
push 0x71
push 0x2f
push 0x20
mov byte [ebp - 4], 1
pop eax
push eax
push 0x73
push 0x2f
push eax
push 0x64
push 0x72
push eax
push 0x63
push 0x2f
push eax
push 0x65
push 0x78
push 0x65
push 0x2e
push 0x64
push 0x6d
push 0x63
lea eax, [ebp - 0x1c]
push str._c_c_c_c_c_c_c_c_c_c_c_c_c_c_c_c_c_c_c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x54
lea eax, [ebp - 0x1c]
push 0x40a054
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MFC42.DLL_operator
push 0x40a050
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call sub.MFC42.DLL_operator_1
push dword [eax]
lea eax, [ebp - 0x1504]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x28]
push ebx
push ebx
lea eax, [ebp - 0x1504]
push ebx
push eax
push ebx
call fcn.004053c5
test eax, eax
jne 0x401753
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], esi
jmp 0x401914
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp + 8]
push 0x40a04c
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 4
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.004070fe
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x17c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
call sub.MFC42.DLL_CString::CString_2
cmp dword [ebp - 0x18], esi
mov byte [ebp - 4], 6
je 0x4018ed
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, 0x40a048
lea eax, [ebp - 0x150]
lea ecx, [ebp - 0x10]
push eax
call fcn.004070f8
push 0x40a044
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x4018c7
push 0x40a040
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x4018c7
test byte [ebp - 0x17c], 0x10
lea eax, [ebp + 8]
push esi
push eax
je 0x401890
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_operator_1
push ecx
lea edx, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push edx
push eax
push ecx
mov byte [ebp - 4], 7
call sub.MFC42.DLL_operator
mov ecx, dword [ebp - 0x28]
call fcn.0040164d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x38]
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.MFC42.DLL_operator
push esi
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 9
push eax
call sub.MFC42.DLL_operator_1
push dword [eax]
call edi
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
jmp 0x4018c2
lea eax, [ebp - 0x30]
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
push ecx
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MFC42.DLL_operator
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x17c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4017bd
push dword [ebp - 0x18]
call fcn.00401642
pop ecx
push dword [ebp + 8]
call edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4