Function at 0x402196
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x407f8c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0xd28
push ebx
push esi
push edi
mov dword [ebp - 0x2c], 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 0x4022b3
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
push str._c_c_c_c_c_c_c_c_c_c_c_c_c_c_c_c_c_c_c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004078d0
push 0x71
push 0x2f
push 0x20
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 dword [ebp - 0x20]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x54
lea eax, [ebp - 0x1c]
push 0x40c42c
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MFC42.DLL_operator
push 0x40c428
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
call sub.MFC42.DLL_operator_1
push dword [eax]
lea eax, [ebp - 0xd34]
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], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x2c]
push ebx
push ebx
lea eax, [ebp - 0xd34]
push ebx
push eax
push ebx
call fcn.004067bd
test eax, eax
jne 0x4022bb
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
mov dword [ebp - 4], esi
jmp 0x402497
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp + 8]
push 0x40c424
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 5
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.004078ee
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
push 0x40c364
push 0x40c420
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea eax, [ebp - 0x17c]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
call sub.MFC42.DLL_CString::CString_1
cmp dword [ebp - 0x18], esi
mov byte [ebp - 4], 7
je 0x402464
mov edi, dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
mov esi, 0x40c41c
lea eax, [ebp - 0x150]
lea ecx, [ebp - 0x10]
push eax
call fcn.004078d0
push 0x40c418
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x40243e
push 0x40c414
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x40243e
test byte [ebp - 0x17c], 0x10
lea eax, [ebp + 8]
push esi
push eax
je 0x40240e
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_operator_1
push ecx
lea edx, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x34], esp
push edx
push eax
push ecx
mov byte [ebp - 4], 8
call sub.MFC42.DLL_operator
mov ecx, dword [ebp - 0x2c]
call fcn.00402196
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x30]
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
push ecx
push eax
lea eax, [ebp - 0x38]
push eax
call sub.MFC42.DLL_operator
push esi
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0xa
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 - 0x38]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
jmp 0x402439
lea eax, [ebp - 0x3c]
push eax
call sub.MFC42.DLL_operator_1
push ecx
lea edx, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x34], esp
push edx
push eax
push ecx
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_operator
call fcn.00402178
pop ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
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 0x40233b
push dword [ebp - 0x18]
call fcn.0040216d
pop ecx
push dword [ebp + 8]
call edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
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