Function at 0x4021c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x405d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x64], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x64], 2
call fcn.004057c2
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x68], 3
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
push 1
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 4
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x409528
push eax
call edi
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40226e
push 0x409528
lea ecx, [esp + 0x18]
call fcn.00405828
push 0x409528
lea ecx, [esp + 0x70]
call fcn.00405828
push 0x409524
lea ecx, [esp + 0x18]
call fcn.00405828
mov edx, dword [esp + 0x14]
push 0
push edx
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x402499
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov ebp, eax
mov eax, dword [esp + 0x40]
push 0x10
lea ecx, [esp + 0x44]
call dword [eax + 0x40]
test eax, eax
je 0x402340
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x402340
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x402340
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFileFind::GetFilePath
lea edx, [esp + 0x24]
lea ecx, [esp + 0x40]
push edx
mov byte [esp + 0x68], 5
call sub.MFC42.DLL_CFileFind::GetFileName
push ecx
mov byte [esp + 0x68], 6
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x409480
call fcn.00405858
push 1
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
mov byte [esp + 0x74], 7
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x70], 6
call fcn.004021c0
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 5
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x64], 4
lea ecx, [esp + 0x1c]
jmp 0x40248c
mov edx, dword [esp + 0x40]
push 0x10
lea ecx, [esp + 0x44]
call dword [edx + 0x40]
test eax, eax
jne 0x402491
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x402491
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x64], 8
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x28]
lea ecx, [esp + 0x40]
push eax
mov byte [esp + 0x68], 9
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 0xb
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 9
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
push eax
push 0x2e
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push str..lnk
push eax
call edi
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x402475
push ecx
lea edx, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
mov byte [esp + 0x70], 0xc
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x6c], 9
call fcn.00402540
test eax, eax
je 0x402475
push 0x80000000
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov dword [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00403ef0
lea ecx, [esp + 0x34]
mov byte [esp + 0x64], 8
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x64], 4
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
test ebp, ebp
jne 0x402294
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4024dd
push ecx
lea eax, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x74], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0x70], 0xd
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x6c], 4
call fcn.00403160
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x64], 2
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x6c]
mov byte [esp + 0x64], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x74]
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret 0xc