Function at 0x405850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x409838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [esp + 0x58]
push edi
mov edi, ecx
push 0x40d564
lea ecx, [esp + 0x10]
push eax
push ecx
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 8]
mov dword [esp + 0x54], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 4]
mov byte [esp + 0x54], 1
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x5c]
push edx
mov byte [esp + 0x58], 2
call fcn.00408cc2
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 3
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 4
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 5
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x405a9c
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x3c]
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x405a8d
mov edx, dword [esp + 0x3c]
push 0x10
lea ecx, [esp + 0x40]
call dword [edx + 0x40]
test eax, eax
jne 0x405a29
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x3c]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
mov ecx, edi
mov byte [esp + 0x6c], 6
call fcn.00405690
test eax, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 5
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x405a8d
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x405a8d
mov edx, dword [esp + 0x68]
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
mov esi, dword [esp + 0x14]
push edx
call ebx
add esp, 4
push eax
push esi
call ebx
add esp, 4
push eax
call fcn.00405b10
add esp, 8
test eax, eax
je 0x405a8d
lea eax, [esp + 0x70]
lea ecx, [esp + 0x3c]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
mov ecx, dword [esp + 0x70]
push 0
push 0x8001
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], 7
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x405a1e
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::GetLength
lea ecx, [esp + 0x2c]
mov esi, eax
call sub.MFC42.DLL_CFile::Close
cmp esi, 0x40000
jbe 0x405a1e
lea edx, [esp + 0x20]
lea ecx, [esp + 0x3c]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
mov ecx, ebp
mov byte [esp + 0x64], 8
call fcn.00408d0a
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 7
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x60], 5
lea ecx, [esp + 0x70]
jmp 0x405a88
mov eax, dword [esp + 0x3c]
push 0x10
lea ecx, [esp + 0x40]
call dword [eax + 0x40]
test eax, eax
je 0x405a8d
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::GetFileName
push 0x5c
lea edx, [esp + 0x70]
push eax
push edx
mov byte [esp + 0x6c], 9
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 0xb
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x68]
push eax
push ecx
lea edx, [esp + 0x74]
push ebp
push edx
mov ecx, edi
call fcn.00405850
mov byte [esp + 0x60], 5
lea ecx, [esp + 0x6c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4058f1
pop esi
pop ebp
pop ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 4
call fcn.00408d5e
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 3
call fcn.00408d58
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x54], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x54], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x54], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x4c]
pop edi
mov dword fs:[0], ecx
add esp, 0x54
ret 0x10