Function at 0x405302
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x42a9f3
call sub.MSVCRT.dll__EH_prolog
sub esp, 0xa8
movsx eax, byte [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp eax, 0x4e
mov esi, ecx
mov byte [ebp - 0xd], 1
jg 0x405816
je 0x405785
sub eax, 0x42
je 0x4056ee
dec eax
je 0x405657
dec eax
je 0x4055c0
dec eax
dec eax
je 0x40552f
sub eax, 3
je 0x405498
sub eax, 3
je 0x405401
dec eax
jne 0x405842
mov eax, dword [0x441f30]
mov eax, dword [eax - 8]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x405383
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x4053a8
lea eax, [ebp + 8]
mov ecx, 0x441ef8
push eax
call fcn.00405f2f
push dword [eax]
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp + 8]
jmp 0x405b84
push 0x42ebd8
lea eax, [ebp - 0x68]
push 0x441764
push eax
call sub.MFC42.DLL_operator_2
push 0x439e08
push eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 6
push eax
call sub.MFC42.DLL_operator_2
add esi, 0x128
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
jmp 0x405be5
mov eax, dword [0x441f14]
mov eax, dword [eax - 8]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x40541a
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x40543f
lea eax, [ebp - 0x20]
mov ecx, 0x441ef8
push eax
call fcn.00403db2
push dword [eax]
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
jmp 0x405b84
push 0x42ebd8
lea eax, [ebp - 0x28]
push 0x441764
push eax
call sub.MFC42.DLL_operator_2
push 0x439e78
push eax
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 0x14
push eax
call sub.MFC42.DLL_operator_2
add esi, 0x128
push eax
mov ecx, esi
mov byte [ebp - 4], 0x15
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
jmp 0x405be5
mov eax, dword [0x441f2c]
mov eax, dword [eax - 8]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x4054b1
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x4054d6
lea eax, [ebp - 0x70]
mov ecx, 0x441ef8
push eax
call fcn.00405f14
push dword [eax]
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
jmp 0x405b84
push 0x42ebd8
lea eax, [ebp - 0xb0]
push 0x441764
push eax
call sub.MFC42.DLL_operator_2
push 0x439e68
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0x12
push eax
call sub.MFC42.DLL_operator_2
add esi, 0x128
push eax
mov ecx, esi
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
jmp 0x405be5
mov eax, dword [0x441f28]
mov eax, dword [eax - 8]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x405548
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x40556d
lea eax, [ebp - 0x38]
mov ecx, 0x441ef8
push eax
call fcn.00405ef9
push dword [eax]
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x38]
jmp 0x405b84
push 0x42ebd8
lea eax, [ebp - 0x40]
push 0x441764
push eax
call sub.MFC42.DLL_operator_2
push 0x439e48
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 0xe
push eax
call sub.MFC42.DLL_operator_2
add esi, 0x128
push eax
mov ecx, esi
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
jmp 0x405be5
mov eax, dword [0x441f20]
mov eax, dword [eax - 8]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x4055d9
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x405604
lea eax, [ebp - 0x98]
mov ecx, 0x441ef8
push eax
call fcn.00405ede
push dword [eax]
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x98]
jmp 0x405b84
push 0x42ebd8
lea eax, [ebp - 0x80]
push 0x441764
push eax
call sub.MFC42.DLL_operator_2
push 0x439e28
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0xa
push eax
call sub.MFC42.DLL_operator_2
add esi, 0x128
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
jmp 0x405be5
mov eax, dword [0x441f1c]
mov eax, dword [eax - 8]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x405670
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x405695
lea eax, [ebp - 0x50]
mov ecx, 0x441ef8
push eax
call fcn.00405ec3
push dword [eax]
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x50]
jmp 0x405b84
push 0x42ebd8
lea eax, [ebp - 0x58]
push 0x441764
push eax
call sub.MFC42.DLL_operator_2
push 0x439e18
push eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 8
push eax
call sub.MFC42.DLL_operator_2
add esi, 0x128
push eax
mov ecx, esi
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
jmp 0x405be5
mov eax, dword [0x441f18]
mov eax, dword [eax - 8]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x405707
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x405732
lea eax, [ebp - 0x88]
mov ecx, 0x441ef8
push eax
call fcn.00405ea8
push dword [eax]
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x88]
jmp 0x405b84
push 0x42ebd8
lea eax, [ebp - 0x14]
push 0x441764
push eax
call sub.MFC42.DLL_operator_2
push 0x439de8
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 2
push eax
call sub.MFC42.DLL_operator_2
add esi, 0x128
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
jmp 0x405be5
mov eax, dword [0x441f34]
mov eax, dword [eax - 8]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x40579e
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x4057c3
lea eax, [ebp - 0x18]
mov ecx, 0x441ef8
push eax
call fcn.00405f4a
push dword [eax]
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
jmp 0x405b84
push 0x42ebd8
lea eax, [ebp - 0x24]
push 0x441764
push eax
call sub.MFC42.DLL_operator_2
push 0x439e38
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0xc
push eax
call sub.MFC42.DLL_operator_2
add esi, 0x128
push eax
mov ecx, esi
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
jmp 0x405be5
sub eax, 0x50
je 0x405b45
sub eax, 3
je 0x405aa2
dec eax
je 0x405a0b
dec eax
je 0x40597f
dec eax
je 0x4058ee
sub eax, 4
je 0x40585d
mov ecx, dword [0x43b000]
push 2
push ebx
push 0x42ec10
call fcn.0041ae3d
mov byte [ebp - 0xd], bl
jmp 0x405bf3
mov eax, dword [0x441f48]
mov eax, dword [eax - 8]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x405876
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x40589b
lea eax, [ebp - 0x2c]
mov ecx, 0x441ef8
push eax
call fcn.00405fec
push dword [eax]
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x2c]
jmp 0x405b84
push 0x42ebd8
lea eax, [ebp - 0x3c]
push 0x441764
push eax
call sub.MFC42.DLL_operator_2
push 0x439e58
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0x10
push eax
call sub.MFC42.DLL_operator_2
add esi, 0x128
push eax
mov ecx, esi
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
jmp 0x405be5
mov eax, dword [0x441f3c]
mov eax, dword [eax - 8]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x405907
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x40592c
lea eax, [ebp - 0x44]
mov ecx, 0x441ef8
push eax
call fcn.00405f80
push dword [eax]
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x44]
jmp 0x405b84
push 0x42ebd8
lea eax, [ebp - 0x54]
push 0x441764
push eax
call sub.MFC42.DLL_operator_2
push 0x439e88
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0x16
push eax
call sub.MFC42.DLL_operator_2
add esi, 0x128
push eax
mov ecx, esi
mov byte [ebp - 4], 0x17
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x16
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
jmp 0x405be5
mov eax, dword [0x441efc]
mov eax, dword [eax - 8]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x405998
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x4059bd
lea eax, [ebp - 0x5c]
mov ecx, 0x441ef8
push eax
call fcn.00405fd1
push dword [eax]
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x5c]
jmp 0x405b84
push 0x42ebd8
lea eax, [ebp - 0x6c]
push 0x441764
push eax
call sub.MFC42.DLL_operator_2
push 0x439dd8
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 4], ebx
push eax
call sub.MFC42.DLL_operator_2
add esi, 0x128
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
jmp 0x405be5
mov eax, dword [0x441f40]
mov eax, dword [eax - 8]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x405a24
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x405a49
lea eax, [ebp - 0x74]
mov ecx, 0x441ef8
push eax
call fcn.00405f9b
push dword [eax]
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x74]
jmp 0x405b84
push 0x42ebd8
lea eax, [ebp - 0x84]
push 0x441764
push eax
call sub.MFC42.DLL_operator_2
push 0x439e98
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], 0x18
push eax
call sub.MFC42.DLL_operator_2
add esi, 0x128
push eax
mov ecx, esi
mov byte [ebp - 4], 0x19
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x18
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
jmp 0x405be5
mov eax, dword [0x441f38]
mov eax, dword [eax - 8]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x405abb
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x405ae6
lea eax, [ebp - 0x8c]
mov ecx, 0x441ef8
push eax
call fcn.00405f65
push dword [eax]
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x8c]
jmp 0x405b84
push 0x42ebd8
lea eax, [ebp - 0x9c]
push 0x441764
push eax
call sub.MFC42.DLL_operator_2
push 0x439df8
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 4], 4
push eax
call sub.MFC42.DLL_operator_2
add esi, 0x128
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
jmp 0x405be5
mov eax, dword [0x441f44]
mov eax, dword [eax - 8]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x405b5e
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x405b8b
lea eax, [ebp - 0xa4]
mov ecx, 0x441ef8
push eax
call fcn.00405fb6
push dword [eax]
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0xa4]
call sub.MFC42.DLL_CString::CString
jmp 0x405bf3
push 0x42ebd8
lea eax, [ebp - 0xb4]
push 0x441764
push eax
call sub.MFC42.DLL_operator_2
push 0x439ea8
push eax
lea eax, [ebp - 0xac]
mov dword [ebp - 4], 0x1a
push eax
call sub.MFC42.DLL_operator_2
add esi, 0x128
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1b
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0x1a
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call sub.MFC42.DLL_CString::CString
push ebx
push ebx
push dword [esi]
call sub.MFC42.DLL_AfxMessageBox_1
cmp byte [ebp - 0xd], bl
je 0x405c73
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call sub.MSVCRT.dll_strlen
pop ecx
mov byte [eax + edi - 1], bl
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 8], eax
je 0x405c59
push ebx
lea eax, [ebp + 8]
push ebx
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x40
push str.Error
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 0xd], bl
jmp 0x405c73
push edi
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 0x439ec0
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
cmp edi, ebx
je 0x405c7e
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8