Function at 0x404ea0
Capabilities:
Print debug messages
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x40a2ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push ebp
mov ebp, ecx
xor eax, eax
mov ecx, dword [0x40e438]
mov dword [esp + 8], eax
mov word [esp + 0xc], ax
push esi
mov edx, dword [ecx + 0x68]
push edi
mov dword [esp + 0x1c], ebp
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xcc]
mov cl, byte [edx + 4]
cmp eax, 0x65
mov byte [esp + 0x14], cl
jne 0x4050b5
lea ecx, [esp + 0x20]
call fcn.00409dd6
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x7c]
push str.d:_enforce_img_
lea edx, [esp + 0x80]
xor esi, esi
push 0x40d0d0
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0xd0], esi
call ebx
add esp, 0xc
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x5c]
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push str.._s
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x20]
push esi
push eax
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, esi
jne 0x404fa2
lea ecx, [esp + 0x20]
mov dword [esp + 0xc4], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
xor eax, eax
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret 0x10
lea edx, [ebp + 0x1458]
mov ecx, 0xb68
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x18]
mov ebp, eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::GetFileName
mov edx, dword [esp + 0x18]
push 0x40d0c4
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40501c
mov eax, dword [esp + 0x18]
push 0x40d0c0
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40501c
mov ecx, dword [esp + 0x18]
mov eax, edi
push ecx
push 0x40d0d0
push eax
inc esi
add edi, 0x20
call ebx
add esp, 0xc
cmp esi, 0x16d
jl 0x40501c
xor ebp, ebp
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
test ebp, ebp
jne 0x404fb5
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x3c]
lea edx, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
push esi
push edx
call fcn.00405180
mov esi, dword [esp + 0xd8]
lea eax, [esp + 0x3c]
push eax
push 0x40d0d0
push esi
call ebx
mov eax, dword [esp + 0xe0]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x88]
push ecx
push edx
push str._s_s
push eax
call ebx
mov ecx, dword [0x40e438]
add esp, 0x1c
push esi
push 0x3ee
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x20]
mov dword [esp + 0xc4], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
jmp 0x404f87
cmp eax, 0x66
jne 0x4050ea
mov esi, dword [esp + 0xd8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x10]
push ecx
push str.d:_Capture_img
push str._s_RoadImage._s
push esi
call edi
lea edx, [esp + 0x20]
push edx
push str.d:_Capture_img
push str._s_RoadImage._s
jmp 0x405156
cmp eax, 0x67
jne 0x40511f
mov esi, dword [esp + 0xd8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x10]
push ecx
push str.d:_Capture_img
push str._s_CarImage._s
push esi
call edi
lea edx, [esp + 0x20]
push edx
push str.d:_Capture_img
push str._s_CarImage._s
jmp 0x405156
cmp eax, 0x68
jne 0x404f85
mov esi, dword [esp + 0xd8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x10]
push ecx
push str.d:_Capture_img
push str._s_TrackingImage._s
push esi
call edi
lea edx, [esp + 0x20]
push edx
push str.d:_Capture_img
push str._s_TrackingImage._s
mov eax, dword [esp + 0xf0]
push eax
call edi
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
jmp 0x404f87